Create Run time controls

Here is the code to generate the run time control like Label , Button, Link button etc.
For example to generate Hyperlink controls and in the same way you can genarate
other controls like Button Label etc.Don't forget to take html table in source code.(

Below is the code which need to add on .cs page

HtmlTableRow tr = new HtmlTableRow();

HtmlTableCell cl = new HtmlTableCell();

HyperLink hlink = new HyperLink();

hlink.NavigateUrl = "Default.aspx" ;

hlink.Text = "Hello";




Vivek Sharma


Guest Author: Muhamad19 Mar 2012

You're the one with the brains here. I'm watching for your posts.

  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name: