473,413 Members | 1,767 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,413 software developers and data experts.

Strange RequiredFieldValidator problem

Hi

I have a problem with RequiredFieldValidators that are working differently
in Windows XP SP2 and Windows 2000 Server.

I have a web form with 2 textboxes with 2 RequiredFieldValidators.

In XP, which is my development environment, validators work correctly.
If user tries to submit page without any text in textboxes --> Validator
shows error message --> No postback

In Windows 2000 Server it goes:
User submits page without any text in textboxes --> Validator shows error
message correctly --> But for some reason page continues to postback

Any idea what is causing this kind of behavior?

Validators has:
EnableClientScript == True
Enabled == True
EnableViewState == True

-joopa-

Nov 19 '05 #1
2 1258
Have you tried including the client side scripts?

On your windows 2000 server, run the following command (from the Vis Studio
cmd prompt, or in the .NET framework folder)

aspnet_regiis -c

that will install the client side files in all the virtual directories on
that server (siteroot\aspnet_client)

"Jouni Karppinen" <Jo************@discussions.microsoft.com> wrote in
message news:F4**********************************@microsof t.com...
Hi

I have a problem with RequiredFieldValidators that are working differently
in Windows XP SP2 and Windows 2000 Server.

I have a web form with 2 textboxes with 2 RequiredFieldValidators.

In XP, which is my development environment, validators work correctly.
If user tries to submit page without any text in textboxes --> Validator
shows error message --> No postback

In Windows 2000 Server it goes:
User submits page without any text in textboxes --> Validator shows error
message correctly --> But for some reason page continues to postback

Any idea what is causing this kind of behavior?

Validators has:
EnableClientScript == True
Enabled == True
EnableViewState == True

-joopa-

Nov 19 '05 #2
Thank you Grant for quick and helpful answer.
aspnet_regiis -c fixed the problem

"Grant Merwitz" wrote:
Have you tried including the client side scripts?

On your windows 2000 server, run the following command (from the Vis Studio
cmd prompt, or in the .NET framework folder)

aspnet_regiis -c

that will install the client side files in all the virtual directories on
that server (siteroot\aspnet_client)

"Jouni Karppinen" <Jo************@discussions.microsoft.com> wrote in
message news:F4**********************************@microsof t.com...
Hi

I have a problem with RequiredFieldValidators that are working differently
in Windows XP SP2 and Windows 2000 Server.

I have a web form with 2 textboxes with 2 RequiredFieldValidators.

In XP, which is my development environment, validators work correctly.
If user tries to submit page without any text in textboxes --> Validator
shows error message --> No postback

In Windows 2000 Server it goes:
User submits page without any text in textboxes --> Validator shows error
message correctly --> But for some reason page continues to postback

Any idea what is causing this kind of behavior?

Validators has:
EnableClientScript == True
Enabled == True
EnableViewState == True

-joopa-


Nov 19 '05 #3

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

Similar topics

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...
5
by: Fernando Lopes | last post by:
Hi. I want to show an image in a requiredfield validator instead of "*". So, I 'm set the requiredfieldvalidator attributes like following: <asp:RequiredFieldValidator id=rfvFirstName...
1
by: JJ | last post by:
We have an ASP.NET web form with 1 TextBox, 2 LinkButtons, and 1 RequireFieldValidator. The situation is: the user needs to enter a folder name in the TextBox and click the first LinkButton (the...
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: needin4mation | last post by:
I added this to my javascript: if (chkActive.checked==true) { ValidatorEnable(frval_DdlInactive, false); ValidatorEnable(val_datIntacive,false); } If my checkbox is true I want to turn...
2
by: COHENMARVIN | last post by:
I have a form with a Submit button. The user fills out the form, clicks the submit button, and then the page posts back to itself. Every time the page posts back to itself, the "Page_Load" event...
7
by: Tim_Mac | last post by:
hi, using .net 2.0, i have a web form with lots of textboxes, drop-down-lists etc. There are lots of required field validators and regular expression validators. When i click the 'save' button,...
0
by: sjickells | last post by:
Hi I am having a problem using asp:TextBox's in a transparent table. I have a background image on the page and a table in the middle of the page. I have set the background colour of the table...
3
by: Bogdan | last post by:
Hi, I have a OnClientClick script assigned to a button. From the script, I'd like to check if RequiredFieldValidator attached to a textbox on the page has failed. The Page_IsValid works fine...
2
by: sirdavethebrave | last post by:
Hi guys - I have written a form, and a stored procedure to update the said form. It really is as simple as that. A user can go into the form, update some fields and hit the update button to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.