473,796 Members | 2,728 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Forcing .NET to render the '/aspnet_client/system_web/1_0_3705_0/WebUIValidation .js' on the web page

We are using our own custom JavaScript validation as well as .Net
validation. However, when we include our custom validation on a page,
..NET does not render/write the
'/aspnet_client/system_web/1_0_3705_0/WebUIValidation .js' path on the
page. If we do not include our own custom JavaScript validation, .NET
DOES render/write the
'/aspnet_client/system_web/1_0_3705_0/WebUIValidation .js' path on the
page.

I would like to make sure the path gets rendered automatically. Can I
force this to happen? I do not want to hardcode the path on the page.
I would also settle for setting it dynamically. However, I have been
unsuccessful reading the path from the machine.config file and rendering
the path
<webControls clientScriptsLo cation="/aspnet_client/{0}/{1}/"/>

Any thoughts.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #1
3 3558
When/How are you rendering your own validation to the page?

bill
"Art Thomas" <ke******@eglin .af.mil> wrote in message
news:uy******** ******@tk2msftn gp13.phx.gbl...
We are using our own custom JavaScript validation as well as .Net
validation. However, when we include our custom validation on a page,
NET does not render/write the
'/aspnet_client/system_web/1_0_3705_0/WebUIValidation .js' path on the
page. If we do not include our own custom JavaScript validation, .NET
DOES render/write the
'/aspnet_client/system_web/1_0_3705_0/WebUIValidation .js' path on the
page.

I would like to make sure the path gets rendered automatically. Can I
force this to happen? I do not want to hardcode the path on the page.
I would also settle for setting it dynamically. However, I have been
unsuccessful reading the path from the machine.config file and rendering
the path
<webControls clientScriptsLo cation="/aspnet_client/{0}/{1}/"/>

Any thoughts.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #2
For our custom validation we are including the custom javascript in the
header tag of ASP.NET pages. However, I want to clarify what I mean
when I say rendering. I consider the dynamic creation and inclusion of
the '/aspnet_client/system_web/1_0_3705_0/WebUIValidation .js' path on
the page rendering. We DO NOT do this. I was relying on .NET to handle
this.
For our validation, the javascript code is on the page. Some of our
fields incorporate the required field validation included as part of
.NET. This is the code that is looking for the path to the use
"WebUIValidatio n.js" page but the path was never rendered to the page.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #3
When using a ASP.NET CustomValidator , which runs client-side javascript,
and using other ASP.NET validators (i.e. RequiredField, Compare, etc.)
the <script language="javas cript"
src="http://servername/aspnet_client/system_web/1_0_3705_0/WebUIValidati
on.js"></script> tag needed for the other .NET validators to work is not
rendered. On other pages without the ASP.NET CustomValidator that tag
is rendered. This is the only difference we can find between pages that
function properly and the ones that don't. I interpret what you meant
by BaseValidator as an ASP.NET validator that comes with the IDE. It
seems there should be a simple way to trigger the rendering of this tag
on a page with a CustomValidator considering it is rendered
automatically on other pages.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #4

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

Similar topics

7
6589
by: Matthew Louden | last post by:
I created an ASP.NET web application. I added a TextBox and a RequiredFieldValidator control, and set the ControlToValidate property of RequiredFieldValidator control to be TextBox1. After I built and run the application, it pops up an error dialog as follows: unable to find script library '/aspnet_client/system_web/1_1_4322/WebUIValidation.js'. Try placing this file manually, or reinstall by running 'aspnet_regiis -c' any ideas??...
1
1171
by: James Thomas | last post by:
Hello, I posted this before but didn't explain myself properly. Let me see if I can describe the problem better: - I have a couple of validators on a login page (one for login name, one for password). - When I go to the login page, I get a runtime error. When I choose to debug, the following is found at the end of WebUIValidation.js:
2
649
by: MurrayTh | last post by:
Instead of having a copy of the aspnet_client folder in each site's files on a machine, can a virtual directory/application be made with each site's root in IIS to the machine's c:\inetpub\wwwroot\aspnet_client folder? Would this create security issues? If it is OK to do this, should it be a virtual directory or virtual application?
3
2426
by: et | last post by:
The error: Unable to find script library '/aspnet_client/system_web/1_1_4322/WebUIValidation.js.' Try placing the file manually, or reinstall by running aspnet_regiis -c' I started getting this error as soon as I started using the Validation controls, such as the RequiredFieldValidator and the ValidationSummary controls. I did the aspnet_regiis -c, which appears to run successfully (a command prompt appears too briefly to read), I...
4
4111
by: Ekkehard Preis | last post by:
Hi, I'm getting some strange error on one of my pages: The page is composed of some nested ascx controls, the error I am getting is 'undefined is null or not an object'. The error occurs in line 180 of WebUiValidation.js (if (typeof(val.evaluationfunction) == "string") ) and is caused by an Error (?) in the Page_Validators Array: The Index of the Array starts from 0 up to 5 and then suddenly continues from 20 up to 24.
0
1567
by: richard.warner | last post by:
When you run 'aspnet_regiis -c', the aspnet_client directory is created under EVERY web site on the IIS server. It seems strange that there doesn't seem to be any way of running the command so that it only installs the aspnet_client directory under a specified web site or even just the .net web sites on the server. I'm running several production IIS servers that have got a mix of .net and non-.net web sites on them and I don't want the...
1
1550
by: cindy | last post by:
i posted this to dotnet.framework the answer was does file really exist. yes it does then WSS is in way In order to make the full path to the .js file defined as excluded I cannot use / character to define path so do I create virtual directory for aspnet_client in local project is not the asp net application still looking for full path I need help, how does anyone live with WSS and validation for aspnet applications? how do I defined...
5
1927
by: Jeff User | last post by:
Hi all I'm building a composite control for ASP.NET 1.1 that relies on external javascript (.js) files. I've noticed the Microsoft custom web controls make use of the C:\Inetpub\wwwroot\aspnet_client subfolder to store common javascript files and other include common files. I've also noticed some third-party control vendors have successfully made use of this folder by including their own subfolder under aspnet_client and dumping .js files...
8
4060
by: Edward Diener | last post by:
Is there a way in Javascript, or perhaps in HTML, to force a browser to re-render an image on an HTML page after a round-trip between the client and the server ? In my particular case, the image is changing on the server although the URL for it remains the same, but the browser is still displaying the old image from its cache rather than the new image from its URL location.
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10467
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10201
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10021
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9061
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7558
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5454
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4130
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2931
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.