Results 1 to 13 of 13

Thread: Webbrowser Returns Page Differently Than IE Alone

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2011
    Posts
    26

    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?

  2. #2
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,714

    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.).

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2011
    Posts
    26

    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..

  4. #4
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,714

    Re: Webbrowser Returns Page Differently Than IE Alone

    Quote Originally Posted by GeekPlaya View Post
    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.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Mar 2011
    Posts
    26

    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

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Mar 2011
    Posts
    26

    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.

  7. #7
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,714

    Re: Webbrowser Returns Page Differently Than IE Alone

    Quote Originally Posted by GeekPlaya View Post
    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?

  8. #8

    Thread Starter
    Junior Member
    Join Date
    Mar 2011
    Posts
    26

    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).

  9. #9

    Thread Starter
    Junior Member
    Join Date
    Mar 2011
    Posts
    26

    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?

  10. #10
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,714

    Re: Webbrowser Returns Page Differently Than IE Alone

    Quote Originally Posted by GeekPlaya View Post
    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.

  11. #11

    Thread Starter
    Junior Member
    Join Date
    Mar 2011
    Posts
    26

    Re: Webbrowser Returns Page Differently Than IE Alone

    Quote Originally Posted by kevininstructor View Post
    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?

  12. #12
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,714

    Re: Webbrowser Returns Page Differently Than IE Alone

    Quote Originally Posted by GeekPlaya View Post
    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.

    Quote Originally Posted by GeekPlaya View Post
    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.

    Quote Originally Posted by GeekPlaya View Post
    What did you tell me to do that was obviously so crucial?
    You should read all my replies and figure it out for yourself.

  13. #13

    Thread Starter
    Junior Member
    Join Date
    Mar 2011
    Posts
    26

    Re: Webbrowser Returns Page Differently Than IE Alone

    Quote Originally Posted by kevininstructor View Post
    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
  •  



Click Here to Expand Forum to Full Width