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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top