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 ...
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 ...
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.
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 .
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.