Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2008-06-16
3
Medium Priority
?
1,350 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

972 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