ASP.Net UpdatePanel ContentTemplate Render Question

Hello all,

I am writing a server control and I have pretty much everything needed except one thing I am stuck on.  In the rendercontents I am rendering out all the HTML tags and controls I need.  However, the controls okay easy to render with rendercontrol.   The question I have is how do I get into the inside of the update panel contenttemplate to start the HTML writes within those tags.  For example:

<asp:UpdatePanel runat="server" id="UpdatePanel" updatemode="Conditional">
                <asp:Label runat="server" id="DateTimeLabel1" />
                <asp:Button runat="server" id="UpdateButton1" onclick="UpdateButton_Click" text="Update" />          

so for example in my render:
  protected override void RenderContents(HtmlTextWriter output)

I am stuck on how do I get into the internal part of the UpdatePanel.  Thanks all
Who is Participating?
Easwaran ParamasivamCommented:
Updatepanel is not rendered directly. You can customise it to render. contains example for it.
sbornstein2Author Commented:
still confused because how does this let me write to the content template?  
sbornstein2Author Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.