473,394 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

RequiredFieldValidator Will Not Submit Form

I've got a strange behavior on a new machine. I cannot get a web page
with a RequiredFieldValidator to submit the form.

My test case is simply a new project, add a textbox, a label, a
button, and a required field validator. Connect the ReqFV to the
textbox. In the onclick event for the button, copy the textbox
contents to the label to show something is working. If I *disable* the
client side validation, or use a browser other than IE (meaning the
framework disables client side), then the form will submit and do the
right thing. If I use IE and *enable* client side validation, then the
validator will work, meaning show the error message or hide it based
on the contents of the textbox, but will never submit the form.

I have run the aspnet_reregiis thingy already.
I have reinstalled/update visual studio and framework.
I have searched google and msdn.
I have loosened security.

Anyone have any ideas?

thanks,

Paul
Nov 18 '05 #1
2 1511
Hello Paul.

I had this exact problem last week. In fact, I posted about it in this
forum.

This url lead me to the fix for the problem:

http://weblogs.asp.net/pwilson/archi...16/230591.aspx

HTH
Craig

"Paul Hethmon" <pa**********@inslogic.com> wrote in message
news:7a**************************@posting.google.c om...
I've got a strange behavior on a new machine. I cannot get a web page
with a RequiredFieldValidator to submit the form.

My test case is simply a new project, add a textbox, a label, a
button, and a required field validator. Connect the ReqFV to the
textbox. In the onclick event for the button, copy the textbox
contents to the label to show something is working. If I *disable* the
client side validation, or use a browser other than IE (meaning the
framework disables client side), then the form will submit and do the
right thing. If I use IE and *enable* client side validation, then the
validator will work, meaning show the error message or hide it based
on the contents of the textbox, but will never submit the form.

I have run the aspnet_reregiis thingy already.
I have reinstalled/update visual studio and framework.
I have searched google and msdn.
I have loosened security.

Anyone have any ideas?

thanks,

Paul

Nov 18 '05 #2
Craig,

Followed the link and tried what it said. I copied the client side
files from:

C:\WINNT\Microsoft.NET\Framework\v1.1.4322\ASP.NET ClientFiles

to my aspnet_client\system_web\1_1_4322 directory. They had the same
dates before I did the copy. Copied them anyhow. After that, the thing
started working. I had already run the aspnet_regiis utility which
should have done the same thing. Heck if I know but it's working now.
Paul

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: pc | last post by:
I've created a simple form with a submit button and a textfield. I assigned a RequiredFieldValidator to the textfield and set EnabledClientScript to ture. I noticed the validator did not display...
3
by: me | last post by:
Is there any particular reason why a requiredfieldvalidator cant validate a listbox? I have bound the two together but the validator always returns false on isvalid and so does the Page, no matter...
1
by: peshrad | last post by:
Hi ! I'm using Visual Studio .NET to program a Web application coding in C#. In my form I use an HtmlSelect control that calls a JavaScript function when the selected item changes. This...
4
by: James | last post by:
Hello, I have a RequiredFieldValidator for several textbox controls on a form. Here's an example with the RequiredFieldValidator. EnableClientScript, Enabled, and Visible are set to true for...
4
by: Joe | last post by:
Hello, I have created a login page using dotnet. I am using requiredFieldValidator and noticed that the code works fine in IE but not in Netscape, Opera, Mozilla, Firefox, etc. For example...
2
by: Hongbo | last post by:
Hi, I have a Asp.Net written in C#. It serve as information input form. The form encounters sort of random problem with the email field and state field. I have validator attached with these 2...
4
by: jonknutsonhome | last post by:
Does anyone know exactly how a RequiredFieldValidator works? Here is my situation. I am now in charge of a new project. I am making a new contactus.aspx page with required fields. Easy to...
4
by: WB | last post by:
Hi, I need to validate a hidden input in my webform to ensure that it's got value. The controls look something like this: <input id="HidSelectedStates" type="hidden" runat="server" /><br...
1
by: Arpan | last post by:
Suppose I have the following RequiredFieldValidator control which validates a TextBox: <form id="form1" runat="server"> <asp:TextBox id="txtVal" runat="server"/> <asp:RequiredFieldValidator...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.