Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
0 votes
1 answer
93 views

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 ...
joslyn's user avatar
  • 1
0 votes
1 answer
116 views

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 (!...
user155489's user avatar
-1 votes
1 answer
970 views

I am looking for a regular expression to validate date format mm/dd/yy (including leap year) as well. Date should be masked in MM/DD/YY format. Kindly help me find a solution. Thanks a lot in advance!...
user1555456's user avatar
1 vote
2 answers
1k views

What regular expression should be used to blacklist the character sequence that would cause the following error in ASP.Net - "A potentially dangerous Request.Form value was detected from the client". (...
Navaneeth's user avatar
  • 300
4 votes
1 answer
1k views

I try to do the custom client side validation in MVC 5 Project. When I add the following code: public IEnumerable<ModelClientValidationRule> GetClientValidationRules(ModelMetadata metadata, ...
CrazyCoderT's user avatar
0 votes
1 answer
280 views

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 ...
Tom McNish's user avatar
0 votes
2 answers
5k views

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}[\-]{...
adward's user avatar
  • 289
1 vote
3 answers
11k views

I have applied RangeValidator on TextBox. But it always shows me error : Invalid Range, though I have given minimum value 10 and maximum value 25. I want that user must not enter value whose length is ...
Afnan Ahmad's user avatar
  • 2,542
0 votes
1 answer
2k views

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: <p>Username:<asp:TextBox ID="UsernameTextBox" ...
BlancoBluesman's user avatar
0 votes
1 answer
924 views

In my user control i am having the code as: <asp:UpdatePanel ID="UpdatePanel2" runat="server"> <ContentTemplate> <asp:CustomValidator ID="cvOrgTypeGrid" runat="server" ...
prabu R's user avatar
  • 2,209
0 votes
2 answers
983 views

I am using below .aspx code to validate textbox..this is working perfectly <asp:TextBox ID="tbnooflecture" runat="server" Width="113px" Height="33px"> </asp:TextBox> <asp:...
user2053138's user avatar
0 votes
1 answer
1k views

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() ...
user576510's user avatar
  • 5,925
1 vote
1 answer
374 views

I have applied some textboxes in content pages. I have applied some Validations Controls on it. What i have done so far is this, <asp:TextBox ID="txtE1" runat="server" CssClass="...
user1884709's user avatar
0 votes
1 answer
2k views

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 ...
LCJ's user avatar
  • 22.8k
1 vote
2 answers
883 views

I have a web application, and the submit uses the PostBackUrl to display data if the form is valid. I need to use different (server side) validation groups, depending on what radiobutton is selected. ...
Brent's user avatar
  • 4,966

15 30 50 per page