Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Clientside validation in login control

Reply
Thread Tools

Clientside validation in login control

 
 
Jon Paal
Guest
Posts: n/a
 
      12-01-2005
using VWD and asp.net 2.0

how do I enable clientside validation in ligin control ?

Following code does not produce popup alerts or red asterisks .


====================
<div id="content">
<asp:loginview id="LoginArea" runat="server">
<AnonymousTemplate>
<asp:login id="Login1" runat="server" UserNameRequiredErrorMessage="Username is required" PasswordRequiredErrorMessage="Password is
required">
<layouttemplate>
<div class="login">
<asp:label runat="server" id="UserNameLabel" CssClass="label" associatedcontrolid="UserName">User Name</asp:label>
<asp:textbox runat="server" id="UserName" cssclass="textbox" accesskey="u" />
<asp:requiredfieldvalidator ControlToValidate="UserName" runat="server" id="UserNameRequired" validationgroup="Login1"
errormessage="User Name is required." tooltip="User Name is required." >*</asp:requiredfieldvalidator>
<asp:label runat="server" id="PasswordLabel" CssClass="label" associatedcontrolid="Password">Password</asp:label>
<asp:textbox runat="server" id="Password" textmode="Password" cssclass="textbox" accesskey="p" />
<asp:requiredfieldvalidator ControlToValidate="Password" runat="server" id="PasswordRequired" validationgroup="Login1"
errormessage="Password is required." tooltip="Password is required." >*</asp:requiredfieldvalidator>
<div>
<asp:checkbox runat="server" id="RememberMe" text="Remember me."/>
</div>
<asp:imagebutton runat="server" id="LoginButton" CommandName="Login" AlternateText="login" skinid="login" CssClass="button"/>
<p class="warning">
<asp:Literal runat="server" ID="FailureText" EnableViewState="False"></asp:Literal></p>
<asp:ValidationSummary ShowMessageBox="True" ShowSummary="False" ValidationGroup="Login1" ID="ValidationSummary1" runat="server" />
</div>
</layouttemplate>
</asp:login>
</anonymoustemplate>
<LoggedInTemplate>
<h4><asp:loginname id="LoginName1" runat="server" formatstring="Welcome {0}!" /></h4>
</LoggedInTemplate>
</asp:loginview>
</div>

=====================


 
Reply With Quote
 
 
 
 
Paul Clement
Guest
Posts: n/a
 
      12-01-2005
On Wed, 30 Nov 2005 17:14:24 -0800, "Jon Paal" <Jon nospam Paal @ everywhere dot com> wrote:

¤ using VWD and asp.net 2.0
¤
¤ how do I enable clientside validation in ligin control ?
¤
¤ Following code does not produce popup alerts or red asterisks .
¤

The Membership API operates on the server side. What would you validate against on the client side
anyway?


Paul
~~~~
Microsoft MVP (Visual Basic)
 
Reply With Quote
 
 
 
 
Jon Paal
Guest
Posts: n/a
 
      12-01-2005
I was initially just trying to verify the fields were completed, but thought I would also verify if the password was formatted
correctly.

Apparently this is not an option ...?


 
Reply With Quote
 
Paul Clement
Guest
Posts: n/a
 
      12-06-2005
On Thu, 1 Dec 2005 13:30:02 -0800, "Jon Paal" <Jon nospam Paal @ everywhere dot com> wrote:

¤ I was initially just trying to verify the fields were completed, but thought I would also verify if the password was formatted
¤ correctly.
¤
¤ Apparently this is not an option ...?
¤

Not that I am aware of.


Paul
~~~~
Microsoft MVP (Visual Basic)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clientside Validation in UserControls MattC ASP .Net 1 07-22-2005 04:10 PM
Clientside validation for DataGrid's text boxes Kris ASP .Net 1 06-30-2005 04:39 PM
Clientside Validation and Page.IsValid Paul ASP .Net 1 05-25-2005 03:14 PM
Clientside validation not working. Dennis Calla ASP .Net 1 01-13-2005 05:05 PM
Clientside validation not working Eddie Dodd ASP .Net 4 05-27-2004 07:31 AM



Advertisments