Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

popup extender - showing the panel in the second record!

$
0
0

Hi,

I have a panel in the gridview. After clicking on a button(on the first record)  i am getting the popup panel displayed but if i click the button (which is in the second record), I am getting the pannel displayed in the same record area and not as a popup! 

Can someone help with this?

protected void showit_Click(object sender, EventArgs e)
    {

        //Find the button controls from sender
        Button btn = (Button)sender;

        //Get the row that contains this button
        GridViewRow row = (GridViewRow)btn.NamingContainer;

        //Find the panel control
        Panel panel1 = row.FindControl("Panel1") as Panel;
        panel1.Visible = true;
    }

it is really getting out of hand! i still don't know why and how the following is happening!

first record will show the panel in the popup but the second record will show the pannel in the same area of the gridview!!!!!!


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>