L
Lorenzo Sgorlon
I have a webform with some TextBoxes and some LinkButtons. On some TextBoxes
I set the Autopostback property to True, so I can get a postback by changing
the content of those TextBoxes or by clicking on a LinkButton. Sometime It
happens that the user makes a change in a "autopostback" TextBox, the submit
starts through the .NET __dopostback routine, it can happen that the old aspx
page keeps on staying in the user browser for 2, 3 or more seconds, this
delay time allows the user to click on a LinkButton before the first
round-trip has been completed. It makes my server application go mad.
I decided to handle the onclick event of the LinkButtons at client side. I
found a trick to avoid an other LinkButton submit during the first submit,
but I cannot avoid the second postback when the submit is fired by a TextBox
(through autopostback=true). I saw, ASP.NET adds
"onchange="__doPostBack(...)", but it has not helped me so far.
I hope to have explained properly my problem.
Do you have any advice?
I set the Autopostback property to True, so I can get a postback by changing
the content of those TextBoxes or by clicking on a LinkButton. Sometime It
happens that the user makes a change in a "autopostback" TextBox, the submit
starts through the .NET __dopostback routine, it can happen that the old aspx
page keeps on staying in the user browser for 2, 3 or more seconds, this
delay time allows the user to click on a LinkButton before the first
round-trip has been completed. It makes my server application go mad.
I decided to handle the onclick event of the LinkButtons at client side. I
found a trick to avoid an other LinkButton submit during the first submit,
but I cannot avoid the second postback when the submit is fired by a TextBox
(through autopostback=true). I saw, ASP.NET adds
"onchange="__doPostBack(...)", but it has not helped me so far.
I hope to have explained properly my problem.
Do you have any advice?