User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 423,737 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,368 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 496 | Replies: 2
Reply
Join Date: Mar 2008
Posts: 55
Reputation: dskumar_85 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
dskumar_85 dskumar_85 is offline Offline
Junior Poster in Training

How to get specific mail id in a textbox

  #1  
Apr 2nd, 2008
hai ......

how to enter the specified (company e-mail id) in a textbox and restrict the other e-mail id's like gmail , yahoo .rediff etc ... by using asp.net 2005 ...
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2007
Posts: 1,057
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 61
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: How to get specific mail id in a textbox

  #2  
Apr 4th, 2008
You can use a field validator. Use regular expressions to detect what the @ address is.
It will come up false and show an error if it is not the same @ address.

Or you can use javascript and simply place the end @ address in there.

Or just use a textbox, and to the right outside the text box, display "@company.com". That way they only enter the start of the email addy.
I answer pm's.
I answer questions.
I answer quickly.
I answer.
Reply With Quote  
Join Date: Jun 2006
Posts: 12
Reputation: Hosam Kamel is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
Hosam Kamel Hosam Kamel is offline Offline
Newbie Poster

Re: How to get specific mail id in a textbox

  #3  
Apr 4th, 2008
Hello dskumar_85 , you have to implement your custom way either form client side as a validation or ASP.NET validator or event when the user click submit button to verify that the mail he has entered is not belongs to the excluded id's you have mentioned.
Just try to substring between @ and .
Thanks,
Hosam Kamel
Reply With Quote  
Reply

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

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 1:27 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC