EventArgs in DoPostback
-
If you do a manual postback by calling __doPostBack in javascript, what happens to the value you send for the eventArgument argument? For example, suppose the following is called in javascript __doPostBack('Button1','Test'); This causes a postback but how can I extract the value "Test" from the eventArgs ? Michela
-
If you do a manual postback by calling __doPostBack in javascript, what happens to the value you send for the eventArgument argument? For example, suppose the following is called in javascript __doPostBack('Button1','Test'); This causes a postback but how can I extract the value "Test" from the eventArgs ? Michela
Doing postback's isn't quite as simple as calling __doPostBack. You want to create a control derived from Button that handles postbacks using Page.GetPostBack... methods. There's quite a lot to learn here, so I'm just pointing you in the right direction :). Paul