ASP.NET 自动生成的的 __doPostBack 函数的问题
function __doPostBack(eventTarget, eventArgument)
{
var theform;
if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1)
{
theform = document.forms["Form1"];
}
else
{
theform = document.Form1;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
1。我想知道
theform.__EVENTTARGET.value = eventTarget.split("$").join(":"); theform.__EVENTARGUMENT.value = eventArgument;
起什么作用?
2。我在一个 DATAGRID 的 ItemDataBound 事件里有
e.Item.Attributes.Add("onclick","__doPostBack('"+((LinkButton)e.Item.Cells[4].Controls[0]).ClientID.Replace("__","$_")+"','')");
这句话起什么作用呢?(该DATAGRID 的 编辑列是第5列)
3。诸如 DATAGRID,DATALIST 之类的,其个项的 ClientID是如何分配的呢?