DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C# (http://www.daniweb.com/forums/forum61.html)
-   -   code for validation(asp.net 3.5) (http://www.daniweb.com/forums/thread166507.html)

Rockstar_021 Jan 6th, 2009 6:14 am
code for validation(asp.net 3.5)
 
I m using asp.net 3.5(visual studio 2008) and sql server 2005/2000.

I want code for validation of Account number and password. i.e. when user enter the Accountno and password and click submit button it should check the data with that enter in database. If it is correct it should go to next page otherwise show error message..

Also the account no should be of 12 charcters and password of 8 charecters.

LizR Jan 6th, 2009 7:27 am
Re: code for validation(asp.net 3.5)
 
Why not try the asp.net forum:)

hieuuk Jan 6th, 2009 9:10 am
Re: code for validation(asp.net 3.5)
 
Dont get you? Should it just be a simple condition?
If(textbox1.Text.Length>12 && textbox2.Text.Length>8)
sure you will also want it more then 0 as well, but it's the same theory anyways.

virang_21 Jan 15th, 2009 9:58 pm
Re: code for validation(asp.net 3.5)
 
use RegularExpression validators or simply set textbox's maxlenght property to 12 and 8 respectively.


All times are GMT -4. The time now is 4:41 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC