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 > Avalon

Vista - How display html in Frame Control?

 
 
Old 10-09-2006   #1 (permalink)
Gagan


 
 

How display html in Frame Control?

Hi

I am writting following code:

string myString = "<html><body><textarea>Gagandeep
Singh</textarea></body></html>;

//Frame Control
myWebBrowser.Content = myString;

but it is displaying the code as it ,my aim is to display this string
as web page.I want to generate html pages dynamically.


My System SpecsSystem Spec
Old 10-10-2006   #2 (permalink)
Douglas Stockwell


 
 

Re: How display html in Frame Control?

I'm not sure if you can do that with a frame. You might have better luck
hosting the Windows.Forms WebBrowser control.

You could also probably use an in-process Asynchronous Pluggable Protocol
Handler to reference your html strings by URL - but that may be a little
more effort.

- Doug

"Gagan" <gagan.thukral@gmail.com> wrote in message
news:1160408412.751667.152650@m73g2000cwd.googlegroups.com...
> Hi
>
> I am writting following code:
>
> string myString = "<html><body><textarea>Gagandeep
> Singh</textarea></body></html>;
>
> //Frame Control
> myWebBrowser.Content = myString;
>
> but it is displaying the code as it ,my aim is to display this string
> as web page.I want to generate html pages dynamically.
>


My System SpecsSystem Spec
Old 10-13-2006   #3 (permalink)
sbarlea@gmail.com


 
 

Re: How display html in Frame Control?

The opensource rss reader FeedFusion uses a WPF Frame to display HTML.
Check out the folder WinFxConsumer in the repository.

Douglas Stockwell wrote:
> I'm not sure if you can do that with a frame. You might have better luck
> hosting the Windows.Forms WebBrowser control.
>
> You could also probably use an in-process Asynchronous Pluggable Protocol
> Handler to reference your html strings by URL - but that may be a little
> more effort.
>
> - Doug
>
> "Gagan" <gagan.thukral@gmail.com> wrote in message
> news:1160408412.751667.152650@m73g2000cwd.googlegroups.com...
> > Hi
> >
> > I am writting following code:
> >
> > string myString = "<html><body><textarea>Gagandeep
> > Singh</textarea></body></html>;
> >
> > //Frame Control
> > myWebBrowser.Content = myString;
> >
> > but it is displaying the code as it ,my aim is to display this string
> > as web page.I want to generate html pages dynamically.
> >


My System SpecsSystem Spec
Old 10-13-2006   #4 (permalink)
Douglas Stockwell


 
 

Re: How display html in Frame Control?

Ahh, I forgot that one. Write the contents to a temporary file.

<sbarlea@gmail.com> wrote in message
news:1160760670.256291.242670@i3g2000cwc.googlegroups.com...
> The opensource rss reader FeedFusion uses a WPF Frame to display HTML.
> Check out the folder WinFxConsumer in the repository.
>
> Douglas Stockwell wrote:
>> I'm not sure if you can do that with a frame. You might have better luck
>> hosting the Windows.Forms WebBrowser control.
>>
>> You could also probably use an in-process Asynchronous Pluggable Protocol
>> Handler to reference your html strings by URL - but that may be a little
>> more effort.
>>
>> - Doug
>>
>> "Gagan" <gagan.thukral@gmail.com> wrote in message
>> news:1160408412.751667.152650@m73g2000cwd.googlegroups.com...
>> > Hi
>> >
>> > I am writting following code:
>> >
>> > string myString = "<html><body><textarea>Gagandeep
>> > Singh</textarea></body></html>;
>> >
>> > //Frame Control
>> > myWebBrowser.Content = myString;
>> >
>> > but it is displaying the code as it ,my aim is to display this string
>> > as web page.I want to generate html pages dynamically.
>> >

>


My System SpecsSystem Spec
Old 10-17-2006   #5 (permalink)
Gagan


 
 

Re: How display html in Frame Control?


Hi,

About which sample are u saying ,if u have any link for this sample plz
send me or send me ths sample code if u can.
Thanks.


