Solved

ASP.NET 2.0 required field validator is not working on production server

Posted on 2008-06-16
3
1,328 Views
Last Modified: 2013-11-07
when I use a REQUIRED FIELD VALIDATOR on a page it works fine on my machine (Development Mechine), but when I deploy the pages to production Server the Validator does not work.

This problem occurs across the application. The development mechine and producton machine are running under Windows 2003 server (service pack-2) operating system.


UI-Code
----------
<asp:TextBox runat="server" ID="txtTelephoneNumber" CssClass="Ms-long" MaxLength="40"
                                    Width="150" TabIndex="3">
 </asp:TextBox>
 <asp:RequiredFieldValidator runat="server" ErrorMessage="Please enter Telephone number"
                                    ID="reqTelephone" Display="Dynamic" ControlToValidate="txtTelephoneNumber">
</asp:RequiredFieldValidator>

<asp:Button runat="server" Text="OK" ID="btnSave"  OnClick="btnSave_Click" CssClass="Ms-ButtonHeightWidth"    TabIndex="4" />

I have copied the aspnet_client folder from development system to production server then also is not working.
                     
0
Comment
Question by:MRNMurthy
  • 2
3 Comments
 
LVL 20

Expert Comment

by:REA_ANDREW
ID: 21792000
Can you elaborate on the actual problem, i.e. could you provide a specific error?

Andrew
0
 
LVL 1

Author Comment

by:MRNMurthy
ID: 21792264
There is no specific error message. After Page load, on clicking "OK" button page is  not getting validated and it's not showing any error messages.
Both client validation and server validation taken place whenever clicking "OK" button instead of just client validation(It means post back is happening on the button click).
0
 
LVL 1

Accepted Solution

by:
MRNMurthy earned 0 total points
ID: 21810263
I have installed hot fix and it worked.The Hotfix can be downloaded from the link below:

http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=6106

0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now