In my registration form, there is field to enter email-id of member, i want to restrict user, so that he would not able to enter gmail, yahoo, radiff.... emailids is this possible.., Only company email id eg: priyanka@juncturetech.net must be allowed?
As you can read in the tittle i need a regular expression for getting any letter, symbol, number from 1 to 100 maxlength (any text posible). Can someone provide that for me and maybe a good link to understand how it works.
I am using Regular Expression validator for a text box. The below is working fine.It is not performing validation when I enter values like 0000..001.How can I modify validation expression? But it would allow values like 100,...5000 i.e zeros after a number.
<asp:RegularExpressionValidator ID="reg2" runat="server" ControlToValidate="rng2" ValidationExpression="^[0-9]+" ErrorMessage="*Please Enter a Valid Number for Second Range." ForeColor="Red" Font-Bold="True"></asp:RegularExpressionValidator>
I need some help in regular expression.I am validating the textbox text when updating the records.When i click the update button,the first 5 letters should be equal to CM000 or cm000.How to validate this using regular expression in asp.net. does anyone know validationexpression for this.
I am using the Login control to create a new user. I have it where if the user adds and email address, then this automatically popuplates the username textbox with the email address. I want it where if they don't have an email address then the user can just create their own username instead.
But what happens is if they create a username, but the leave the email blank, a defined error message appears saying that an email must be provided. In the login control properties I have set the property RequireEmail to False but the message is still appearing.
Can anyone help me find out why the email is always required? I do have custom validators for other parts of the login, but have no validation set anywhere for the email.
I'm Using Ajax Accordion i want Collapsed Panes Start with "+" Symbol and When It Expanded Change That Symbol to "-" When Collapsed Again Start with + .... and Continue like that...
Note : I'm Using Header Tempalte and Content Template and Pass Data Source to it.
I am developing a login form with User Name and Password. I want the user to create the username in a specified format. So i am using RegularExpressionValidator for the username. What is the Validation Expression for this format.
The format is:
xyz\t4z4567 (characters are not case sensitive)
Rules:
The username will be created in the above format. first 5 characters(xyz) are same for every username with the slashes. Only "t4z4567" will be changed for every user.
in my application i am checking the valid email but we can give more than one emailid separating with semicolon (";").how can i write the expression. my emails look like this "sasidhar@yahoo.com;suryasasidhar@gmail.com;srinivas@gmail.com " how can i write regular expression
I have to create a regular expression for email id like this
xyz@yahoo.com and xyz@gmail.com
I need to allow only yahoo and gmail as the domain not any other domain. I have used this expression w+([-+.]w+)*@yahoo.com . It is working fine for yahoo. but I want to include gmail also. How can I modify it to except gmail also?
I have one field in database Mobile No.In that I want to put validation which accepts "+" and numbers that is not more then 15.And in that "+" should at the first place in value
I have a regular expression validation set on text box. I have a grid on the same page with edit and delete buttons. In some cases I don't want the regular expression to fire. For example, I have a scenario where the text box will be disabled but I can still enter data in to the grid and modify it, but the regular expression fires when I modify the grid and the changes in the grid are not processed.how can I stop the validation when I am working on grid. I can see a property causes validation for button to stop validation but don't know how can I stop for the grid.
I am facing a problem for doing URL validation which should allow atlest two periods in the URL.If the URL does not contain atleast two periods then it should throw an error. Also the regular expression must obey all the URL validations.Please help GURUS it is urgent for me to get some solution.
I have a DB field formatted as TIME and want to accept user input in the format of hh:mm or hh:mm:ss. This format will be the run time of a video for example.
I am looking for a Validation Expression that will check compliance with this format requirement.
in my application i have to entrer the date into a textbox. and i'm using a Ajax Tool Kit Calendar control to select the date and is put into a Text Box.the date format should be MM/dd/yyyy i have the regular expression for dd/MM/yyyy format.
i want to validate date format in textbox through regulrexpressionvalidator control but i want to check ValidationExpression from my clsdate class this public variable.
Public DateFormat As String = "dd/MM/yyyy" <asp:RegularExpressionValidator ID="revDOE1" runat="server" ControlToValidate="txtlFollowUp_date" ErrorMessage="Wrong Date Format" ValidationExpression="^(((0[1-9]|[12]d|3[01])/(0[13578]|1[02])/((1[6-9]|[2-9]d)d{2}))|((0[1-9]|[12]d|30)/(0[13456789]|1[012])/((1[6-9]|[2-9]d)d{2}))|((0[1-9]|1d|2[0-8])/02/((1[6-9]|[2-9]d)d{2}))|(29/02/((1[6-9]|[2-9]d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))$"> </asp:RegularExpressionValidator>
send me regular expression for this format (DD/MM/YYYY).E.g.--23/12/2009,1/12/2009,1/1/2009.It should accept all the 3 formats..I want regular ex. code only.No other solution.