Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

__doPostBack General Question

Status
Not open for further replies.

SSchimsky

MIS
Mar 26, 2002
16
0
0
US
Hi,

My understanding of the __doPostBack function is that it will load the __EVENTTARGET.value and __EVENTARGUMENT.value with the name of the control that has initiated the "post"

This makes perfect sense to me, because this is how the server eventually knows which control's event to fire.

BUT... the __doPostBack function IS NOT CREATED if, for example, all you have on your web form are 2 command buttons....

and here's my question: If all you have on your web form are to command buttons, and there is no __doPostBack function created, how does the server know which of the 2 buttons was clicked????

Thanks for any enlightenment!

Steve

 
Magic ;)

Of course, if you want a better answer, you might want to e-mail Microsoft. If you actually received a reply, that would be magic :)

I haven't looked into this myself, but perhaps it's handled by the viewstate? If you're really interested, just do a Base64 decode on the viewstate string to get the values...

If you do, lemme know what you find.

-----------------------------------------------
"The night sky over the planet Krikkit is the least interesting sight in the entire universe."
-Hitch Hiker's Guide To The Galaxy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top