sbarlea@gmail.com wrote:
> The opensource rss reader FeedFusion uses a WPF Frame to display HTML.
> Check out the folder WinFxConsumer in the repository.
>
> Douglas Stockwell wrote:
> > I'm not sure if you can do that with a frame. You might have better luck
> > hosting the Windows.Forms WebBrowser control.
> >
> > You could also probably use an in-process Asynchronous Pluggable Protocol
> > Handler to reference your html strings by URL - but that may be a little
> > more effort.
> >
> > - Doug
> >
> > "Gagan" <gagan.thukral@gmail.com> wrote in message
> > news:1160408412.751667.152650@m73g2000cwd.googlegroups.com...
> > > Hi
> > >
> > > I am writting following code:
> > >
> > > string myString = "<html><body><textarea>Gagandeep
> > > Singh</textarea></body></html>;
> > >
> > > //Frame Control
> > > myWebBrowser.Content = myString;
> > >
> > > but it is displaying the code as it ,my aim is to display this string
> > > as web page.I want to generate html pages dynamically.
> > >


My System SpecsSystem Spec
Old 10-17-2006   #6 (permalink)
Douglas Stockwell


 
 

Re: How display html in Frame Control?

His sample is here:

http://google.com/codesearch?q=FeedF...erDocumentText

- Doug

"Gagan" <gagan.thukral@gmail.com> wrote in message
news:1161073328.273671.253070@h48g2000cwc.googlegroups.com...
>
> Hi,
>
> About which sample are u saying ,if u have any link for this sample plz
> send me or send me ths sample code if u can.
> Thanks.
>
>
> sbarlea@gmail.com wrote:
>> The opensource rss reader FeedFusion uses a WPF Frame to display HTML.
>> Check out the folder WinFxConsumer in the repository.
>>
>> Douglas Stockwell wrote:
>> > I'm not sure if you can do that with a frame. You might have better
>> > luck
>> > hosting the Windows.Forms WebBrowser control.
>> >
>> > You could also probably use an in-process Asynchronous Pluggable
>> > Protocol
>> > Handler to reference your html strings by URL - but that may be a
>> > little
>> > more effort.
>> >
>> > - Doug
>> >
>> > "Gagan" <gagan.thukral@gmail.com> wrote in message
>> > news:1160408412.751667.152650@m73g2000cwd.googlegroups.com...
>> > > Hi
>> > >
>> > > I am writting following code:
>> > >
>> > > string myString = "<html><body><textarea>Gagandeep
>> > > Singh</textarea></body></html>;
>> > >
>> > > //Frame Control
>> > > myWebBrowser.Content = myString;
>> > >
>> > > but it is displaying the code as it ,my aim is to display this string
>> > > as web page.I want to generate html pages dynamically.
>> > >

>


My System SpecsSystem Spec
Old 10-18-2006   #7 (permalink)
sbarlea@gmail.com


 
 

Re: How display html in Frame Control?

The only problem i see is that you did not use a file to store the
html... That should solve the problem, as Douglas already said.

Douglas Stockwell wrote:
> His sample is here:
>
> http://google.com/codesearch?q=FeedF...erDocumentText
>
> - Doug
>
> "Gagan" <gagan.thukral@gmail.com> wrote in message
> news:1161073328.273671.253070@h48g2000cwc.googlegroups.com...
> >
> > Hi,
> >
> > About which sample are u saying ,if u have any link for this sample plz
> > send me or send me ths sample code if u can.
> > Thanks.
> >
> >
> > sbarlea@gmail.com wrote:
> >> The opensource rss reader FeedFusion uses a WPF Frame to display HTML.
> >> Check out the folder WinFxConsumer in the repository.
> >>
> >> Douglas Stockwell wrote:
> >> > I'm not sure if you can do that with a frame. You might have better
> >> > luck
> >> > hosting the Windows.Forms WebBrowser control.
> >> >
> >> > You could also probably use an in-process Asynchronous Pluggable
> >> > Protocol
> >> > Handler to reference your html strings by URL - but that may be a
> >> > little
> >> > more effort.
> >> >
> >> > - Doug
> >> >
> >> > "Gagan" <gagan.thukral@gmail.com> wrote in message
> >> > news:1160408412.751667.152650@m73g2000cwd.googlegroups.com...
> >> > > Hi
> >> > >
> >> > > I am writting following code:
> >> > >
> >> > > string myString = "<html><body><textarea>Gagandeep
> >> > > Singh</textarea></body></html>;
> >> > >
> >> > > //Frame Control
> >> > > myWebBrowser.Content = myString;
> >> > >
> >> > > but it is displaying the code as it ,my aim is to display this string
> >> > > as web page.I want to generate html pages dynamically.
> >> > >

> >


My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
How to copy text from webbrowser/Frame Control (WPF) .NET General
Digital photo frame as second display Vista hardware & devices


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