Ask a Question related to ASP.NET General, Design and Development.
-
Rafael Veronezi #1
Validation Controls Postback
I have a little problem while working with Validation Controls in extensive
forms... When the user reaches the end, and something is wrong, it just
highlights the messages (a client-side script)... But, if the field is on
the top of the form, and the user doesn't search, and keep clicking on the
button, he will think that there's a problem on the form...
I would like to know how could I implement a way that the click button does
a postback, and then, if the IsValid variable is wrong, the correct messages
are show....
Thanks,
Rafa
Rafael Veronezi Guest
-
Controls Postback --- Please help urgent
I have two controls Control A has a text box and button Control B has a text box Both these controls are pasted on custompage.aspx. When I... -
User Controls Postback
I have two user controls Control1 and Control2 (.ascx). When the Web Page containing this control gets posted back I have some logic to determine... -
postback and nonpostback controls
hi all iam in a confusion of which of the controls are postback controls and which of them are nonpostback controls and what is the reason for the... -
Initialize dynamic controls on postback
I have created a number of RadioButton controls during the OnItemDataBound event of a datagrid control. ..aspx file: <asp:datagrid... -
Child Controls => Postback? => null?
Hi there were a few postings earlier, including mine regarding this. It looks as if when a dynamic child control causes a postback, its handler... -
Vincent V #2
Re: Validation Controls Postback
Maybe you can do a Focus to a validation sumery??
"Rafael Veronezi" <rafael@dmweb.com.br> wrote in message
news:u6sHroVQDHA.2432@TK2MSFTNGP10.phx.gbl...extensive> I have a little problem while working with Validation Controls indoes> forms... When the user reaches the end, and something is wrong, it just
> highlights the messages (a client-side script)... But, if the field is on
> the top of the form, and the user doesn't search, and keep clicking on the
> button, he will think that there's a problem on the form...
> I would like to know how could I implement a way that the click buttonmessages> a postback, and then, if the IsValid variable is wrong, the correct> are show....
> Thanks,
> Rafa
>
>
Vincent V Guest
-
Cowboy \(Gregory A. Beamer\) #3
Re: Validation Controls Postback
Turn off the client side validation for each control and check IsValid() in
your CodeBehind. You can use a ValidationSummary control to get all of the
problems and pass it back to the client as a list of problems.
NOTE: .NET always does a server side check, even if you never use it, with
every validation. As clever hackers get around client side validation, it is
always a good thing to check IsValid() every time, even if you have client
side validation turned on.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Author: ADO.NET and XML: ASP.NET on the Edge
************************************************** **************************
****
Think Outside the Box!
************************************************** **************************
****
"Rafael Veronezi" <rafael@dmweb.com.br> wrote in message
news:u6sHroVQDHA.2432@TK2MSFTNGP10.phx.gbl...extensive> I have a little problem while working with Validation Controls indoes> forms... When the user reaches the end, and something is wrong, it just
> highlights the messages (a client-side script)... But, if the field is on
> the top of the form, and the user doesn't search, and keep clicking on the
> button, he will think that there's a problem on the form...
> I would like to know how could I implement a way that the click buttonmessages> a postback, and then, if the IsValid variable is wrong, the correct> are show....
> Thanks,
> Rafa
>
>
Cowboy \(Gregory A. Beamer\) Guest



Reply With Quote

