Force PostBack

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...
 
R

Rick Strahl [MVP]

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
 

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

Top