473,386 Members | 1,720 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.

ASP.NET Form - Postback bug or me being a dimwit?

I'm probably being ignorant here but I've done this:

a)Created a aspx form which contains a radio button list as well as a
submit button

b)Set the radio button list to autopostback, the idea being that the
form will change when a radio button is hit (haven't coded this in
yet). This is the only control set for this behaviour.

I'm experiencing the following:

When compiling the page IE comes up with "Line 149: Char 29, Error:
Expected ‘;'
Code:0

On inspection of the html code generated it appears to be referring to
the following JavaScript that must have been generated by ASP.NET:

<script language="javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("n etscape") > -1)
{
theform = document.forms["_ctl10:frmSubscribe"];
}
else {
theform = document._ctl10:frmSubscribe;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>
and

"theform = document._ctl10:frmSubscribe;"

appears to contain the error in question (missing ;).

Has anybody experienced this in Visual Studio 2003 (release version)
and do they know how to get around it (without comprising on browser
compatibility), considering the code is autogenerated.

I think I've covered the necessary, further details and code upon
request

Many Thanks!

Alex
Nov 17 '05 #1
6 1084
Bob
Yeah, I read this, but it says it only applies to
Framework 1.0. I have removed Framework 1.0 (using
Add/Remove Programs) and am using 1.1 and VS .NET 2003
which says it uses Framework 1.1. I am still getting the
error. Our web tech won't install the HotFix until I can
prove that it affects 1.1 also. I have found nothing on
MSDN to prove this.

Does anyone know if this bug was supposed to be fixed in
Framework 1.1. Since the Knowledgebase article was just
posted a month ago, I doubt the fix was in 1.1, but I
can't prove it!

Thanks.
-----Original Message-----
Hi

["_ctl10:frmSubscribe"]; The ":" is the error
http://support.microsoft.com/default.aspx?id=818803

--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
"Alex Shirley" <po******@alexshirley.com> wrote in messagenews:e9**************************@posting.google. com...
I'm probably being ignorant here but I've done this:

a)Created a aspx form which contains a radio button list as well as a submit button

b)Set the radio button list to autopostback, the idea being that the form will change when a radio button is hit (haven't coded this in yet). This is the only control set for this behaviour.

I'm experiencing the following:

When compiling the page IE comes up with "Line 149: Char 29, Error: Expected ';'
Code:0

On inspection of the html code generated it appears to be referring to the following JavaScript that must have been generated by ASP.NET:
<script language="javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf ("netscape") > -1) {
theform = document.forms["_ctl10:frmSubscribe"];
}
else {
theform = document._ctl10:frmSubscribe;
}
theform.__EVENTTARGET.value = eventTarget.split ("$").join(":"); theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>
and

"theform = document._ctl10:frmSubscribe;"

appears to contain the error in question (missing ;).

Has anybody experienced this in Visual Studio 2003 (release version) and do they know how to get around it (without comprising on browser compatibility), considering the code is autogenerated.

I think I've covered the necessary, further details and code upon request

Many Thanks!

Alex

.

Nov 17 '05 #2
According to the knowledgebase article that Vidar supplied:

INFO: Post-RTM .NET Framework 1.1 ASP.NET Hotfix Package Symptoms
The information in this article applies to:
Microsoft .NET Framework 1.1
Microsoft ASP.NET (included with the .NET Framework 1.1)

Think that answers your Q!

Now has anybody got that patch?

Cheers

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

Yes it does affect 1.1... read more carefully and you see the error is the
same
so get the fix

--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
"Bob" <bn**********@mindspring.com> wrote in message
news:10****************************@phx.gbl...
Yeah, I read this, but it says it only applies to
Framework 1.0. I have removed Framework 1.0 (using
Add/Remove Programs) and am using 1.1 and VS .NET 2003
which says it uses Framework 1.1. I am still getting the
error. Our web tech won't install the HotFix until I can
prove that it affects 1.1 also. I have found nothing on
MSDN to prove this.

Does anyone know if this bug was supposed to be fixed in
Framework 1.1. Since the Knowledgebase article was just
posted a month ago, I doubt the fix was in 1.1, but I
can't prove it!

Thanks.
-----Original Message-----
Hi

["_ctl10:frmSubscribe"]; The ":" is the error
http://support.microsoft.com/default.aspx?id=818803

--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
"Alex Shirley" <po******@alexshirley.com> wrote in

message
news:e9**************************@posting.google. com...
I'm probably being ignorant here but I've done this:

a)Created a aspx form which contains a radio button list as well as a submit button

b)Set the radio button list to autopostback, the idea being that the form will change when a radio button is hit (haven't coded this in yet). This is the only control set for this behaviour.

I'm experiencing the following:

When compiling the page IE comes up with "Line 149: Char 29, Error: Expected ';'
Code:0

On inspection of the html code generated it appears to be referring to the following JavaScript that must have been generated by ASP.NET:
<script language="javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf ("netscape") > -1) {
theform = document.forms["_ctl10:frmSubscribe"];
}
else {
theform = document._ctl10:frmSubscribe;
}
theform.__EVENTTARGET.value = eventTarget.split ("$").join(":"); theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>
and

"theform = document._ctl10:frmSubscribe;"

appears to contain the error in question (missing ;).

Has anybody experienced this in Visual Studio 2003 (release version) and do they know how to get around it (without comprising on browser compatibility), considering the code is autogenerated.

I think I've covered the necessary, further details and code upon request

Many Thanks!

Alex

.

Nov 17 '05 #4
Just installed the patch supplied by MS and problem is now resolved.

Thanks Vidar!

Alex
Nov 17 '05 #5
I hope SP will be out soon.

George.
"Alex Shirley" <po******@alexshirley.com> wrote in message
news:e9**************************@posting.google.c om...
Just installed the patch supplied by MS and problem is now resolved.

Thanks Vidar!

Alex

Nov 17 '05 #6
From: George Ter-Saakov
I hope SP will be out soon.
George.


Wot, so they can screw it up even more?

:)

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

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

Similar topics

9
by: Dan | last post by:
I am trying to use Request.Form("__EVENTTARGET") to get the name of the control that caused a post back. It keeps returning "". I am not really sure why, this happens for all of my controls...
6
by: varkey.mathew | last post by:
Hi there, I have a basic form with a postback. The following is a line of dynamic code written so that when the user clicks on the Button control, he will receive a confirm messagebox. ...
2
by: Elliot Rodriguez | last post by:
I have a form that contains a mix of dynamic controls and declared controls. All of them are intrinsic .NET controls. Several functions within the page use Request.Form to query the value of the...
12
by: Mark Rae | last post by:
Hi, See the previous thread Request.Form abuse in this newsgroup... I'm looking for a simple and efficient way to prevent people hijacking the <formtags on my websites and using them to send...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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.