Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2008-06-16
3
Medium Priority
?
1,345 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Simplify Your Workload with One Tool

How do you combat today’s intelligent hacker while managing multiple domains and platforms? By simplifying your workload with one tool. With Lunarpages hosting through Plesk Onyx, you can:

Automate SSL generation and installation with two clicks
Experience total server control

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 phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
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.

670 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