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

RequiredFieldValidators client-side script not functioning with Windows Server 2003

We recently deployed several new ASP.NET apps to Windows Server 2003 and
discovered that field validator controls render client-side script that does
not execute!

Validation takes place on the server using Page.IsValid to branching
appropriately.

This appears to be a Server 2003 issue that occurs on several machines. The
behavior does not occur on Window2000 or XP.

What's the fix, please?

Thanks

Nov 17 '05 #1
5 1758
Did you check that client-script mappings are OK in the app i.e it tries to
locate js files from correct location on aspnet_client folder?

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"sadf" <asdf@sdf> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
We recently deployed several new ASP.NET apps to Windows Server 2003 and
discovered that field validator controls render client-side script that does not execute!

Validation takes place on the server using Page.IsValid to branching
appropriately.

This appears to be a Server 2003 issue that occurs on several machines. The behavior does not occur on Window2000 or XP.

What's the fix, please?

Thanks

Nov 17 '05 #2
Teemu,

It's more obscure that that because it is rendering the client-side script,
Below is important sample code from a page that is requiring the server
round-trip.

Obviously we're missing something simple. Do you see it?

Thanks.
<form name="Form1" method="post" action="TicketSales.aspx"
language="javascript" onsubmit="ValidatorOnSubmit();" id="Form1">

<script language="javascript"
src="/aspnet_client/system_web/1_1_4322/WebUIValidation.js"></script>
<input name="txtName" type="text" id="txtName" style="width:186px;" />

<script language="javascript">
<!--
var Page_ValidationActive = false;
if (typeof(clientInformation) != "undefined" &&
clientInformation.appName.indexOf("Explorer") != -1) {
if ((typeof(Page_ValidationVer) != "undefined") && (Page_ValidationVer
== "125"))
ValidatorOnLoad();
}

function ValidatorOnSubmit() {
if (Page_ValidationActive) {
ValidatorCommonOnSubmit();
}
}
// -->
</script>

"Teemu Keiski" <jo****@aspalliance.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Did you check that client-script mappings are OK in the app i.e it tries to locate js files from correct location on aspnet_client folder?

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"sadf" <asdf@sdf> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
We recently deployed several new ASP.NET apps to Windows Server 2003 and
discovered that field validator controls render client-side script that

does
not execute!

Validation takes place on the server using Page.IsValid to branching
appropriately.

This appears to be a Server 2003 issue that occurs on several machines.

The
behavior does not occur on Window2000 or XP.

What's the fix, please?

Thanks


Nov 17 '05 #3
FYI, the resolution:

When deploying to websites with multiple domains (not virtual directories),
there must be an aspnet_client within the root of the domain.

"sadf" <asdf@sdf> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
We recently deployed several new ASP.NET apps to Windows Server 2003 and
discovered that field validator controls render client-side script that does not execute!

Validation takes place on the server using Page.IsValid to branching
appropriately.

This appears to be a Server 2003 issue that occurs on several machines. The behavior does not occur on Window2000 or XP.

What's the fix, please?

Thanks

Nov 17 '05 #4
FYI, the resolution:

When deploying to websites with multiple domains (not virtual directories),
there must be an aspnet_client within the root of the domain.

"sadf" <asdf@sdf> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
We recently deployed several new ASP.NET apps to Windows Server 2003 and
discovered that field validator controls render client-side script that does not execute!

Validation takes place on the server using Page.IsValid to branching
appropriately.

This appears to be a Server 2003 issue that occurs on several machines. The behavior does not occur on Window2000 or XP.

What's the fix, please?

Thanks

Nov 17 '05 #5
I don't see the validator control in the page output. Is it not being
rendered or did you just leave it out of the code you posted?
"sadf" <asdf@sdf> wrote in message
news:eZ*************@TK2MSFTNGP10.phx.gbl...
Teemu,

It's more obscure that that because it is rendering the client-side script, Below is important sample code from a page that is requiring the server
round-trip.

Obviously we're missing something simple. Do you see it?

Thanks.
<form name="Form1" method="post" action="TicketSales.aspx"
language="javascript" onsubmit="ValidatorOnSubmit();" id="Form1">

<script language="javascript"
src="/aspnet_client/system_web/1_1_4322/WebUIValidation.js"></script>
<input name="txtName" type="text" id="txtName" style="width:186px;" />

<script language="javascript">
<!--
var Page_ValidationActive = false;
if (typeof(clientInformation) != "undefined" &&
clientInformation.appName.indexOf("Explorer") != -1) {
if ((typeof(Page_ValidationVer) != "undefined") && (Page_ValidationVer
== "125"))
ValidatorOnLoad();
}

function ValidatorOnSubmit() {
if (Page_ValidationActive) {
ValidatorCommonOnSubmit();
}
}
// -->
</script>

"Teemu Keiski" <jo****@aspalliance.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Did you check that client-script mappings are OK in the app i.e it tries

to
locate js files from correct location on aspnet_client folder?

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"sadf" <asdf@sdf> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
We recently deployed several new ASP.NET apps to Windows Server 2003 and discovered that field validator controls render client-side script
that does
not execute!

Validation takes place on the server using Page.IsValid to branching
appropriately.

This appears to be a Server 2003 issue that occurs on several
machines. The
behavior does not occur on Window2000 or XP.

What's the fix, please?

Thanks



Nov 17 '05 #6

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

Similar topics

2
by: Rhino | last post by:
I am trying to verify that I correctly understand something I saw in the DB2 Information Center. I am running DB2 Personal Edition V8.2.1 on Windows. I came across the following in the Info...
5
by: Paul H | last post by:
How do you folks get a reliable and complete brief of what is required before development starts? I am forever going back to a client once a project has started saying "Hang on, now that I've...
2
by: Robin | last post by:
In a form with a number of RequiredFieldValidators, how do you include a cancel button so that you don't get errors when cancelling on a pge with required fields left blank? Thanks.
7
by: Nalaka | last post by:
Hi, I created a sinple web service that returns a dataSet. Then I created a client program that uses this web service (that returns the Dataset). My question is, how did the client figure...
2
by: J Huntley Palmer | last post by:
I am having a horrific time integrating uw-imap's c-client for imap support in php. The problem is a whole bunch of "Text relocation remains referenced against symbol" errors during linking....
1
by: Dave | last post by:
Hi, I'm using .NET 1.1 and wondering if I can use RequiredFieldValidators with required fields inside user controls. The page is a type of tabbed panel layout with the divs show/hidden using...
11
by: Wayne | last post by:
I am a one man enterprise and have been asked by a prospective client what happens to their database regarding ongoing changes etc if I get hit by a bus. Obviously my databases are distributed...
1
by: WebServiceSecurity | last post by:
The issue involves the following technologies: - 1. .NET 2.0 Framework 2. WSE2.0 (WS-Security) 3. X.509 certificates 4. BEA Weblogic 8.1.5
4
MMcCarthy
by: MMcCarthy | last post by:
http://bytes.com/images/howtos/projectscope_blocks.jpgAs a freelance IT consultant for over 10 years, I’ve come to appreciate well defined project scopes. A project scope is a common understanding...
1
by: | last post by:
We are using RequiredFieldValidators for username & password textboxes on a registration page where the user creates a login. We also have a link that directs the user directly to the login page...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.