Error in __doPostBack when installing .Net 1.1 with 1.0

M

Miguel Figueroa

Hi,

I'm (and I thing a lot of guys are) having problems with
the __doPostBack javascript function. This due to the
installation of .Net 1.1 on my pc containing the .Net 1.0
The project I'm working on it, targets the .Net 1.0 (has
not been migrated to .Net 1.1).

Problem description:
Object expected.
Code:
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase
().indexOf("netscape") > -1) {
theform = document.forms
["Layout:frmLayout"];
}
else {
theform =
document.Layout:frmLayout;
}
theform.__EVENTTARGET.value =
eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value =
eventArgument;
theform.submit();
}


As you can see the code document.Layout:frmLayout;
is invalid in JavaScript because of the :frmLayout
 
V

Victor Garcia Aprea [MVP]

Hi Miguel,

This is a well-known bug and its already fixed in a patch release by
Microsoft, sorry I dont have the link handy but you should not have much
trouble in finding it, just google for it or search microsoft.com

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
and not by private mail.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top