Click here to Skip to main content
12,997,166 members (68,626 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Please give reply to this.

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

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;
    //pnlpopup.Style.Add("display", "block");
Posted 28-Mar-13 1:26am
Updated 28-Mar-13 1:48am
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.
ThePhantomUpvoter 28-Mar-13 7:50am
A reply to what? You not ask any kind of a question or describe any kind of a problem.
ryanb31 28-Mar-13 8:02am
What's the issue?
Krunal Rohit 28-Mar-13 9:57am
and the problem is ... ???
richcb 28-Mar-13 10:38am
My reply to that is.................that looks like code.
nandakishoreroyal 3-Apr-13 9:42am
Question is..

In visual studio 2005 modal popup extandar is not working..
popup is not opening..
nandakishoreroyal 3-Apr-13 9:46am
I think there is a problem in web config file..
Please any one let me know what are the tags to be added to the web config file to open my modal pop[up extendar.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170622.1 | Last Updated 28 Mar 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100