HTML Text writer

Posted by user339160 on Stack Overflow See other posts from Stack Overflow or by user339160
Published on 2010-05-14T06:48:51Z Indexed on 2010/05/14 6:54 UTC
Read the original article Hit count: 213

Filed under:
|

In my project , i have created a custom control which inherits from label. My aim is to add 2 links in this . I need to use the same label to render these two links.i tried the bellow code only the first link is loading ,not the second .Please help

my sample code looks like

writer.RenderBeginTag(HtmlTextWriterTag.Link);
writer.AddAttribute(HtmlTextWriterAttribute.Href, string.Concat(Path 1));
writer.AddAttribute(HtmlTextWriterAttribute.Type, "text/css");
writer.AddAttribute(HtmlTextWriterAttribute.Rel, "stylesheet");
writer.RenderEndTag();

writer.RenderBeginTag(HtmlTextWriterTag.Link);
writer.AddAttribute(HtmlTextWriterAttribute.Href, string.Concat(Path 2 ));
writer.AddAttribute(HtmlTextWriterAttribute.Type, "text/css");
writer.AddAttribute(HtmlTextWriterAttribute.Rel, "stylesheet");
writer.RenderEndTag();

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET