Questions tagged [validation-controls]
31 questions
0
votes
4 answers
Optional validation in ASP.NET
I have a page with three radio buttons, depending on which button is selected I need to validate some controls (using required field validators). Other than using custom validators, is there any way to do this?
Thanks

Waleed Eissa
- 10,283
- 16
- 60
- 82
0
votes
1 answer
Conditional Required Field Validators
I have all fields set to required using the requiredfield control in asp.net but i need one field to change its requiredfield control to disabled depending on a radio button answer. Is there a way to do this without using javascript?

joslyn
- 1
0
votes
1 answer
ASP.NET Validation controls prevent me from redirecting?
I added ASP.NET validation controls to my form ..
I also have a static hyperlink on the same form...
If i click it , it is not allowing the redirection because of the validation...
How can i allow the redirection if the user click on the hyperlink?

Bart
- 4,830
- 16
- 48
- 68
0
votes
1 answer
Which validation control to use when validating a variable in code behind (as opposed to another control)?
Let's say I have a list of strings. I have a TextBox and a ADD button which adds no null values to the list.
There's also a NEXT button on the page. When the Next Button is clicked, the list's content is displayed on another page. I'd like to…

Richard77
- 20,343
- 46
- 150
- 252
0
votes
1 answer
valid regular regular expression string
Hi I have a regular expression which is strated failing now. not sure what is stopping.
Regex regex = new Regex(@"^(([a-zA-Z]:)|(\\{2}\w+\\[\w- ]+[$])|(\\{2}\w+))(\\[\w-. ]*)*(.xml|.XML)$");
if (!regex.IsMatch(fuSource.PostedFile.FileName))
{
…

user155489
- 143
- 12
0
votes
1 answer
Using Arrays and Validation Controls in C# ASP.NET
The part of this assignment that I'm stuck on is this: The user must enter a state abbreviation in the "State" field (which is a standard textbox). However, I'm supposed to make sure that the the characters entered in the textbox are a valid state…

Tom McNish
- 85
- 1
- 2
- 14
0
votes
2 answers
Regular expression for validating UAE numbers
I need regex which validates UAE mobile phone number like
+9710501234566 or
+971 (050) (123 4566)
Currently I am using
^(\+971[\s]{0,1}[\-]{0,1}[\s]{0,1}|[\s]{0,1}0)(5[056]{1})[\s]{0,1}[\-]{0,1}[\s]{0,1}[1-9]{1}[0-9]{6}$
Could you help me…

adward
- 289
- 6
- 19
0
votes
1 answer
Tooltip not showing when hovering
A simple piece of code. I notice that when I hover over a '*', the tooltip doesn't show.
Are Tooltips working in Internet Explorer 10?
Code:
Username:

BlancoBluesman
- 13
- 6
0
votes
1 answer
How to display messagebox for Custom Validator error message?
In my user control i am having the code as:

prabu R
- 2,099
- 12
- 32
- 41
0
votes
2 answers
How to use validation dynamically?
I am using below .aspx code to validate textbox..this is working perfectly

user2053138
- 141
- 2
- 6
- 16
0
votes
1 answer
how to fire all validation controls from client side?
In an aspx page I have different validation controls (some required and some custom). Please guide me how to fire all validation controls of page in client side code.
I am aware ValidatorEnable() which accept id of control and enable it. But I want…

user576510
- 5,777
- 20
- 81
- 144
0
votes
1 answer
Hide redundant error message in ASP.Net ValidationSummary
I have a asp.net page accepting two input values – Name and Address. Both of them are required fields. I have used required field validators and validation summary.
When user does not enter both the values the error message if fired two times…

LCJ
- 22,196
- 67
- 260
- 418
0
votes
1 answer
Read validation control error messages from local resource files
I need to read error message of validation controles (RequiredFeildValidator) from resource files in my App_LocalResource folder as my web app is multilingual....

samj28
- 267
- 2
- 4
- 10
0
votes
1 answer
Dynamic Validation Controls Don't Work in Update Panel
I'm dynamically creating validation controls and adding them to an update panel. However the client side validation never fires.
Here is the aspx file:
…

Chad
- 1,404
- 1
- 18
- 29
0
votes
2 answers
"Server Tag Not Well Formed" error in Validation Control
I got this error when I placed the unique id of the control in the source code. Below is the source code.

Musikero31
- 3,115
- 6
- 39
- 60