Hi,
We are developping a software in c# (WinForm) that use a WebBrowser Control.
We would like to spoof referer but it seems very hard to do it well.
What we did : We just add "Referer: http://www.ourwebsite.com" in the http header when we use WebBrowser.Navigate(URL, null, null, REFERER);
Result : Using this method, on URL, we can de...
Where and how can I access web browser Favorites and history?
Is it the same place for all browsers?
Thanks!
...
I want to pause the execution of my thread until a particular div has been loaded via ajax into a WebBrowser instance. Obviously I can continuously check for the presence of this div doing something like:
while (Browser.Document.GetElementById("divid") == null) { Thread.Sleep(200); }
However, sleeping the thread that the Browser is in...
Hello!
I'm trying to use the System.Windows.Forms.WebBrowser to make a request that both sends POST data and custom HTTP headers. I'd like to set the user-agent of the request as well. How could I do this?
Thanks!
...
i am able to open excel files directly on web browser via some configuration on windows.
(eg : www.xyz.com/excelfile.xlsx) it opens on ie 8.
My problem is when i use autofilter columns in excel files,when i try to filter rows on excel int. explorer crashes somehow. here are some eventvwr logs,what might cause this error ?
i even tried ...
In the past I had seen occasions where images that weren't 72 dpi wouldn't show in some web browsers, primarily Internet Explorer 7. However, weird thing is, I have tested this lately and it appears that images of 300dpi are showing in IE.
Does DPI matter anymore for web? Will photos of some DPIs not display in some web browers?
...
I have IE8 installed on my computer and have been working on automating some tasks in a simple c# application with WebBrowser. Supposedly WebBrowser and IE have to render web pages in the similar way, while in reality I'm stuck with bugs in my application.
To trace the problem I've created small winforms project with single WebBrowser ...
Why does HtmlElement's GetAttribute() method return mshtml.HTMLInputElementClass instead of the attribute's value, when I'm trying to obtain the value of a form's action attribute?
HtmlElementCollection elements = webBrowser1.Document.Forms;
foreach (HtmlElement element in elements)
MessageBox.Show(element.GetAttribute("actio...
This is in C#
So I'm trying to create an event for ProgressChanged for multiple webBrowser Controls. These are all dynamically created as well as the progress bar. So i can't call upon it prior. What i'm doing is passing the progress bar through object arrays that are ran. It finally gets to the final method in which i create the browse...
How can I obtain actual instances of the underlying objects returned as string representations by HtmlElement's GetAttribute() method?
I'm asking this because not all types of HTML attributes are returned as their visual string representation by GetAttribute(), but in some cases, as class names. The few cases where I've found this to ha...
Hi,
I am trying to build an application (Hello World) in Oracle JDeveloper and run. It ran fine. But it doesn't open in default browser. I edited Tools--> Preferences --> Web Browser and Proxy --> gave C:\Program Files\Internet Explorer\iexplore.exe . It doesn't work. I could not even try preview.
Please help me.
Thanks,
...
Hi Guys,
I grabbed some code from the link below to generate a screenshot from a web browser control:
http://pietschsoft.com/post/2008/07/C-Generate-WebPage-Thumbmail-Screenshot-Image.aspx
Then, I modified to be an extension method like so:
public static Bitmap GetScreenshot(this WebBrowser webBrowser)
{
// Load th...
I'm using a WebBrowser control and want to copy a particular image on the web page to the clipboard. I am aware that I can use the WebBrowser.Document.ExecCommand method to copy the currently selected region of the page but cannot work out how to direct the selection to cover a particular HtmlElement or region of the page.
Any help is m...
I would like to know if there is a solution to control a "virtual web browser" with any language (but preferably PHP or C#). This "virtual web browser" would be have just like a normal one, but it is completely hidden from the user. This means the Javascript is executed and javascript cookies handled.
I want to use this to login to a si...
Hi,
I hava a web browser control in my silverlight application to display pdf documents.
The problem is the content does not get refreshed even after changing the source of the web browser control.
The first pdf file that gets load is shown in place of all the other pdf links.
The problem is weird since everything works perfectly fine w...
If I create a custom javascript Object using a constructor, Is it possible to persist the object between HTTP Requests? - like storing it in the DOM and use it conditionally ?
Will the DOM Objects persist (all client side Objects) between the HTTP Requests ..? or will it get lost after every form submit..?
Thanks
...
Hi everyone,
Yeah some people would say "Are you crazy using winforms controls inside asp forms"... and I think they are right. But I would say.. "I'm not the only one!!, take a look"
http://www.eggheadcafe.com/tutorials/aspnet/b7cce396-e2b3-42d7-9571-cdc4eb38f3c1/build-a-selfcaching-asp.aspx
So...
Doing some kind of stuff like the p...
We have a legacy VB6 application which has worked just fine on Windows XP Professional SP 3 until just recently when we added an IE frame control so that we could display static local HTML files on a form. And, it works fine until I go to close the application. And, then it reports the following error message (consistently):
Faulting ...
This website :
http://blog.joins.com/media/folderListSlide.asp?uid=ddatk&folder=3&list_id=9960150
has this code:
<script>alert('¿Ã¹Ù¸¥ Çü½ÄÀÌ ¾Æ´Õ´Ï´Ù.');</script>
So my web browser control show a popup, how can I bypass the popup without using sendkeys enter??
...
Hello Everyone,
Here is my code scenario,
I display html page in webbrowser control. The content will be loaded from some RSS url dynamically (used JQuery to load the content from URL) and displayed in WB. My problem is, i have to check for the "Internet Connectivity" when a loop is completed by scrolling text. I tried using "navigat...