RSS Forums RSS

code for validation(asp.net 3.5)

Please support our C# advertiser: DiscountASP.NET – 3 Months Free on C# Web Hosting
Reply
Posts: 2
Reputation: Rockstar_021 is an unknown quantity at this point 
Solved Threads: 0
Rockstar_021 Rockstar_021 is offline Offline
Newbie Poster

code for validation(asp.net 3.5)

  #1  
Jan 6th, 2009
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.
AddThis Social Bookmark Button
Reply With Quote  
Posts: 1,734
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 184
LizR LizR is offline Offline
Posting Virtuoso

Re: code for validation(asp.net 3.5)

  #2  
Jan 6th, 2009
Why not try the asp.net forum
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote  
Posts: 44
Reputation: hieuuk is an unknown quantity at this point 
Solved Threads: 4
hieuuk hieuuk is offline Offline
Light Poster

Re: code for validation(asp.net 3.5)

  #3  
Jan 6th, 2009
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.
.Net Developer - 3D Game Designer
My Portfolio/Blog: http://www.hieu.co.uk
Reply With Quote  
Posts: 10
Reputation: virang_21 is an unknown quantity at this point 
Solved Threads: 0
virang_21 virang_21 is offline Offline
Newbie Poster

Re: code for validation(asp.net 3.5)

  #4  
Jan 15th, 2009
use RegularExpression validators or simply set textbox's maxlenght property to 12 and 8 respectively.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Views: 781 | Replies: 3 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:40 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC