Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

How display html in Frame Control?

Closed Thread
 
Thread Tools Display Modes
Old 10-09-2006   #1 (permalink)
Gagan
Guest


 

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.

Old 10-10-2006   #2 (permalink)
Douglas Stockwell
Guest


 

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


Old 10-13-2006   #3 (permalink)
sbarlea@gmail.com
Guest


 

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


Old 10-13-2006   #4 (permalink)
Douglas Stockwell
Guest


 

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

>


Old 10-17-2006   #5 (permalink)
Gagan
Guest


 

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


Old 10-17-2006   #6 (permalink)
Douglas Stockwell
Guest


 

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

>


Old 10-18-2006   #7 (permalink)
sbarlea@gmail.com
Guest


 

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

> >


Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling browsing within a Frame control aagranov2007 Avalon 0 1 Week Ago 05:14 PM
TFS 2008 Process Template: Default value tag for work item fieldsdoes not allow more than 255 characters to be entered into an HTML control Steve .NET General 0 07-23-2008 11:13 AM
Displaying XML in WPF Frame Control JB Scoggins Avalon 0 05-22-2007 08:21 AM
Outlook 2003 on Vista, HTML Mail Display Issue Eric F Vista mail 1 04-19-2007 05:45 PM
Frame control navigation sound =?Utf-8?B?TmljayBQYWxtZXI=?= Avalon 0 07-20-2006 11:04 AM








Vistax64.com 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 2005-2008

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 47 48 49 50