postback question

  • Thread starter Thread starter Karl Hungus
  • Start date Start date
K

Karl Hungus

Two questions actually,

if I manually write a postBack function call such as:
__doPostBack('button','add')"

how can I get the second parameter? EventArgs appears to have no useful
members.

Second, can you always force .net to write the doPostBack function in your
html?

Thanks,
Karl
 
Why do you need a postback function? Just use a server control with
AutoPostBack set to true.
 
Something like: Page.GetPostBackClientHyperLink(this, 'ARG'); where ARG is a parameter you want
back.

To always force __doPostBack you need to call Page.GetPostBackEventReference (I think this is
right; you might have to have a control in the tree that implements IPostBackEventHandler)

Scott
 
Back
Top