473,398 Members | 2,525 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Looking for control that displays HTML

I am looking for a control that displays simple HTML text (just basic tags,
not active content needed).

I know I can use the IE ActiveX control but really want to stay away from
the headaches if I can. There has to be some type of lite control out there
that can handle this. I am hacked off that the RTF control will not read
HTML. RTF tags are WAY too much work for what I need to do.
--
Raymond R Cassick
CEO / CSA
Enterprocity Inc.
www.enterprocity.com
3380 Sheridan Drive, #143
Amherst, NY 14227
V: 716-316-7537
Blog: http://spaces.msn.com/members/rcassick/
Nov 21 '05 #1
6 1292
You mean that you just want to be able to render HTML without it being
parsed by the browser? If so, just wrap your output inside
Server.HTMLDecode(). For example:

Label1.Text = Server.HTMLDecode("<BODY>") will cause <BODY> to be rendered
(not parsed) by the client.
"Ray Cassick (Home)" <rc************@enterprocity.com> wrote in message
news:eO**************@TK2MSFTNGP14.phx.gbl...
I am looking for a control that displays simple HTML text (just basic tags,
not active content needed).

I know I can use the IE ActiveX control but really want to stay away from
the headaches if I can. There has to be some type of lite control out
there that can handle this. I am hacked off that the RTF control will not
read HTML. RTF tags are WAY too much work for what I need to do.
--
Raymond R Cassick
CEO / CSA
Enterprocity Inc.
www.enterprocity.com
3380 Sheridan Drive, #143
Amherst, NY 14227
V: 716-316-7537
Blog: http://spaces.msn.com/members/rcassick/

Nov 21 '05 #2
I have a windows forms control that I want to use to display some basic
formatted text to the user. I have an arraylist of classes that I want to
display the text of each class in a table style report.

I figured the very simple way would be iterate the arraylist, dereference
each class, get the data form each one, build a string that contains the
HTML for how I want the report to look and then send the string to a control
to have it rendered.

I currently have built a custom user control that does this, but it is
really messy and I think way more that I need. One simple light weight
control that could render some basic HTML would do the trick and I would not
have to worry about resizes etc..
"Scott M." <s-***@nospam.nospam> wrote in message
news:ua**************@TK2MSFTNGP15.phx.gbl...
You mean that you just want to be able to render HTML without it being
parsed by the browser? If so, just wrap your output inside
Server.HTMLDecode(). For example:

Label1.Text = Server.HTMLDecode("<BODY>") will cause <BODY> to be
rendered (not parsed) by the client.
"Ray Cassick (Home)" <rc************@enterprocity.com> wrote in message
news:eO**************@TK2MSFTNGP14.phx.gbl...
I am looking for a control that displays simple HTML text (just basic
tags, not active content needed).

I know I can use the IE ActiveX control but really want to stay away from
the headaches if I can. There has to be some type of lite control out
there that can handle this. I am hacked off that the RTF control will not
read HTML. RTF tags are WAY too much work for what I need to do.
--
Raymond R Cassick
CEO / CSA
Enterprocity Inc.
www.enterprocity.com
3380 Sheridan Drive, #143
Amherst, NY 14227
V: 716-316-7537
Blog: http://spaces.msn.com/members/rcassick/


Nov 21 '05 #3
Ray,

For that is the AXwebbrowser. Here a little sample how to use that, because
I have seen that in one of the steps something is often confusin. When you
do it like this than next time it is very easy.

Open a new windows application project

In the toolbox rightclick and select add/Remove items

In the customize toolbox select Com and in that Microsoft Webbrowser

When that is in the toolbox drag it to your form
Drag also a button to your form.

Then this code and you have a mini Webbrowser.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.AxWebBrowser1.Navigate2("www.google.com")
End Sub

I hope this helps a little bit?

Cor
Nov 21 '05 #4
Have you ever run into any project deployment issues doing this? I just hate
to have to worry about ActiveX control registration and stuff. This is why I
moved to DotNet in the first place :)

Can this be done using a string instead of a file reference?

I will have to look into it because although I put a lot of work into what I
have now I am just not happy with the results.


"Cor Ligthert" <no************@planet.nl> wrote in message
news:eb**************@TK2MSFTNGP15.phx.gbl...
Ray,

For that is the AXwebbrowser. Here a little sample how to use that,
because I have seen that in one of the steps something is often confusin.
When you do it like this than next time it is very easy.

Open a new windows application project

In the toolbox rightclick and select add/Remove items

In the customize toolbox select Com and in that Microsoft Webbrowser

When that is in the toolbox drag it to your form
Drag also a button to your form.

Then this code and you have a mini Webbrowser.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.AxWebBrowser1.Navigate2("www.google.com")
End Sub

I hope this helps a little bit?

Cor

Nov 21 '05 #5

The HTMLEditor -
http://www.itwriting.com/htmleditor/index.php
by Tim Anderson
*** Sent via Developersdex http://www.developersdex.com ***
Nov 21 '05 #6
"Ray Cassick (Home)" <rc************@enterprocity.com> schrieb:
I am looking for a control that displays simple HTML text (just basic tags,
not active content needed).


Commercial component:

Essential HTML UI
<URL:http://www.syncfusion.com/Products/product.aspx?p=25>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Stimp | last post by:
preferably one that when clicked can update three date dropdowns (day, month, year) like http://www.visitdublin.com/carhire/avis.asp Don't mind paying for the file... anyone seen something...
1
by: Roger | last post by:
I've got a continuous form based on a query the first 2 controls on the form are bound to columns in the query a third control (paymentAmount) is unbound I have a total control in the footer,...
2
by: InHyuk, Song | last post by:
I want to include ascx file, it displays some contents. therefore I drag the ascx file from the solution explorer into the design window of the aspx file. However, in case that ascx file(not...
5
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact...
4
by: DKode | last post by:
I have developed a custom server control that displays a login page that authenticates against AD. The server control works fine, but now I am trying to figure out the best way to output custom...
2
by: Matt | last post by:
Hi, I am looking for a control that will allow me to host other controls inside it but have a method of showing and hiding. I have seen plenty of horizontal controls for doing this but I am looking...
3
by: rn5a | last post by:
The ASPX FileUpload control displays a TextBox along with a 'Browse...' Button. Setting the different properties of this control just reflects the changes in the TextBox but not the Button. For...
0
by: Artie | last post by:
Hi, I'm using a WebBrowser control to display xml formatted to html using a stylesheet. In certain scenarios, if I detect that the xml is invalid, I'd need to display the raw invalid xml in...
1
by: =?Utf-8?B?eXVyaWtz?= | last post by:
Hey, I'm building a business application that needs input of currency data. I looked a lot around google and friends for a good custom control to provide interactive validation and formatting of...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.