.NETGURU
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...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification