Microsoft MasterPages ASP.NET v1.0

  • Thread starter Thread starter Andrew
  • Start date Start date
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
 
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
 
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
 
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)
 
Back
Top