Text to System.Web.UI.Control

  • Thread starter Michael Kremser
  • 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
 
K

Karl

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

Karl
 
E

Eliyahu Goldin

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top