473,382 Members | 1,431 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,382 software developers and data experts.

HTML text filters, display control, utilities

Does anyone have a pointer to code for:

1 Filtering text from html? (removing html tags, etc)

2 Displaying HTML in a windows form

or any other useful utilities for dealing with raw HTML.

Nov 18 '05 #1
3 1110

Displaying HTML In a Windows form - the easiest way is to use the Web
Browser control. Filtering text from XML is a bit trickier, but if you are
using the Web Browser control you can use the innerText property to get all
the text stripped off the tags returned. Not that that is terribly usful in
anything but the simplest HTML forms.
+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
----------------------------------
Making waves on the Web
"_eee_" <_n****@nomail.com> wrote in message
news:g2********************************@4ax.com...
Does anyone have a pointer to code for:

1 Filtering text from html? (removing html tags, etc)

2 Displaying HTML in a windows form

or any other useful utilities for dealing with raw HTML.

Nov 18 '05 #2
On Fri, 27 Feb 2004 18:50:32 -1000, "Rick Strahl [MVP]"
<ri********@hotmail.com> wrote:

Displaying HTML In a Windows form - the easiest way is to use the Web
Browser control. Filtering text from XML is a bit trickier, but if you are
using the Web Browser control you can use the innerText property to get all
the text stripped off the tags returned. Not that that is terribly usful in
anything but the simplest HTML forms.

+++ Rick ---


Thanks, Rick. I had used that control before, but with MFC. That
project sent the browser to web-based URL's.

I didn't realize it could decode/display an in-memory html string.
Have you done this before? I didn't see calls for that. (Doesn't mean
that they aren't there)
Nov 18 '05 #3
You can use the WebBrowser control to use local file Urls or if you have to
setting it via the MSHTML DOM (which requires a nother import)... However, I
would use files rather than DOM methods as you have more control over the
document (ie. you can get the headers in there which can't be done with an
already loaded document).

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
----------------------------------
Making waves on the Web
"_eee_" <_n****@nomail.com> wrote in message
news:1d********************************@4ax.com...
On Fri, 27 Feb 2004 18:50:32 -1000, "Rick Strahl [MVP]"
<ri********@hotmail.com> wrote:

Displaying HTML In a Windows form - the easiest way is to use the Web
Browser control. Filtering text from XML is a bit trickier, but if you areusing the Web Browser control you can use the innerText property to get allthe text stripped off the tags returned. Not that that is terribly usful inanything but the simplest HTML forms.

+++ Rick ---


Thanks, Rick. I had used that control before, but with MFC. That
project sent the browser to web-based URL's.

I didn't realize it could decode/display an in-memory html string.
Have you done this before? I didn't see calls for that. (Doesn't mean
that they aren't there)

Nov 18 '05 #4

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

Similar topics

4
by: ,hj | last post by:
From: ",hj" <webmaster@mail.com> Subject: Losing random characters in HTML email Date: 28 November 2003 17:21 I've narrowed down my code as much as I can so that I can show you this bug. The...
6
by: Danny Lesandrini | last post by:
I'm using an Access database to drive a web site and the colors of various table backgrounds are stored in Access. I want users of the Access database to be able to select colors for the site, but...
5
by: Tomaz Koritnik | last post by:
Hi I have many short HTML files stored in a binary stream storage to display descriptions for various items in application. HTML would be display inside application using some .NET control or...
20
by: Guadala Harry | last post by:
In an ASCX, I have a Literal control into which I inject a at runtime. litInjectedContent.Text = dataClass.GetHTMLSnippetFromDB(someID); This works great as long as the contains just...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
15
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to...
3
by: CJM | last post by:
David, Thanks for the reply. Responses inline: "David E. Ross" <nobody@nowhere.notwrote in message news:OZadnaBdOMGpYb3VnZ2dnUVZ_vOdnZ2d@softcom.net... This is a promotional mailshot so...
5
sid0404
by: sid0404 | last post by:
Hi I am new to the visualstudio.net I am trying to develop an application which requires me to send data to a HTML webpage - http://patft.uspto.gov/netahtml/PTO/search-bool.html and the user...
8
mikek12004
by: mikek12004 | last post by:
1) Script Title: Rich HTML Balloon Tooltip 2) Script URL :http://www.dynamicdrive.com/dynamicindex5/balloontooltip.htm 3) Problem Description: See this page General Music for links you can...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.