Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.0
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"
        BackgroundCssClass="modalBackground">
    </asp:ModalPopupExtender>
    <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;
    ModalPopupExtender1.Show();
    //pnlpopup.Style.Add("display", "block");
}
Posted 28-Mar-13 2:26am
Edited 28-Mar-13 2:48am
(no name)47.6K
v2
Comments
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 565
1 Maciej Los 319
2 Richard MacCutchan 220
3 BillWoodruff 164
4 Mathew Soji 160
0 OriginalGriff 8,654
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,639
3 Maciej Los 5,229
4 Manas Bhardwaj 4,986


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