Hello All,
I am Prashant More
I have a Problem regarding MessageBox. I have a textbox and i want to enter email id in that in proper format.If the format is wrong then a messagebox must appear showing a perticular message.Please somebody send me the code its hurry for me.
My Email Ids are
Thanks & Regards
Prashant S. More
Blocked AccountPosted May 13, 2008, 7:35 AM
Also put the
another way to do this, U can write the code in the .cs file that match the valid email id and there u can show the messagebox by using
MessageBox.Show()
Happy coding!!
Prashant MorePosted May 13, 2008, 7:24 AM
Hello Manish,
Thanks for your reply but my problem is that i must have to show a messagebox whenever a improper email is entered in the textbox.
Blocked AccountPosted May 13, 2008, 7:19 AM
Hi,
U can do this by using the regular expression validator.
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" EnableViewState="False"
Display="None" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
ControlToValidate="TextBoxEmail" ErrorMessage="Enter valid Email" SetFocusOnError="True">asp:RegularExpressionValidator>
Happy Coding!!