473,657 Members | 2,426 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

JavaScript error when using validators on SSL page w/ASP.NET 2.0

Hi

I'm getting javascript errors when I use Validator controls on my checkout
page which runs under SSL. This is only happening on Windows 2003 server
though and not on my XP development machine.

The JavaScript error itself is not revealing much and therefore doesn't give
any real indication to where the error is.

The error itself just says the following:

Line: 2
Char: 1
Error: Syntax error
Code: 0
URL: https://10.0.0.10/checkout2.aspx

I'm using the Visual Studio.Net debugging features to view the rendered HTML
and JavaScript but can't see anything obvious.

When I remove the validator controls, everything works fine on both
operating systems.

Any ideas,

Ben

Mar 18 '06 #1
2 1470
It has been my experience that most of the javascript stuff just
doesn't work right on Server 2003 until you uninstall the Internet
Explorer Enhanced Security Configuration. Control Panel | Add Remove
Programs | Add Remove Windows Components. Beware, (of course) of the
security risks that will come from doing this! After you uninstall you
should be able to change security settings in IE to match more "normal"
settings.

JP

Mar 20 '06 #2
Hi Joey

I should have made myself clearer. This is only happening when IIS is
running on Windows 2003 Server, and not when running under XP. In both
circustances, the browser is running from my XP machine, and not from the
server.

Thanks for the advice anyhow

Ben


"Joey" <jo*********@to pscene.com> wrote in message
news:11******** **************@ z34g2000cwc.goo glegroups.com.. .
It has been my experience that most of the javascript stuff just
doesn't work right on Server 2003 until you uninstall the Internet
Explorer Enhanced Security Configuration. Control Panel | Add Remove
Programs | Add Remove Windows Components. Beware, (of course) of the
security risks that will come from doing this! After you uninstall you
should be able to change security settings in IE to match more "normal"
settings.

JP

Mar 20 '06 #3

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

Similar topics

5
1811
by: John | last post by:
Hi, I have an asp.net form where if the user enters an incorect date I change the color of the textbox to red and also display a label field with a message saying the date is invalid. What I would like to do is to have some way to trap the event where the user changes the date and reset the color of the textbox to white and change the error lablel to hidden. I want to do this before the page gets submitted back to the server so I've...
4
1879
by: Ian Cox | last post by:
I have a web form that contains a Datagrid. This grid has a number of columns, one of which contains a text box and validator for that text box. Everything works fine, when I press the "Save" button the validator works as expected...however... ....I want to hide certain columns under certain conditions. One of the columns I wish to hide is the column that contains the text box and the validator. This is done by something like ...
2
1428
by: lbolognini | last post by:
Hi all, I'd like everything to be done server-side and don't like to see any Javascript on my page source. Would it be possible also to prevent the validator controls render a blank space &nbsp; when no error message is displayed? I'm using WebControls, should I just switch to HTMLControls and maybe throw all the user submit value in cache and retrieve the values from there?
3
2681
by: COHENMARVIN | last post by:
I have a problem that sounds simple but seems impossible with asp.net. I calculate a variable in the Page_Load event, call it X. Then I want my range validators to fire when a textbox value is greater than X. They should give an error message, both as a messagebox and inline in the page. I can't get the range validators to use X. I get syntax errors when I try. I tried Custom Validators and got the same problem. So now I want to try...
1
3252
by: IkBenHet | last post by:
Hello, Currently I am using a large input form on a website that is based on ASP and JavaScript. Depending on the values that are filled in by the user the forms does a refresh and makes other input fields available to fill in. I use the JavaScript OnChange function (=clientside) that creates a querystring and does a refresh of the page. It works fine.
4
2787
by: Mark Miller | last post by:
I've been trying to execute a javascript function just before submit on a form that contains an <input type="file"> input field and it isn't working. The reason I want to do this is the end users will be uploading files that are between 1 and 2 Meg. in size, and they are not too knowledgeable about computers. I want to disable the form buttons so they can't hit them after they hit the "upload" button. We're trying to prevent them from...
5
2637
by: | last post by:
Hi all, Has anyone been able to write some custom javascript on the onclick event of submit button to do certain things like disable submit button, only submit form once etc. This was a breeze in 1.1 since I could edit the .js file. Now in 2.0 I can no longer do this. Also, my code would have to be called after all client-side validation was done and was successful. Any ideas? TIA!
6
1951
by: Don | last post by:
I have a page with several controls on the page and all except one are hidden. This page works like a wizard by hiding and showing controls has the user clicks next. The control are hidden by setting visible=false in the code-behind, so they are never rendered. My next button validates the page and on some controls I get the JavaScript error below: Error: 'undefined' is null or not an object Code: 0 The control that causes this...
3
1797
by: Wayne Sepega | last post by:
I have inherited from System.Web.UI.WebControls and overrode the OnRender of my new button. In the on render I generate some JavaScript and add it as an attribute as follows: this.Attributes.Add("onclick", javascript); I have the following issues: 1) I have to add to the javascript the following: this.Page.ClientScript.GetPostBackEventReference(this, null);
0
8402
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...
1
8508
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
8608
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...
1
6172
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
4164
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...
0
4323
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2733
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
2
1962
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1627
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.