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

Update Panel On Master Page

$
0
0

I have an Image control a Master Page that the user can change from a content page.  I would like to update  the picture using an update panel, but I dont see how I can trigger it from the content page.

The master page image

<asp:UpdatePanel ID="UpdatePanelParent" runat="server" ChildrenAsTriggers="false" UpdateMode="Conditional"> <ContentTemplate><asp:Image ID="iprofile" runat="server" BorderStyle="Solid" BorderColor="Gold" BorderWidth="1px" style="margin:20px;" /></ContentTemplate></asp:UpdatePanel> 
protected void btnclosepic_Click(object sender, EventArgs e)
    {
        UpdatePanel panel = (UpdatePanel)Master.FindControl("UpdatePanelParent");
        panel.Update();

    }

This is my  attempt at triggering the update Panel - it doesnt work...


Viewing all articles
Browse latest Browse all 5678

Trending Articles



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