Re: about webbrowser control in csharp(css related)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nirosh

    Re: about webbrowser control in csharp(css related)

    Check after removing "<link href='http://domainname/template/style1.css' rel='stylesheet ' type='text/css'/>" it seems that you have taken this code from somewhere and this css is not existing (it is just a dummy name), the browser may be trying to load the css before it load the page, as a result of that process (since it is trying to load a content that does not exist) it just hang.

    Let me know if that helps.

    Nirosh.
    "Robin Zhang" <digitalhuman@h otmail.comwrote in message news:BF603139-55B5-4E6E-AAF1-F4BCD1DE10DF@mi crosoft.com...
    Hi all,
    I'm programing with WebBrowser to implement an browser of myself, problem found when I set html string like this->

    webBrowser1.Doc umentText = "<html><head><t itle>xxxxx<titl e><link href='http://domainname/template/style1.css' rel='stylesheet ' type='text/css'/></head>some text<html>";

    when the program executing, the browser control waitting here for something, progress bar is frozen, is there any sugguestion about this?

    thanks and best reguards,

    Robin
  • Robin Zhang

    #2
    Re: about webbrowser control in csharp(css related)

    Hi Nirosh,

    The css file is EXIST, I just hide the true URL of the css file for some commercial reason. Any way, thanks for your reply, is there any other suggestions?
    --
    Thanks and best regards,

    Robin

    "Nirosh" <Nirosh@News.Co mwrote in message news:%23E6Awriq IHA.552@TK2MSFT NGP06.phx.gbl.. .
    Check after removing "<link href='http://domainname/template/style1.css' rel='stylesheet ' type='text/css'/>" it seems that you have taken this code from somewhere and this css is not existing (it is just a dummy name), the browser may be trying to load the css before it load the page, as a result of that process (since it is trying to load a content that does not exist) it just hang.

    Let me know if that helps.

    Nirosh.
    "Robin Zhang" <digitalhuman@h otmail.comwrote in message news:BF603139-55B5-4E6E-AAF1-F4BCD1DE10DF@mi crosoft.com...
    Hi all,
    I'm programing with WebBrowser to implement an browser of myself, problem found when I set html string like this->

    webBrowser1.Doc umentText = "<html><head><t itle>xxxxx<titl e><link href='http://domainname/template/style1.css' rel='stylesheet ' type='text/css'/></head>some text<html>";

    when the program executing, the browser control waitting here for something, progress bar is frozen, is there any sugguestion about this?

    thanks and best reguards,

    Robin

    Comment

    Working...