|
WAIT! There is no AutoPostBack on a button, it's always on.
If you're not posting back then there's something wrong with your HTML. Can you post that bit of it?
Paul
Life is just a sexually transmitted desease - Matthew Wright (ex-journalist, TV presenter) 10-Oct-02
I finally have a sig! - Paul Riley (part-time deity) 10-Oct-02
|
|
|
|
|
This is one of those cases where the message board ate half of your code (it really doesn't like asp tags). Try email!
Paul
Life is just a sexually transmitted desease - Matthew Wright (ex-journalist, TV presenter) 10-Oct-02
I finally have a sig! - Paul Riley (part-time deity) 10-Oct-02
|
|
|
|
|
Okay I created one more button with a very simple code.Just a response.write code.And that event did not fire too when the button was clicked.So i can say that the postback is not occuring on the page.
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
Can you post as much of your code (HTML and VB.NET) as possible? Or I'll let you get away with email for that one, if you're not comfortable posting it to the forum.
Paul
Life is just a sexually transmitted desease - Matthew Wright (ex-journalist, TV presenter) 10-Oct-02
I finally have a sig! - Paul Riley (part-time deity) 10-Oct-02
|
|
|
|
|
Paul:
Thank you.I have sent an email to you.
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
I don't get it! It works fine for me. I had to remove much of the code because I don't have the DataAccessService object but all the events seem to be firing in the correct order in response to the right clicks.
I'm sorry, mate, I just can't see a problem with the code.
Have you been fiddling with the project or solution at all?
Paul
Life is just a sexually transmitted desease - Matthew Wright (ex-journalist, TV presenter) 10-Oct-02
I finally have a sig! - Paul Riley (part-time deity) 10-Oct-02
|
|
|
|
|
hi, I got the same problem too. When i filled some drop down lists in the page load event, the events stopped firing. Also when i put a put a break point, the page load is running more than once. once i took out the code to fill a certain drop down list, the button events fired ok.
I know, if you put a response.redirect in a try/catch block, you will have a problem. the asp.net will through a thread aborted exception. but could not figure out my problem.
|
|
|
|
|
Hi Taks:
I did exactly what u said u did when it stopped working."Populate some drop down list boxes".
And it was working fine before i inserted that piece of code to do this.So now i am kind of confused.Without the population there is no real meaning to the form.It just will not solve the purpose.
Would you suggest I use an ImageButton or something like that.Or Just a hyperlink to another page that processes the code.
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
Pradhip wrote:
I did exactly what u said u did when it stopped working."Populate some drop down list boxes".
Interesting! Try this:
Instead of creating the DataSets IN the code, try dropping them off the toolbox onto your page in design mode. When the dialog pops up asking what type of dataset you want, select Untyped DataSet. Then you can set the DataSource properties for the DropDownLists in the properties window in design mode.
This is a really long shot but the fact that two of you have had the same problem leads me to wonder about .NET bugs. And the fact is that your event handling is fine so it has to be something more obscure.
Paul
Life is just a sexually transmitted desease - Matthew Wright (ex-journalist, TV presenter) 10-Oct-02
I finally have a sig! - Paul Riley (part-time deity) 10-Oct-02
|
|
|
|
|
Actually, I had couple of problems.
First thing was, the issue with drop down lists. I had some 5 drop down lists. If i fill a particular drop down list out of 5 the events stopped working. When I commented out the code to fill that one particular drop down. the events worked. that's strange.
And another problem i had was with calender controls. My events wont fire if i have some 4 buttons along with 2 calender controls. I replaced 2 buttons with hyperlinks and events started firing, but then I had some validation controls too on the page and if the Page was invalid, then next time
a SelectionChanged Event on calender is fired, it opens a new window and throws a java script error.
So The Asp.Net Events are killing me.
I will follow your suggestion paul for the drop down lists.
|
|
|
|
|
Okay so here is the status:
The code works if i comment out all the five databindings that i do on that page.I knew the page was working fine with 2 databinds before i added three more.
So first i brought it to the same 2 databinds.And it did not work.
Now when i comment out all the 5 it works.
How more wild can a challenge get..
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
Okay after laboring for over 3 hrs i just give up.The maximum number of databinds i can do on a page is 4.if its 4 it works fine.Otherwise it goofs up.I tried it in many different ways.And then again which 4 kind of depends.i had some data mismatches with my database and i had to look at that too.
But this is one weird problem.So i now have a form that does not allow changing of data for 2 columns in one page but it does in other.Boy my users are going to think im 'a nut..
Thank you Paul and Taks..
Pradhip
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
I refuse to let you give up
So what's the pattern? Is there one that always doesn't work or a combination of two that screw things up?
Paul
Life is just a sexually transmitted desease - Matthew Wright (ex-journalist, TV presenter) 10-Oct-02
I finally have a sig! - Paul Riley (part-time deity) 10-Oct-02
|
|
|
|
|
Okay the pattern.
Well first i had 5. what i did was remove all.The page worked.
Then i went ahead and added 4 of them except the one that was causing me trouble and had some possible data mismatches on the DB( This is combineSN).
THEN it started bombing out.So i removed it.Now we are back to 4 working and the page loads and the next page button also works.
Okay then i removed one more thats working just fine(REPAIRTYPE) and instead added this troublesome one the one with the data problems.Then now after that it loaded fine.But the next page button would not fire.
Then what i did was remove the trouble some one(COMBINEsn).Add the old guy(Repairtype) and add one more(Failuretype)..so that makes it 5 and the page did not work.Then i removed failure type and it worked.
So then i goto the next page and add combineSN AND FAILURETYPE AND THEY ALSO WORK FINE IN THE NEXT PAGE.so i have failure type and combinesn grayed out in page one but can be edited in page 2.
So thats that for now.
Pradhip.S
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
Sounds to me like there's a problem with the COM object, returning a DataSet that's not quite right. Strange that they work on another page though. Have you tried stepping through the program and examining these datasets in detail?
Paul
Life is just a sexually transmitted desease - Matthew Wright (ex-journalist, TV presenter) 10-Oct-02
I finally have a sig! - Paul Riley (part-time deity) 10-Oct-02
|
|
|
|
|
Paul:
The COM OBJECT looks fine.The dataset that its supposed to return is correct.I even verified it with SQL.So it is kind of okay.
pradhip.s
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
If it's not a bug in the COM object, it MUST be a bug in ASP.NET (or possibly in the Interop). You could get really brave and ask Microsoft
Paul
Life is just a sexually transmitted desease - Matthew Wright (ex-journalist, TV presenter) 10-Oct-02
I finally have a sig! - Paul Riley (part-time deity) 10-Oct-02
|
|
|
|
|
Paul Riley wrote:
So what's the pattern? Is there one that always doesn't work or a combination of two that screw things up?
So Paul , you wanna find a patter? Come try find out why random tables are adding extra padding in my tables, and why some does "weird" shifting things. Even though the code is the same for almost every item.
Cheers
PS: Did you get my email, Paul (damn Intellisense doesnt work in this textbox) ?
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
leppie wrote:
So Paul , you wanna find a patter? Come try find out why random tables are adding extra padding in my tables, and why some does "weird" shifting things.
Oh come on! You know the plan. Stick a new thread up with a bit more information and we'll all take a look
leppie wrote:
Did you get my email, Paul ?
Yes, I did. However, I didn't notice it til I read this because it came in the middle of a batch of CodeProject mails and I figured I'd answer them all on the site. Sorry
I will get in touch with my guy but I'm trying to get him to figure out why his site is only sending one of my pages at 100 bytes per sec. Once I get that conversation done with, I'll mention this to him.
Paul
Life is just a sexually transmitted desease - Matthew Wright (ex-journalist, TV presenter) 10-Oct-02
I finally have a sig! - Paul Riley (part-time deity) 10-Oct-02
|
|
|
|
|
Paul Riley wrote:
Oh come on! You know the plan. Stick a new thread up with a bit more information and we'll all take a look
This a bit too random..... , but try me[^], although I cant gaurentee it will connect (severe bandwidth problems on this side of the world, damn *nix trojans). 2nd last one from the bottom of the page and the first one on the 2nd page, has that problem. Doing a forum suckx bad as you have to make a 1000 posts yourself to see if it works and you dont even get credit for it! OK, admin rights is cool Please ignore the content and note the "author uptime" at the bottom
Paul Riley wrote:
I will get in touch with my guy but I'm trying to get him to figure out why his site is only sending one of my pages at 100 bytes per sec.
Sounds like the same XP problem I am having, it only allows 2 connections
Cheers
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
leppie wrote:
This a bit too random....., but try me
It took me at least ten minutes to even see the problem, I sure as hell can't see what's causing it. Maybe some temporary table borders would help?
leppie wrote:
Please ignore the content and note the "author uptime"
Corrr! That's a long time
leppie wrote:
Sounds like the same XP problem I am having, it only allows 2 connections
Except this is Win 2K Pro accepting 10 connections and there's only about 10 people know it's there (at least 4 of those won't even be looking!) .
Paul
Life is just a sexually transmitted desease - Matthew Wright (ex-journalist, TV presenter) 10-Oct-02
I finally have a sig! - Paul Riley (part-time deity) 10-Oct-02
|
|
|
|
|
Paul Riley wrote:
Corrr! That's a long time
Maybe you saw it later, but I managed about 33 hours
Paul Riley wrote:
It took me at least ten minutes to even see the problem, I sure as hell can't see what's causing it. Maybe some temporary table borders would help?
Hmm, everything is tables. Maybe it will work. It's not so bad anyways I havent seen it happen again though
Paul Riley wrote:
Except this is Win 2K Pro accepting 10 connections and there's only about 10 people know it's there (at least 4 of those won't even be looking!) .
That should be OK. you can increase to 40 though, but you didnt hear that from me Anyways 10 is better than 2/3 like I have in XP! Meaning when I develop, I need one connection for VS and one for debugging.
Cheers
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
I forgot to ask...
So what do think so far? The numbering schemes took about 3 days to get it perfect. Didnt realize the post placing would be so difficult, especially when you deal with threads that span longer than the search time (ever noticed that on CP how well the posts are positioned? i wouldnt mind comparing mine to theirs ) . Luckyly the paging fit into my "well-thought-of" scheme so well, it took a whole 5 minutes to implement
Anyway cheers
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
Hi Paul:
I tried it the way u said.But still its the same.I created all the datasets on the design time.did the matching of the datasets to the corresponding control in the design page by setting the datasource property.
And all that i really did in the code was get the data from the Dbase and populating the listboxes with them.But still would not work.
Now i shall try commenting out the population one by one and see what happens
Taks and Paul thanks anyows for the help.U folks are great
Pradhip
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
Pradhip wrote:
Taks and Paul thanks anyows for the help.U folks are great
Don't thank us til we get a result. In fact I should thank you... I didn't know those FindBy functions existed for DropDownLists until I read your code; that'll be really useful for me.
So tell me... what is that DataAccessService? Is that something of yours or something I can download?
Paul
Life is just a sexually transmitted desease - Matthew Wright (ex-journalist, TV presenter) 10-Oct-02
I finally have a sig! - Paul Riley (part-time deity) 10-Oct-02
|
|
|
|