WebBrowser credentials problem...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BbEsy
    New Member
    • Sep 2009
    • 28

    WebBrowser credentials problem...

    Helo I have one little problem,
    I need to navigate to url, fill txboxes, submmit, wait for load next page and call javascript function.

    but this Pages need credentials..

    I tried this..
    navigate to "https://username:pass@u rl"
    this work fine.
    fill boxes.
    submit...
    all works fine and now i ned to call javascript function....

    When i tired to call this by clicking on button by mouse. Javascript get a exception... [ problem with url with credentilas ]

    then i tried navigate (url,null,null, "Authorizat ion: Basic " + Convert.ToBase6 4String(Encodin g.ASCII.GetByte s("username" + ":" + "pass")) + System.Environm ent.NewLine);

    this works but after submit credentials dialog showed again.. then when I write login & pass.. Click ok.. And click by mouse to link to execute javascript function, all works fine....

    then i tried this To first login and I tried to call javascript function, when i passed it to navigate to..

    this works.. but need a credentials...


    How I can pass credentials to all pages when loading ?
Working...