sybe,
Thanks for responding...I guess what your saying is that runat="server" (in this snippet) is not the same thing?
<asp:TextBox ID="TextBox1" runat="server" Width="252px" Height="40px" CausesValidation="True" AutoCompleteType="Email" Wrap="False">enter your e-mail address here</asp:TextBox><asp:Req
ErrorMessage="(valid e-mail format required)" SetFocusOnError="True" Style="left: 340px;
position: absolute; top: 136px" ValidationExpression="\w+(
ANY ideas or links to places where I could get a better grasp of the concept would be appreciated!
Thanks again,
dm
Main Topics
Browse All Topics





by: sybePosted on 2008-03-29 at 03:43:36ID: 21236110
> want to ALWAYS force the cursor back to the focused texbox if it DOES not validate properly.
Sorry, but that is not going to work. Such validation is done on the client, using javascript. Simply turning off javascript will break your functionality.
You can use client-side validation, which detects unvalidated formvalues before the form is submitted. But there are many ways a user can avoid such client-side validation.
So you are stuck to do server-side validation as well. Server-side validation can be done only when soething is submitted to the server.