从客户端的数据库中获取值
<asp:LinkButton ID="Lnk_Edit" ToolTip="Edit Message"
CommandArgument='<%# Eval("MsgID") %>'
CommandName="Edit"
runat="server">
<img id="Img2" src="Styles/Images/Edit.jpg"
runat="server"
style="border-style: none" alt="Edit Message" />
</asp:LinkButton>
<asp:PopupControlExtender
ID="CreateUser_PopupControlExtender"
runat="server" DynamicServicePath=""
Enabled="True"
ExtenderControlID=""
TargetControlID="editmsg"
PopupControlID="Paneledit">
</asp:PopupControlExtender>
我在网格视图中有一个编辑按钮,我弹出一个包含文本框的面板。我想用用户选择的值填充这些文本框。我从用户点击中获取消息 ID,如何从客户端的数据库中填充数据
<asp:LinkButton ID="Lnk_Edit" ToolTip="Edit Message"
CommandArgument='<%# Eval("MsgID") %>'
CommandName="Edit"
runat="server">
<img id="Img2" src="Styles/Images/Edit.jpg"
runat="server"
style="border-style: none" alt="Edit Message" />
</asp:LinkButton>
<asp:PopupControlExtender
ID="CreateUser_PopupControlExtender"
runat="server" DynamicServicePath=""
Enabled="True"
ExtenderControlID=""
TargetControlID="editmsg"
PopupControlID="Paneledit">
</asp:PopupControlExtender>
I have a edit button in the grid view, I pop up a panel containing text box. I want to fill those text box with the value selected by the user. I get Msg ID from the user click, How can I fill data from database in client side
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我几乎从未使用过 ajax 控件扩展器,但从外观上看,您必须在 Lnk_Edit OnCommand (编辑:啊!并且 CommandName ==“Edit”)事件触发后填充您的 Paneledit 值。
I have almost never used the ajax control extenders, but from what it looks you'll have to fill your Paneledit values after Lnk_Edit OnCommand (EDIT: ah! and CommandName == "Edit") event is fired.