Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 12th, 2004, 12:51 AM
Authorized User
 
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default Client side validations

Hello,

  i have one form to accept userid and password. After clicking the button, first perform client validations. If success perform the database checkup. How can i do this.
Which controls should i use
<input type="text" id="txtUID" runat="server" />
or
<asp:textbox id="txtuid" runat="server" />

What is the difference b/w these two. When to use input and asp:
I am just learning dotNET


Thanx in advance

 
Old November 12th, 2004, 10:06 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You should usually use the server controls (<asp:...). Those objects have all the serverside functions you need. If you just tack on "runat=server" to an HTML tag, you won't have the convenience of the server controls.
 
Old November 12th, 2004, 08:42 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hello,

  I also have the same question. After checking username and password at client side, how to code for database processing to verify correct userid and password. If eithr of is not correct the form should show again to enter new... Previously in classic asp i coded two pages for login and loginverify. In asp its not necessary to code in two pages.
Can you plese guide me abt this?

---------
Rajani

 
Old November 13th, 2004, 07:30 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

In the event handler for the login process, you just need to do something that indicates that the login is bad. Usually this is achieved with a simple label that you make visible. You don't have to do much more than that.
 
Old November 18th, 2004, 11:03 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 140
Thanks: 0
Thanked 0 Times in 0 Posts
Default

why r u not using vailidation controls






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Converting Client-side to Server-side Code kwilliams ASP.NET 2.0 Professional 1 November 21st, 2007 05:25 PM
Firing server side events at client side codes mehdi62b ASP.NET 1.0 and 1.1 Basics 6 May 18th, 2005 09:11 AM
sharing a server-side variable with client-side pigtail Javascript How-To 6 November 4th, 2004 02:01 AM
Accessing Server Side Data on Client Side steve456 Classic ASP Professional 3 October 15th, 2003 02:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.