Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a textbox in an aspx webform and I have to insert a hyperlink while editing the data in the textbox to submit it to database.
When this submitted data is rendered and if the user clicks on the the hyperlink I inserted, it should populate the data.

Lets say when I am asking this question, I am entering my question in the text box and it has option to insert link in to this text.
Just like this I would like to have a hyperlink or other control I can insert in the text so that I can populate the data.
Any suggestions or solutions would be helpful.
Thanks!!!!
Posted

1 solution

See this previous question: How we insert hyperlink in textarea in textbox[^]

Sergey Kryukov's answer (Solution 2): Please see my comment: in your HTML, all code is insider your textarea element. This is wrong. This elements is designed to allow the user to enter plain text. All HTML code inside its text is not rendered as HTML and is not supposed to be. Not only it is impossible, it would not make any sense. If you need a hyperlink (rendered via anchor element), place it outside of textarea element.
 
Share this answer
 
Comments
Member 8544853 31-Oct-12 11:41am    
I would like to use htmleditorextender to insert hyperlink.

I am not sure whether to insert hyperlink or any other control.

All I want is to insert a text and highlight it to submit it to database so that when the user looks at it, it should look like a link and

when he clicks it should populate the data(lets say call a stored procedure).

How do I do this?
Suk@nta 7-Apr-14 8:33am    
You can't insert hyperlink inside a textbox bcz it only accept plain text.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900