naregkar Posted January 19, 2005 Posted January 19, 2005 Hi all, How can I create formatting tags in ASP.NET? For example: <url=http://some_site>Click here</url> "Click here" represents the title of the link which when clicked will redirect to http://some_site. <url=http://some_site>Click here</url> will be written in a textbox with multi-line property and the formatted text will appear in a label control when a button is clicked. How can I do this? Thanks in advance, Nareg Quote
Administrators PlausiblyDamp Posted January 20, 2005 Administrators Posted January 20, 2005 Rather than a label control you could use the literal control, or alternatively you could use the hyperlink control instead. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
naregkar Posted January 20, 2005 Author Posted January 20, 2005 Hi, Thanks for your reply but there is a problem. If I put hyperlink control instead of the label control then I won't be able to use the other tags such as <i> for italics, <b> for bold, <url> for a link, <email> for email. The tags won't be used only for hyperlinks. What I want is the same as this site's vb Code found here. Thanks again, Nareg Quote
Administrators PlausiblyDamp Posted January 20, 2005 Administrators Posted January 20, 2005 Did you also look at the literal control like I mentioned? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
naregkar Posted January 20, 2005 Author Posted January 20, 2005 I'm sorry. I didn't notice the literal control. I tried it. It is more or less what I want. But as we all know it is based on HTML tags but I don't want that. For example if in the textbox the user enters <img> an empty pic will appear in the literal control. I want something that blocks such things. How can I do? Btw, how is this site's code tags formed? What I want is exactly the same! Thanks, Nareg Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.