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

Autopostback fails because of script error

I have a user control that is a header that I intend to use in a number of
pages. This user control contains a number of ASP list boxes and an ASP
check box. I have set the Autopostback to true for these ASP controls. I
then put the tag for the user control in a page and ASP.NET writes a little
javascript that makes the autopostback feature work. This works fine on my
development machine which has XP Pro on it. However, when I put it on my
production server, which is Windows 2000, ASP.NET writes a significantly
different javascript script which contains a line that is illegal in
javascript. The reason it is illegal is because the script references the
form name literally, and the form name contains a colon because the form is
contained in a user control. What I can't figure out is why, though I have
ASP.NET 1.1 installed on each machine one writes completely different
javascript than the other. If you want to see the page with the javascript
error, it is located at www.mansfieldjones.com. Thanks for any help on
this.

Sincerely,
Ethan Adams
Nov 18 '05 #1
4 1171
as its a 1.0 bug, your site on the server must be mapped to 1.0 not 1.1

-- bruce (sqlwork.com)

"Ethan Adams" <et***@vmrd.com> wrote in message
news:eI**************@TK2MSFTNGP10.phx.gbl...
I have a user control that is a header that I intend to use in a number of
pages. This user control contains a number of ASP list boxes and an ASP
check box. I have set the Autopostback to true for these ASP controls. I
then put the tag for the user control in a page and ASP.NET writes a little javascript that makes the autopostback feature work. This works fine on my development machine which has XP Pro on it. However, when I put it on my
production server, which is Windows 2000, ASP.NET writes a significantly
different javascript script which contains a line that is illegal in
javascript. The reason it is illegal is because the script references the
form name literally, and the form name contains a colon because the form is contained in a user control. What I can't figure out is why, though I have ASP.NET 1.1 installed on each machine one writes completely different
javascript than the other. If you want to see the page with the javascript error, it is located at www.mansfieldjones.com. Thanks for any help on
this.

Sincerely,
Ethan Adams

Nov 18 '05 #2
Gulp. . .
Ummm, how do I change that? I'm assuming theres a way to tell the
application to use 1.1 instead of 1.0?

Thanks,
Ethan Adams
"bruce barker" <no***********@safeco.com> wrote in message
news:ed**************@TK2MSFTNGP10.phx.gbl...
as its a 1.0 bug, your site on the server must be mapped to 1.0 not 1.1

-- bruce (sqlwork.com)

"Ethan Adams" <et***@vmrd.com> wrote in message
news:eI**************@TK2MSFTNGP10.phx.gbl...
I have a user control that is a header that I intend to use in a number of pages. This user control contains a number of ASP list boxes and an ASP
check box. I have set the Autopostback to true for these ASP controls. I then put the tag for the user control in a page and ASP.NET writes a

little
javascript that makes the autopostback feature work. This works fine on

my
development machine which has XP Pro on it. However, when I put it on my production server, which is Windows 2000, ASP.NET writes a significantly
different javascript script which contains a line that is illegal in
javascript. The reason it is illegal is because the script references the form name literally, and the form name contains a colon because the form

is
contained in a user control. What I can't figure out is why, though I

have
ASP.NET 1.1 installed on each machine one writes completely different
javascript than the other. If you want to see the page with the

javascript
error, it is located at www.mansfieldjones.com. Thanks for any help on
this.

Sincerely,
Ethan Adams


Nov 18 '05 #3
Hi Ethan,

Get this tool to make sure you are using the desired version:

http://www.denisbauer.com/NETTools/A...nSwitcher.aspx

Ken

"Ethan Adams" <et***@vmrd.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Gulp. . .
Ummm, how do I change that? I'm assuming theres a way to tell the
application to use 1.1 instead of 1.0?

Thanks,
Ethan Adams


Nov 18 '05 #4
OK, I used the tool, and I even went so far as to install the 1.0 .NET
Framework on the application server, leaving only the 1.1 .NET Framework
installed, but I still have the problem:

www.mansfieldjones.com

What else am I missing? I notice that my machine.config contains many
references to 1.0.x of various assemblies. Could that be the problem?
Thanks once again for any help

-- Ethan Adams
"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> wrote in message
news:uv**************@TK2MSFTNGP12.phx.gbl...
Hi Ethan,

Get this tool to make sure you are using the desired version:

http://www.denisbauer.com/NETTools/A...nSwitcher.aspx

Ken

"Ethan Adams" <et***@vmrd.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Gulp. . .
Ummm, how do I change that? I'm assuming theres a way to tell the
application to use 1.1 instead of 1.0?

Thanks,
Ethan Adams

Nov 18 '05 #5

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

Similar topics

0
by: Pete | last post by:
I am building an ASP.NET application and have just encountered something very strange which I would like explained if possible. In BaseForm.ascx I have the following <form> element: <form...
2
by: Susan van Houen | last post by:
Hi All, How do I intercept an autopostback on the client side and prevent it from executing the submit? In classic ASP I used to intercept the on_submit and just return false;
4
by: Scott M. | last post by:
If I put RequiredFiledValidators on a page and set them up with corresponding TextBoxes everything works just fine. If I add a DropDownList and set its AutoPostBack to True, I am able to post data...
2
by: ben | last post by:
Hi All, I have a Listbox which gets populated from the database.On selecting an item in the list, i would like to populate some other fields......it was working fine until i added...
2
by: Miguel Dias Moura | last post by:
Hello, I have a Drop Down List with 3 options. I want to redirect to a new page when an options is selected. I don't want to use a button. The redirection should be fired when the option is...
5
by: Hans Kesting | last post by:
Hi, I have a pulldown with both AutoPostback set to true and a validator. When I select an "invalid" value from the pulldown, the validator message shows briefly, then a postback occurs and the...
7
by: Ron | last post by:
Hello all, I don't understand why my pageis not posting back to the server when I change the selection on a radio list. I have a page that both accepts new personal info. or allows editing to...
12
by: Jim Rodgers | last post by:
I have a big asp file that has an error under certain conditions -- totally repeatable. However, it only fails when I set response.buffer = True at the top. WHen I set it False in order to debug...
2
by: rn5a | last post by:
Assume that a user control has a TextBox (Page1.ascx) <asp:TextBox ID="txtName" runat="server"/> I am encapsulating the above user control in a ASPX page named Page1.aspx i.e. the ASPX 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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...

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.