Text to System.Web.UI.Control

  • Thread starter Thread starter Michael Kremser
  • Start date Start date
M

Michael Kremser

Hi NG!

Is there a function in the .net FX that returns a
System.Web.UI.Control's inherited class for a specified text?
Means, if you specify

<a href="http://www.microsoft.com/" title="Microsoft">Microsoft
Corporation</a>

it should return an instance of System.Web.UI.HtmlAnchor or
System.Web.UI.WebControls.LinkButton, where Href, Title, and InnerText
are set appropriately.

Thanks for any hint!

Best regards,

Michael
 
There's nothing in .Net to do this...there might be third party tools
though....couldn't quickly find anything..

Karl
 
Note, that in you example you don't have a server-side control in the first
place since there is no runat=server attribute.

Eliyahu
 
Back
Top