user defined tags
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngrichtextbox' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

James Shaw (VIP)
Hey Ollie,

I just noticed that a user-defined tag in my HTML disappears when I load it
into the rtb.

I set RTB.Text to this:

<section main="about" page="privacy"><p><i>Privacy is very important,
etc..</i>

but I only see this when I look in HTML mode:

<p><i>Privacy is very important, etc..</i></p>

I can easily change my user-defined text to not look like HTML and it’ll
work, but I’m intrigued to know the reason! Surely you don’t validate
against every known HTML tag?

James Shaw
http://CoverYourASP.com/
Download it. Run it. Learn it.
http://ASPRSS.com/
Publish ASP with RSS XML
Reply to this message...
 
    
Ollie Cornes
Hi James,

Believe it or not this is Internet Explorer trying to be helpful :-)

The code in the server control does not do any processing that will
remove information from the document. If you see alterations such as
this then it is the browser acting in a strange fashion and you'll need
to find a way to work around it.

I think your idea of storing the information so it doesn't look like a
tag is a good one as you can easily process it on the server to convert
it into the type of tag you need. Remember that to edit it in the
control again you will need to convert it back into a 'real' HTML tag.
Another approach is to use a known HTML tag to hold the data and use its
attributes to store your data. Perhaps not elegant, but sometimes we
need to work around IE's rather esoteric approach.

Ollie

--

http://www.richtextbox.com/

The lightweight content editor for ASP.NET

-----Original Message-----
From: Click here to reveal e-mail address
[mailto:Click here to reveal e-mail address] On Behalf Of
James Shaw
Sent: 07 July 2002 03:59
To: aspngrichtextbox
Subject: [aspngrichtextbox] user defined tags

Hey Ollie,

I just noticed that a user-defined tag in my HTML disappears when I load
it into the rtb.

I set RTB.Text to this:

<section main="about" page="privacy"><p><i>Privacy is very important,
etc..</i>

but I only see this when I look in HTML mode:

<p><i>Privacy is very important, etc..</i></p>

I can easily change my user-defined text to not look like HTML and it'll
work, but I'm intrigued to know the reason! Surely you don't validate
against every known HTML tag?

James Shaw

http://CoverYourASP.com/

Download it. Run it. Learn it.

http://ASPRSS.com/

Publish ASP with RSS XML

| [aspngrichtextbox] member Click here to reveal e-mail address = YOUR ID |
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp = JOIN/QUIT
Reply to this message...
 
 




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com