RSS Forums RSS
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 10856 | Replies: 1
Reply
Join Date: May 2005
Posts: 15
Reputation: ramareddy_dotne is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
ramareddy_dotne ramareddy_dotne is offline Offline
Newbie Poster

validating a textbox without using validation control

  #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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2005
Posts: 33
Reputation: percent20 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
percent20 percent20 is offline Offline
Light Poster

Re: validating a textbox without using validation control

  #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  
Reply

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

Currently Active Users Viewing This Thread: 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 1:52 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC