|
-
Apr 3rd, 2011, 03:56 PM
#1
Thread Starter
Junior Member
Webbrowser Returns Page Differently Than IE Alone
When I use IE8, it displays the page fine, but when I use the web browser control in VS 2010, it shows the page differently (in a bad way).
Any reason for this?
Any fix?
-
Apr 3rd, 2011, 08:08 PM
#2
Re: Webbrowser Returns Page Differently Than IE Alone
There are several reasons but without more details it is hard to determine the reason as you have posted no code.
Take a look here http://www.vbforums.com/showpost.php...67&postcount=8, there are four buttons which demo loading content into the .NET web browser with different results depending on how I load the page and/or how the css is done. My bet is you are expereincing the same as the failures shown here. If not then you need to supply more details from code loading the page in question (including the url used to load the page if on the web or the local page and any files needed i.e. .css, .js etc.).
-
Apr 3rd, 2011, 08:10 PM
#3
Thread Starter
Junior Member
Re: Webbrowser Returns Page Differently Than IE Alone
I am visiting a website that is not mine, just another website.
It loads fine in every browser I try including IE8.
Now, when I visit that website (without any sort of modification to the site) via Web Browser control, the items display oddly.
It's like my control is IE6 or something... Very odd..
-
Apr 3rd, 2011, 08:26 PM
#4
Re: Webbrowser Returns Page Differently Than IE Alone
 Originally Posted by GeekPlaya
I am visiting a website that is not mine, just another website.
It loads fine in every browser I try including IE8.
Now, when I visit that website (without any sort of modification to the site) via Web Browser control, the items display oddly.
It's like my control is IE6 or something... Very odd..
You need to supply the complete URL if you want someone to assist, otherwise you are on your own.
-
Apr 3rd, 2011, 08:27 PM
#5
Thread Starter
Junior Member
Re: Webbrowser Returns Page Differently Than IE Alone
http://www.lockerz.com/redeem/tier/1
It's safe the register. It's a very trusted website in terms of GPT
-
Apr 3rd, 2011, 08:28 PM
#6
Thread Starter
Junior Member
Re: Webbrowser Returns Page Differently Than IE Alone
Click on one of the pictures/categories on that page in a normal browser and the items/products will display fine, then try it in a web browser.
-
Apr 3rd, 2011, 08:55 PM
#7
Re: Webbrowser Returns Page Differently Than IE Alone
 Originally Posted by GeekPlaya
Click on one of the pictures/categories on that page in a normal browser and the items/products will display fine, then try it in a web browser.
I loaded the site as follows
Code:
WebBrowser1.Url = New Uri("http://www.lockerz.com/")
and also loaded it in IE-8
They both showed the same so it is not .NET causing the problem from my experiment. Are you loading the page the same way as I am?
-
Apr 3rd, 2011, 09:38 PM
#8
Thread Starter
Junior Member
Re: Webbrowser Returns Page Differently Than IE Alone
Thanks for taking the time to register on their site and all.
Does it show up like this on both?

I am accessing it via link (IOW: I visit lockerz.com, login, then got to the page within the Web Browser control).
-
Apr 3rd, 2011, 09:42 PM
#9
Thread Starter
Junior Member
Re: Webbrowser Returns Page Differently Than IE Alone
Here is the user agent string on VB and the actual browser...
VB String: Browser Microsoft Internet Explorer
Browser Version 7.0
Operating System Microsoft Windows 7
User Agent String Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; Tablet PC 2.0)
Wow, that gives it away right there.
Why is it IE 7? I am using VS 2010?
-
Apr 3rd, 2011, 10:16 PM
#10
Re: Webbrowser Returns Page Differently Than IE Alone
 Originally Posted by GeekPlaya
Here is the user agent string on VB and the actual browser...
VB String: Browser Microsoft Internet Explorer
Browser Version 7.0
Operating System Microsoft Windows 7
User Agent String Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; Tablet PC 2.0)
Wow, that gives it away right there.
Why is it IE 7? I am using VS 2010?
At this point I am done with any assistance as you never did what I asked.
-
Apr 3rd, 2011, 10:18 PM
#11
Thread Starter
Junior Member
Re: Webbrowser Returns Page Differently Than IE Alone
 Originally Posted by kevininstructor
At this point I am done with any assistance as you never did what I asked.
Cool your jets, you could just say you have no clue what to do next.
Listen, accessing it the way you did (via the command you provided) makes no difference. It's the version of the browser in the control.
What did you tell me to do that was obviously so crucial?
-
Apr 3rd, 2011, 11:01 PM
#12
Re: Webbrowser Returns Page Differently Than IE Alone
 Originally Posted by GeekPlaya
Cool your jets, you could just say you have no clue what to do next.
Quite the opposite, you have no idea what to do next.
 Originally Posted by GeekPlaya
Listen, accessing it the way you did (via the command you provided) makes no difference. It's the version of the browser in the control.
That is what you think that is fine with me.
 Originally Posted by GeekPlaya
What did you tell me to do that was obviously so crucial?
You should read all my replies and figure it out for yourself.
-
Apr 4th, 2011, 05:23 AM
#13
Thread Starter
Junior Member
Re: Webbrowser Returns Page Differently Than IE Alone
 Originally Posted by kevininstructor
Quite the opposite, you have no idea what to do next.
That is what you think that is fine with me.
You should read all my replies and figure it out for yourself.
Nevermind, I'd rather get help from someone who is less of a jerk. To be honest, you are unwilling to read my messages and you have no clue what the actual problem is while I do.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|