Validate Only One Control In Server Side Code On PostBack

  • Thread starter Thread starter Joey
  • Start date Start date
J

Joey

Does anyone know how to validate only one certain control in server
side code on postback? Instead of Page.Validate() and Page.IsValid, is
there some functionality equivalent to txtMyTextBox.IsValid...

I could also make it work if I could figure out how to use server side
code to compare a string value against a regular expression string,
with a boolean true/false result.

I need to do this to ensure that my database insert does not insert
corrupt or incomplete data in the event that someone uses a browser
without javascript. The insert is occuring BEFORE the final
postback/validate for the entire page.
 

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