高分求助 ModalPopupExtender 的问题

ziyouren521125 ziyouren521125 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我想做一个留言回复的功能。
本来想做成QQ空间那种留言回复的来,但是自己技术有限。不知道怎么做成那样的。
有会的也可以说下。

下面说现在的问题。
现在功能是这样的。就是用ModalPopupExtender这个控件做了个回复的功能。
是点回复弹出一个层。背景变成灰色不可用状态。
但是我我把ModalPopupExtender放在datalist里面了。
代码如下:

<asp:DataList id="DataList1" runat="server" Width="760px" DataSourceID="SqlDataSource1" DataKeyField="id" OnItemCommand="DataList1_ItemCommand"><ItemTemplate>
<DIV class="line_5"> </DIV><asp:Button id="aaa" runat="server" Text="回 复" ></asp:Button> <cc1:PopupControlExtender id="PopupControlExtender1" runat="server" TargetControlID="aaa" PopupControlID="Layer2" BehaviorID="Button5" ></cc1:PopupControlExtender>
</ItemTemplate>
</asp:DataList>

<div id="ly" style="position: absolute; top: 0px; filter: alpha(opacity=60); background-color: #777;
z-index: 2; left: 0px; display: none;">
</div>
<!-- 浮层框架开始 -->
<div id="Layer2" align="center" style="position: absolute; z-index: 3; left: 50%; top: 50%;
background-color: #fff; display: none; left: 50%; top: 50%;" >
<table width="540" border="0" cellpadding="0" cellspacing="0" style="border: 0 solid #e7e3e7;
border-collapse: collapse; left: 50%; top: 50%;">
<tr>
<td style="background-color: #73A2d6; color: #fff; padding-left: 4px; padding-top: 2px;
font-weight: bold; font-size: 14px;" height="27" valign="middle">
[ 回 复 留 言 ]
</td>
</tr>
<tr>
<td height="130" align="center">
<asp:TextBox ID="TextBox1" runat="server" Rows="8" TextMode="MultiLine" Width="631px"></asp:TextBox> </td>
</tr>
</table><asp:Button ID="Button5" runat="server" Text="关 闭" />
                       
                      
 <input type="button" value=" 确定 " onclick="Lock_CheckForm(this);" id="Button1" runat="server" style="width: 59px" onserverclick="Button1_ServerClick"></div>



代码是上面的。
绑定后。点一个回复可以弹出层。但是点第二个就不能出来了。

麻烦看看,先谢了

分不够俺可以加
...全文

相关推荐

评论 9
收藏 已收藏
分享
返回顶部
ziyouren521125
Ajax 52,778 成员 25,334 内容