Click here to Skip to main content
11,805,316 members (65,952 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C#3.0 C#
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
Edited 28-Mar-13 1:48am
(no name)49.9K
Prasad Khandekar at 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 at 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 at 28-Mar-13 8:02am
What's the issue?
Krunal Rohit at 28-Mar-13 9:57am
and the problem is ... ???
richcb at 28-Mar-13 10:38am
My reply to that is.................that looks like code.
nandakishoreroyal at 3-Apr-13 9:42am
Question is..

In visual studio 2005 modal popup extandar is not working..
popup is not opening..
nandakishoreroyal at 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
0 OriginalGriff 3,265
1 Maciej Los 1,990
2 KrunalRohit 1,907
3 CPallini 1,855
4 Richard MacCutchan 1,227

Advertise | Privacy | Mobile
Web01 | 2.8.151002.1 | Last Updated 28 Mar 2013
Copyright © CodeProject, 1999-2015
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