J
James Radke
Hello,
I was doing some testing on an application we are building, and noticed that
if you do not have an item like a textbox, which has it's autopostback set
to true,on a webform page, the javascript code __dopostback will never be
included in the page. Even if you have multiple active buttons on the web
page?
And, if we coded the function ourselves it would not work.
This threw us off, because we were attempting to include client-side
validation/javascript to increase performance (i.e. call webservices and
refresh only items that need to be changed versus refreshing the entire
page), and then manually call the __dopostback at the times that full page
refreshes were required (i.e. that meant that autopostback, was never set to
true).
Can someone tell me why this is? And if there is some setting we can make
to make the __dopostback function even if we don't have any controls with
the autopostback set to true?
Thanks!
Jim
I was doing some testing on an application we are building, and noticed that
if you do not have an item like a textbox, which has it's autopostback set
to true,on a webform page, the javascript code __dopostback will never be
included in the page. Even if you have multiple active buttons on the web
page?
And, if we coded the function ourselves it would not work.
This threw us off, because we were attempting to include client-side
validation/javascript to increase performance (i.e. call webservices and
refresh only items that need to be changed versus refreshing the entire
page), and then manually call the __dopostback at the times that full page
refreshes were required (i.e. that meant that autopostback, was never set to
true).
Can someone tell me why this is? And if there is some setting we can make
to make the __dopostback function even if we don't have any controls with
the autopostback set to true?
Thanks!
Jim