473,406 Members | 2,894 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Clientside validation in login control

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>

=====================
Dec 1 '05 #1
3 2176
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)
Dec 1 '05 #2
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 ...?
Dec 1 '05 #3
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)
Dec 6 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Paul | last post by:
Hi Guys and Girls I am trying to disable the clientside validation (Required Fields) by using the ValidatorEnable(id,false), which works find from the point of view that the client side script...
4
by: Sandy | last post by:
Hello - If I use a validation summary control and set the ShowMessageBox to true, will the messagebox that comes up be blocked by pop-up blockers? Does the messagebox work in all browsers or...
1
by: Kris | last post by:
Hi, I have a DataGrid where in each row has couple of text boxes and an update button. Each row is dynamically generated as the number of rows are not known ahead of time. When the user clicks the...
1
by: MattC | last post by:
I have a user control that contains several requiredFieldValidators. The page the control sits in has other RequiredFieldValidators. On submitting the form all the validators on the page fire and...
5
by: Glen | last post by:
Does anybody know a way to make the button on the Login control be the default button on the page? I have a master page with an ImageButton and a content page with a Login control. When I enter...
1
by: Tyler Carver | last post by:
I'm using the Layout Template for the Login Control. I've included all the neccessary controls on the page and everything is working nicely except hitting the enter key on any of the textboxes...
3
by: ilockett | last post by:
The background: I have a web app with a simple master page that contains just one content placeholder. I have created a web form that then uses this master page. Within the content...
0
by: Rick Gamble | last post by:
Has anyone experienced the following in VS 05: The login control fails password validation from both the Web site administrator as well as from the control itself when the application containing...
0
by: Tom | last post by:
I have a web app that is using the asp.net 2.0 login control and in the db the aspnet_tablename are created. This works great on the web app. My question is, is there anyway to use either the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.