ModalPopupExtender确定事件怎么不执行后台代码里的方法
<asp:PanelID="Panel1"runat="server"Style="display:none"CssClass="modalPopup"><asp:Pan...
<asp:Panel ID="Panel1" runat="server" Style="display: none" CssClass="modalPopup">
<asp:Panel ID="Panel3" runat="server" Style="cursor: move;background-color:#DDDDDD;border:solid 1px Gray;color:Black; text-align:center">
会员登陆</asp:Panel>
<asp:Panel ID="Panel2" runat="server">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="line-height: 30pt" align="center">
<tr>
<td align="right">
用户名:
</td>
<td align="left">
<asp:TextBox ID="TextBox1" runat="server" Width="100px"></asp:TextBox>
<asp:Label ID="lblNameMessage" runat="server" Font-Bold="True" ForeColor="Red" Text="*"
Visible="False"></asp:Label></td>
</tr>
<tr>
<td align="right">
密 码:
</td>
<td align="left">
<asp:TextBox ID="TextBox2" runat="server" TextMode="Password" Width="100px"></asp:TextBox>
<asp:Label ID="lblPasswordMessage" runat="server" Font-Bold="True" ForeColor="Red"
Text="*" Visible="False"></asp:Label></td>
</tr>
<tr>
<td align="right">
验证码:
</td>
<td align="left">
<asp:TextBox ID="TextBox3" runat="server" Width="40px"></asp:TextBox>
<img id="Img2" alt="看不清,请点击我!" onclick="this.src=this.src+'?'" src="CheckCode.aspx"
style="width: 65px; height: 22px" />
<asp:Label ID="lblCodeMessage" runat="server" Font-Bold="True" ForeColor="Red" Text="*"
Visible="False"></asp:Label></td>
</tr>
<tr>
<td align="center" colspan="2">
<input type="image" runat="server" id="imgbtnLogin" style="cursor:hand" src="images/login.bmp" onserverclick="imgbtnLogin_ServerClick"/>
<input type="image" runat="server" id="imgbtnCancel" style="cursor:hand" src="images/cancel.bmp" /><br /> </td>
</tr>
</table>
</asp:Panel>
</asp:Panel>
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
TargetControlID="model"
PopupControlID="Panel1"
BackgroundCssClass="modalBackground"
CancelControlID="imgbtnCancel"
OkControlID="imgbtnLogin"
DropShadow="true"
Drag="true"
PopupDragHandleControlID="Panel3" />
怎么不执行后台代码里的方法
protected void imgbtnLogin_ServerClick(object sender, ImageClickEventArgs e)
{
} 展开
<asp:Panel ID="Panel3" runat="server" Style="cursor: move;background-color:#DDDDDD;border:solid 1px Gray;color:Black; text-align:center">
会员登陆</asp:Panel>
<asp:Panel ID="Panel2" runat="server">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="line-height: 30pt" align="center">
<tr>
<td align="right">
用户名:
</td>
<td align="left">
<asp:TextBox ID="TextBox1" runat="server" Width="100px"></asp:TextBox>
<asp:Label ID="lblNameMessage" runat="server" Font-Bold="True" ForeColor="Red" Text="*"
Visible="False"></asp:Label></td>
</tr>
<tr>
<td align="right">
密 码:
</td>
<td align="left">
<asp:TextBox ID="TextBox2" runat="server" TextMode="Password" Width="100px"></asp:TextBox>
<asp:Label ID="lblPasswordMessage" runat="server" Font-Bold="True" ForeColor="Red"
Text="*" Visible="False"></asp:Label></td>
</tr>
<tr>
<td align="right">
验证码:
</td>
<td align="left">
<asp:TextBox ID="TextBox3" runat="server" Width="40px"></asp:TextBox>
<img id="Img2" alt="看不清,请点击我!" onclick="this.src=this.src+'?'" src="CheckCode.aspx"
style="width: 65px; height: 22px" />
<asp:Label ID="lblCodeMessage" runat="server" Font-Bold="True" ForeColor="Red" Text="*"
Visible="False"></asp:Label></td>
</tr>
<tr>
<td align="center" colspan="2">
<input type="image" runat="server" id="imgbtnLogin" style="cursor:hand" src="images/login.bmp" onserverclick="imgbtnLogin_ServerClick"/>
<input type="image" runat="server" id="imgbtnCancel" style="cursor:hand" src="images/cancel.bmp" /><br /> </td>
</tr>
</table>
</asp:Panel>
</asp:Panel>
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
TargetControlID="model"
PopupControlID="Panel1"
BackgroundCssClass="modalBackground"
CancelControlID="imgbtnCancel"
OkControlID="imgbtnLogin"
DropShadow="true"
Drag="true"
PopupDragHandleControlID="Panel3" />
怎么不执行后台代码里的方法
protected void imgbtnLogin_ServerClick(object sender, ImageClickEventArgs e)
{
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询