|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Form Validation Indicator (Yes/No)Is there anyway to have a message pop up by my submit button that says "the
form didn't validate, check above"? Then the user can look at the individual validation messages by each field. Chance Hopkins wrote:
> Is there anyway to have a message pop up by my submit button that says "the I wouldn't use a popup.> form didn't validate, check above"? > > Then the user can look at the individual validation messages by each field. > > As I can read this, it's standard Validation with the Standard validation controls. In stead of Error Message you use the Text attribute (if i'm right), which will appear upon errors and on the position you placed the validator (not the summary). (I personally also change the backcolor of incorrect fields to make it easier to find). Have a search for how it works exactly. Else search for javascript. Add the ValidationSummary control to the page. Then set the
ValidationSummary.ShowMessageBox property to true. --- Peter Blum www.PeterBlum.com Email: PLB***@PeterBlum.com Creator of "Professional Validation And More" at http://www.peterblum.com/vam/home.aspx Show quote "Chance Hopkins" <chance_hopk***@hotmail.com> wrote in message news:O%230OMrrHGHA.532@TK2MSFTNGP15.phx.gbl... > Is there anyway to have a message pop up by my submit button that says > "the form didn't validate, check above"? > > Then the user can look at the individual validation messages by each > field. > "Peter Blum" <PLB***@Blum.info> wrote in message That sounds like exactly what I was after. Thanks!!news:uOsD%23MFIGHA.3000@TK2MSFTNGP14.phx.gbl... > Add the ValidationSummary control to the page. > Then set the ValidationSummary.ShowMessageBox property to true. When I said "pop up" I didn't mean to imply a javascript alert, I'll be more careful with wording next time. I just meant inline in the page. You gave me what I need though. Thanks again. |
|||||||||||||||||||||||