问题描述
嗨!朋友,
我正在使用modalpopextender显示数据.
我的modalpopextender在Linkbutton单击时打开.
我在datagrid中有一个多个linkbutton.
我的查询是:
我想在< b> Label</b>中显示来自数据库的记录.放在modalpopextender上.
我已经从数据库中检索了数据,但是我不知道如何将这些信息放入< b> Label</b>
实际上,我的ascx页面上未显示链接按钮,因为
一些内部编码.所以我无法生成点击事件.
请指导我:我显示一些代码以帮助您:
Hi! friends,
I am using modalpopextender to display the data.
My modalpopextender is open on Linkbutton click.
I have a multiple linkbutton in datagrid.
My query is:
I want to display the record from the database in <b>Label</b> which is placed on modalpopextender.
I already retrieve the data from the database but, I don''t know how to put these information in <b>Label</b>
Actually the linkbutton is not shown on my ascx page because
some internal coding. So I can''t generate click event.
Please guide me: I display my some code for your help:
<asp:LinkButton ID="lbtnID" runat="server" Text=''<%# Eval("ApplicantId")%>'' CommandArgument=''<%# Eval("ApplicantId")%>'' CommandName="Det"></asp:LinkButton>
<asp:Panel ID="pnltest" runat="server" >
<table>
<tr>
<td >Applicant Name</td>
<td ><asp:Label ID="lblAppName" runat="server"></asp:Label></td>
</tr>
<tr>
<td >Applicant Code</td>
<td ><asp:Label ID="lblCode" runat="server"></asp:Label></td>
</tr>
</asp:Panel>
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="lbtnID" PopupControlID="pnltest" RepositionMode="RepositionOnWindowResizeAndScroll">
</cc1:ModalPopupExtender>
谢谢您的问候.
Thank you and regards.
推荐答案
ModalPopupExtender.Show()
方法以显示弹出窗口. :)
method to show the popup. :)
这篇关于在ModalPopExtender中显示值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!