请帮看下面的几句HTML,为什么在后台得不到CmdOK_Click事件?急。
<head>
<script language= "javaScript ">
function Verify()
{
......
}
</script>
</head>
<body bgColor= "#ddebff " MS_POSITIONING= "GridLayout ">
<form id= "IT_TaskAudit " method= "post " runat= "server " onsubmit= "return Verify(); ">
......
<asp:button id= "CmdOK " runat= "server " width= "50% " height= "22 " text= "提交 "> </asp:button>
------解决方案-------------------- <asp:button id= "CmdOK " runat= "server " width= "50% " height= "22 " text= "提交 " onclick= "CmdOK_Click() "> </asp:button>
------解决方案--------------------用什么开发的 wbemarix?
我以前用这东西碰到过这问题
重新打开双击就行了
------解决方案--------------------重新打开文件双击 不就行了
------解决方案--------------------不知道楼主要做什么,如果单纯的想要服务器端事件,就是
<asp:button id= "CmdOK " runat= "server " width= "50% " height= "22 " text= "提交 " onClick = "CmdOK_Click "> </asp:button>
然后在你的后端加入
protected void CmdOK_Click(object sender, EventArgs e)
{
}
------解决方案--------------------this.CmdOK.Click += new EventHandler(this.Submit_Click);
------解决方案-------------------- <asp:button id= "CmdOK " runat= "server " onClick = "CmdOK_Click "> </asp:button>
后台
protected void CmdOK_Click(object sender, EventArgs e)
{
}
------解决方案-------------------- 双击该按钮,仍然跳到CmdOK_Click后台事件中。
我把这个按钮删除,重新拉了一个,换个名,好了。
晕啊。。。。。。。
==========
想起来了 我以前也是这么解决的
估计你用的不是vs
------解决方案--------------------好了,接分了