Is it possible to place a hyperlink within a ASP.NET textbox control?
-
Just a quick question, is the ASP.NET textbox control only capable of displaying pure text? Is there anyway to embed a HTML link inside the textbox? Thanks! If not, is there anything else I can use? Thanks!!!
-
Just a quick question, is the ASP.NET textbox control only capable of displaying pure text? Is there anyway to embed a HTML link inside the textbox? Thanks! If not, is there anything else I can use? Thanks!!!
Infernojericho wrote:
Just a quick question, is the ASP.NET textbox control only capable of displaying pure text?
Yes. The TextBox control renders to a HTML INPUT tag which can only display unformatted text.
Infernojericho wrote:
Is there anyway to embed a HTML link inside the textbox?
You could create a 'fake' textbox using a DIV tag with the
contenteditable=true
attribute. Not something I've really tried to do myself, but search Google and you should find some more information.Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
-
Infernojericho wrote:
Just a quick question, is the ASP.NET textbox control only capable of displaying pure text?
Yes. The TextBox control renders to a HTML INPUT tag which can only display unformatted text.
Infernojericho wrote:
Is there anyway to embed a HTML link inside the textbox?
You could create a 'fake' textbox using a DIV tag with the
contenteditable=true
attribute. Not something I've really tried to do myself, but search Google and you should find some more information.Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
Thanks for the reply. Do you know if there are any 3rd party, and free (hopefully) textbox controls that support Hyperlinks? Thanks!
-
Thanks for the reply. Do you know if there are any 3rd party, and free (hopefully) textbox controls that support Hyperlinks? Thanks!
FreeTextBox[^] is a free WYSIWYG textbox control for ASP.NET. It does a lot more than just hyperlinks, but I doubt you're going to find a control that just does hyperlinks. You'd have to write one yourself using the DIV approach I mentioned earlier.
Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush