Click here to Skip to main content
15,921,113 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Please give reply to this.


XML
<asp:Button ID="btnShowPopup" runat="server" Style="display: none" />
    <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" 
        TargetControlID="btnShowPopup" BehaviorID="ModalBehaviour" 
        PopupControlID="pnlpopup" CancelControlID="btnCancel"
        BackgroundCssClass="modalBackground">
    </asp:ModalPopupExtender>
    <asp:Panel ID="pnlpopup" runat="server" BackColor="White" 
        Height="269px" Width="400px" Style="display: none">

C#
protected void imgbtn_Click(object sender, ImageClickEventArgs e)
{
    ImageButton btndetails = sender as ImageButton;
    GridViewRow gvrow = (GridViewRow)btndetails.NamingContainer;
    lblID.Text = gvdetails.DataKeys[gvrow.RowIndex].Value.ToString();
    lblusername.Text = gvrow.Cells[1].Text;
    txtfname.Text = gvrow.Cells[2].Text;
    txtlname.Text = gvrow.Cells[3].Text;
    txtEmail.Text = gvrow.Cells[4].Text;
    ModalPopupExtender1.Show();
    //pnlpopup.Style.Add("display", "block");
}
Posted
Updated 28-Mar-13 1:48am
v2
Comments
Prasad Khandekar 28-Mar-13 7:49am    
Please elaborate more. What problem you are facing and what all things you have tried. That will really help in answering your question.
[no name] 28-Mar-13 7:50am    
A reply to what? You not ask any kind of a question or describe any kind of a problem.
ZurdoDev 28-Mar-13 8:02am    
What's the issue?
[no name] 28-Mar-13 9:57am    
and the problem is ... ???
Richard C Bishop 28-Mar-13 10:38am    
My reply to that is.................that looks like code.

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