473,788 Members | 2,843 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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" <di**********@h otmail.comwrote in message news:BF******** *************** ***********@mic rosoft.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
Jun 27 '08 #1
1 2854
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" <Ni****@News.Co mwrote in message news:%2******** *******@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" <di**********@h otmail.comwrote in message news:BF******** *************** ***********@mic rosoft.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
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1054
by: Joey | last post by:
Hi, I am trying to set the style of the TodayDayItem via a css stylesheet. The problem I am having is that even if I set the color to White in the stylesheet it will show up as black on the compiled webpage. I am setting the CssClass correctly and it works for other parts of the calendar control. When I check the source for the webpage I
1
1205
by: abcd | last post by:
var oldLen = objListAppAnalysis.options.length; alert(oldLen); var i; for (i=0;i<oldLen;i++) { objListAppAnalysis.options.remove; }
2
6285
by: Alfred Salton | last post by:
Can anyone show me how to set the css class of an HtmlTable control in code on the server? I can't find any indication that the css class is a property of the HtmlTable, HtmlTableRow and HtmlTableCell classes. I'm getting the uncomfortable feeling that this can't be done, even though it seems incredible to me!
5
2217
by: Trisha | last post by:
I have a navigation user control navig.ascx that redirects to respective pages based on webcontrols.linkbutton clicks using response.redirect. I would like to control the look and feel of those link buttons. Once I click the button, I would like to make it bold using instructions like linkbutton.font.bold=true This works as long as its NOT followed by response.redirect
3
6443
by: ivanpais | last post by:
Hi, I have a Web User Control, Lets say "Foo.ascx", that contains a button "btnFoo". I have a Master Page "Bar.master", that has a label "lblBar". This label is exposed by a public property BarLabelText. I now have a contentpage "FooBar.aspx", where "Bar.master" is the master page and in the content section has the control "Foo.ascx".
0
848
by: anony | last post by:
Hello. Looking for some help with the best way to achieve a different fore and background color for each parent / child item grouping of the asp.net 2.0 menu control. So in the following example I would like to use different CSS classes for Parent Item 1 and Parent Item 2. Same gooes for Child 1.1 and Child 2.1. Parent Item 1 --Child 1.1
4
1798
by: cantaladie9 | last post by:
i'm new to php and would like to add a function to my site that allows users to change the style e.g font size and colour etc and then be able to log on at another time to activate their style or create new ones, can anyone help with the best way to approach this? thanx
2
1646
by: kai | last post by:
Hi, What is advantage of Skin over CSS? They both control the appearance of WebControls, and CSS also controls HTML controls. Please help Kai
0
1158
by: danstanhope | last post by:
Hi all, I have an accordion control that is being dynamically created. Everything is working as it should, however when I open up a pane and click another link on the page and then navigate back to the page the accordion control is on, the selected header CSS is on the wrong pane. Has anyone experienced and thing like this?
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10366
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10112
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4070
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3675
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.