C
Chaprasi
Hi,
I am new to writing a control sorry if this question was answered.
I am writing a control where I override the RenderBeginTag, now in this
method I would like to create a DIV tag and add attributes to it.
writer.RenderBeginTag(HtmlTextWriterTag.Div);
writer.AddAttribute(HtmlTextWriterAttribute.Id, "div1");
when I view the source the DIV has no attributes ID in it, how can I
achieve this, I know I can write this
writer.WriteLine("<div id='div1'>");
Any thoughts or ideas ?
Thanks
Chaprasi
I am new to writing a control sorry if this question was answered.
I am writing a control where I override the RenderBeginTag, now in this
method I would like to create a DIV tag and add attributes to it.
writer.RenderBeginTag(HtmlTextWriterTag.Div);
writer.AddAttribute(HtmlTextWriterAttribute.Id, "div1");
when I view the source the DIV has no attributes ID in it, how can I
achieve this, I know I can write this
writer.WriteLine("<div id='div1'>");
Any thoughts or ideas ?
Thanks
Chaprasi