I have a page that I am using to call all user controls at the time they are needed to perform different actions against the database. I have gotten the user controls to load at their proper times, however I am having some difficulty with one of the controls. The control in question has to be called at the time of page load but not rendered until asked for by the user. Nested in the control is another custom control for uploading a picture. When the user clicks the "Change Picture" link button the desired result is that the file upload control and save/cancel buttons become visible. However when the user clicks the "Change Picture" link button nothing happens on the first click, then on the second click the main user control closes. I have looked at alot of articles regarding nesting user controls but none of them describe how to make the control dynamic and persistent until it is not needed any longer.
Here is my code for the 2 user controls and the main page....
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EmployeeImgUpl.ascx.cs" Inherits="HR_Intranet.userctrls.EmployeeImgUpl" %>
<link href="../App_Themes/UserCtrls/UsrCtrls.css" rel="stylesheet" type="text/css" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Condit
View Complete Post