Click here to Skip to main content
15,881,380 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 28-Oct-10 3:23am
v2
Comments
Sunasara Imdadhusen 28-Oct-10 9:22am    
You want to display modalpopup from clicking on Grid Row items (linkbutton)?
Bikash Shrestha From Nepal 28-Oct-10 11:46am    
what does the usercontrol contain?and what is the role of that user control?please make us clear.
ShashankSinghThakur 28-Oct-10 14:11pm    
question is not clear

1 solution

Hi,
I am not clear why you are able to see your link button. As a brief outline I suggest you to handle the SelectedIndexChanged event of DataGrid and Assign the selected value to the Label.Now call the
ModalPopupExtender.Show()
method to show the popup. :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900