![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| | #4 (permalink) |
| | 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 Specs![]() |
| | #5 (permalink) |
| | 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 Specs![]() |
| | #6 (permalink) |
| | 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 Specs![]() |
| | #7 (permalink) |
| | 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 Specs![]() |
| 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 | |||