Solved

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

Posted on 2008-06-16
3
1,336 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
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.
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…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

840 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