sbornstein2
asked on
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">
<ContentTemplate>
<asp:Label runat="server" id="DateTimeLabel1" />
<asp:Button runat="server" id="UpdateButton1" onclick="UpdateButton_Clic k" text="Update" />
<table><tr><td></td></tr>< /table>
</ContentTemplate>
</asp:UpdatePanel>
so for example in my render:
protected override void RenderContents(HtmlTextWri ter output)
{
this.UpdatePanel1.RenderCo ntrol(outp ut);
output.RenderBeginTag(Html TextWriter Tag.Table) ;
}
I am stuck on how do I get into the internal part of the UpdatePanel. Thanks 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">
<ContentTemplate>
<asp:Label runat="server" id="DateTimeLabel1" />
<asp:Button runat="server" id="UpdateButton1" onclick="UpdateButton_Clic
<table><tr><td></td></tr><
</ContentTemplate>
</asp:UpdatePanel>
so for example in my render:
protected override void RenderContents(HtmlTextWri
{
this.UpdatePanel1.RenderCo
output.RenderBeginTag(Html
}
I am stuck on how do I get into the internal part of the UpdatePanel. Thanks all
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks
ASKER