943,896 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 3382
  • C# RSS
Jan 6th, 2009
0

code for validation(asp.net 3.5)

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Rockstar_021 is offline Offline
2 posts
since Jan 2009
Jan 6th, 2009
0

Re: code for validation(asp.net 3.5)

Why not try the asp.net forum
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008
Jan 6th, 2009
0

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.
Reputation Points: 11
Solved Threads: 4
Light Poster
hieuuk is offline Offline
44 posts
since Nov 2008
Jan 15th, 2009
0

Re: code for validation(asp.net 3.5)

use RegularExpression validators or simply set textbox's maxlenght property to 12 and 8 respectively.
Reputation Points: 10
Solved Threads: 2
Light Poster
virang_21 is offline Offline
29 posts
since Jan 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Create a PHPBB3 Forum Topic from a C# application.
Next Thread in C# Forum Timeline: Simple Question??





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC