Force PostBack

  • Thread starter Thread starter Byron Hopp [MCS]
  • Start date Start date
B

Byron Hopp [MCS]

How do you force a postback, we have a button to save our users entry, but
the button does not have a postback property (like the dropdownlistbox). Is
there a way to force a postback?

Byron...
 
Hi Byron,

Can't you just use a Server Button control? If you do there's nothing else
required.

If you need to trigger a manual postback for a page use __DoPostBack() -
check how this works with an AutoPostBack checkbox or textbox, then copy the
code. Make sure that you call the RegisterPostBackScript method(sorry forget
exact name of the method look it up) to make sure the postback script is in
the page.

+++ Rick ---

--

Rick Strahl
West Wind Technologies
www.west-wind.com
www.west-wind.com/weblog
 
Back
Top