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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top