Postback on a button query

  • Thread starter Thread starter Tim
  • Start date Start date
T

Tim

Hi All,

I have a form that I dynamically build putting various text boxes and lables
on it based on a SQL query. When a user clicks the submit button, the form
clears it's self and is left with the static form (ie. gets rid of all the
dynamic stuff, and therfore clearing all the text boxes that have been
filled in). Am I right in saying that a button ALWAYS has a the auto
postback property enabled (you can't turn it off), so this is the cause for
this. If so how can I stop the dynamically created controls from clearing
from the screen so I can use the values in them to do some database work.

Hope this makes sense.

Thanks

Tim
 
Hmmm... I'm not sure I'm 100% of what you're saying, but it sounds like you
just want an HTML button, not a Server Control button. You can drop a
regular HTML button contol on the form and it will not post back unless you
use some JavaScript to submit the form.

+++ 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

Back
Top