Microsoft MasterPages ASP.NET v1.0

A

Andrew

I am trying to use an editable DataGrid inside a "region"
using Microsoft MasterPages ASP.NET v1.0 from asp.net.
The datagid loads and displays the data, but when you
click edit it generates an error in the client side
javascript postback. Any ideas?

Thanks, Andrew
 
A

Andrew

It appaers that the problem stems from the datagrid being
renamed and the new name contains colons :)). Any idea
how to remove the colons?

Here is the postback script:

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

Thanks, Andrew
 
G

Guest

It's actually the form that gets renamed with colons:

<form name="_ctl0:_ctl0:Form1" method="post"
action="testpage2.aspx" id="_ctl0__ctl0_Form1">

here is the postback script:

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

Thanks, Andrew
 
G

Guest

Andre
Did you find this? ( http://support.microsoft.com/default.aspx?kbid=818803) I am desperately looking for that OCM patch described here, but cant seem to find it anywhere!! I am running on Windows Server 2003, so cannot run the msi installs. If you have this hotfix and can pass it on or point me to a source, I would very much appreciate it. Thank you!
Aarti Sharm
(e-mail address removed)
 

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

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top