clickclickbang
asked on
Custom Control Render (HtmlTextWriter writer) Not Writing ID Attribute
I am using the following code. It creates the opening and closing div tag but does not include the attribute tag. Any ideas what I am doing wrong?
protected override void Render(HtmlTextWriter writer)
{
writer.RenderBeginTag(Html TextWriter Tag.Div);
writer.AddAttribute(HtmlTe xtWriterAt tribute.Id , "hi");
writer.RenderEndTag();
base.Render(writer);
}
Thanks for help!
protected override void Render(HtmlTextWriter writer)
{
writer.RenderBeginTag(Html
writer.AddAttribute(HtmlTe
writer.RenderEndTag();
base.Render(writer);
}
Thanks for help!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
https://www.experts-exchange.com/Community_Support/
Glad you found a solution... Take care.
-- Jason