473,325 Members | 2,671 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,325 software developers and data experts.

Display HTML in Application Window

Bob
I am pretty new at C#, so bare with me. I want to be able to read a local HTML file and display it in a browser window within my application. I also want to submit that page to my application and generate a "Post" to a web server and read the contents back and display back into the same browser window in my application

I have found the methods HttpWebRequest and HttpWebResponse that allows me to read/write to the Web server, but I am not sure which Class or methods I should use to render the HTML in my application window, or to display the HTML response

I am sure its fairly basic. Does someone have a code sample or link where they can direct me

Thanks for the hel

Nov 16 '05 #1
3 1918
Add a refernce to MSHTML. That has a browser component, so you end up
hosting "IE".

Then you can point it wherever you want, or write directly to the document.
You can even listen on localhost on whatever port, and have the webbrowser
component communicate to your app through that, if you are so inclined.

-mike
MVP

"Bob" <an*******@discussions.microsoft.com> wrote in message
news:7A**********************************@microsof t.com...
I am pretty new at C#, so bare with me. I want to be able to read a local
HTML file and display it in a browser window within my application. I also
want to submit that page to my application and generate a "Post" to a web
server and read the contents back and display back into the same browser
window in my application.

I have found the methods HttpWebRequest and HttpWebResponse that allows me
to read/write to the Web server, but I am not sure which Class or methods
I should use to render the HTML in my application window, or to display
the HTML response.

I am sure its fairly basic. Does someone have a code sample or link where
they can direct me.

Thanks for the help


Nov 16 '05 #2
Bob
Mike,
Thanks for the start, but can you give me a little more information, specifically which component ? I added the reference and see all kinds for things in there when I expand the Object List for MSHTML, but not sure where to start or which control method to begin with
Thank for you help
Bob
Nov 16 '05 #3
It'll create an ActiveX wrapper:

AxSHDocVw.AxWebBrowser

-mike
MVP

"Bob" <an*******@discussions.microsoft.com> wrote in message
news:4C**********************************@microsof t.com...
Mike,
Thanks for the start, but can you give me a little more information,
specifically which component ? I added the reference and see all kinds
for things in there when I expand the Object List for MSHTML, but not sure
where to start or which control method to begin with.
Thank for you help.
Bob


Nov 16 '05 #4

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

Similar topics

9
by: yezanxiong | last post by:
Hello all, I am new in asp.net developer,I would like to ask a simple question. how to display a message box in web application using asp.net? If I just use Private Sub btnOK_Click(ByVal...
3
by: Bob | last post by:
I am pretty new at C#, so bare with me. I want to be able to read a local HTML file and display it in a browser window within my application. I also want to submit that page to my application and...
7
by: TLM | last post by:
I am trying to build a web application that will contain links to files on a users local computer. I am assuming that the files will be in a known location and can display in a browser window. ...
8
by: lli | last post by:
Hi Guys, I have designed a web application. In its one window I put a form. User can click submit button of this form to run a pathon script to get data from database. Then User get a new window...
2
by: Patrick | last post by:
Hello, I need some advice on how to handle the following scenario in Javascript. Imagine an HTML page that displays relational database records from an address book application. Each record...
1
by: bigmaddaz | last post by:
Ok im designing an application for working out compount interest. The user starts the page, 3 prompts appear, one asking for money invested, next asking for rate of interest, and last one asking for...
9
by: tshad | last post by:
This was posted before but the message got messed up (all NLs were stripped out for some reason). I have 2 labels that hold the name of different images on my .aspx page. <asp:Label ID="Logo"...
14
by: lmttag | last post by:
Hello. We're developing an ASP.NET 2.0 (C#) application and we're trying to AJAX-enable it. We're having problem with a page not showing the page while a long-running process is executing. So,...
15
by: cssExp | last post by:
hello, Rather than going on a wild explanation on what's the the problem, it'll be much quicker and easier if i let you look at it yourself, so I'll post my page source (actual contents taken out,...
2
by: wreed06 | last post by:
Hello, I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.