Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...