Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Can I code HTML code straight to Webbrowser control?

Reply
 
Old 09-22-2009   #1 (permalink)
ngrTerry


 
 

Can I code HTML code straight to Webbrowser control?

I want to be able to write xml/html code from my application to then
display into the webbrowser control in my application without having
to save the details to a fila and then load it into the browser.

Can this be done directly from code by passing a string with the page
contents instead of passing a file to the url.

The problem is that this application will run on users PC's which
have been locked down so secure that not even cookies can be saved...
let alone temporary files to the hard drive...
So my only means of doing this is to write to a html output window and
format my code as I pass it over.

Any suggestions, tips and pointers would be very welcome indeed.
Many Thanks in advance.

My System SpecsSystem Spec
Old 09-23-2009   #2 (permalink)
ib.dangelmeyr


 
 

Re: Can I code HTML code straight to Webbrowser control?

On Sep 22, 1:13*pm, ngrTerry <n...@newsgroup> wrote:
Quote:

> I want to be able to write xml/html code from my application to then
> display into the webbrowser control in my application without having
> to save the details to a fila and then load it into the browser.
>
> Can this be done directly from code by passing a string with the page
> contents instead of passing a file to the url.
>
> The problem is that this application will run on users PC's which
> have *been locked down so secure that not even cookies can be saved...
> let alone temporary files to the hard drive...
> So my only means of doing this is to write to a html output window and
> format my code as I pass it over.
>
> Any suggestions, tips and pointers would be very welcome indeed.
> Many Thanks in advance.
how about

webBrowserCtrl.DocumentText = "<html><body>Test</body></html>";
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Edit HTML code in forwarded messages Live Mail
Web Page Prints Out as Computer Code (HTML) in Internet Explorer 7 Vista print fax & scan
Web Page Prints Out as Computer Code (html) in Internet Explorer 7 Vista print fax & scan
[ann] code sample to convert html to vb or vbs... VB Script
How to edit messages in html code like Outlook Espress? Live Mail


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46