御用舞团是什么意思:.net自定义控件问题?

来源:百度文库 编辑:神马品牌网 时间:2024/04/20 12:18:54
我想自定义开发控件,可是要发生自定义的事件必须用下面的脚本去提交,我开发的控件怎么能注册上下面的这段代码呢?谢谢
<script language="javascript">
<!--
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();
}
// -->
</script>
在一个页面上放很多这样的控件,可是我想让他注册一个上面的脚本?