validating a textbox without using validation control

Reply

Join Date: May 2005
Posts: 15
Reputation: ramareddy_dotne is an unknown quantity at this point 
Solved Threads: 0
ramareddy_dotne ramareddy_dotne is offline Offline
Newbie Poster

validating a textbox without using validation control

 
0
  #1
May 20th, 2005
I have 3 textboxes in my webform.I want my user to enter valid entries into them. If user leaves any textbox empty.I want Give him an alert to him (like a msgbox in vb.net).I'm using textboxes in asp.net(web server controls).I dont want to use the validation controls as they wont give a pop up message.
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 33
Reputation: percent20 is an unknown quantity at this point 
Solved Threads: 0
percent20 percent20 is offline Offline
Light Poster

Re: validating a textbox without using validation control

 
0
  #2
May 22nd, 2005
in the submit button do something like

if (txtField1.Text = "")
{
msgbox = "Sorry please enter something in txtFeild1";
}

Try something like that.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum


Views: 13403 | Replies: 1
Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC