Questions tagged [htmlgenericcontrol]

Server-side control that maps to an HTML element not represented by a specific .NET Framework class, such as

and
.

57 questions
10
votes
5 answers

Self closing Html Generic Control?

I am writing a bit of code to add a link tag to the head tag in the code behind... i.e. HtmlGenericControl css = new HtmlGenericControl("link"); css.Attributes["rel"] = "Stylesheet"; css.Attributes["type"] = "text/css"; css.Attributes["href"] =…
user110714
8
votes
2 answers

How to get Generated Html form HtmlGenericControl

I have a template for Html page, and I need to add its contents dynamically in ASP.NET. I also need to make many instences of template page, depending in data. Its obvious that creating large Html using strings is very dirty way. So I choosed to…
umair.ali
  • 2,714
  • 2
  • 20
  • 30
7
votes
1 answer

How to prevent HtmlGenericControl from html-encoding content?

I'm writing an asp.net site (actually, a DotNetNuke module), using C#. From code-behind, I'm trying to create a