473,395 Members | 1,762 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

WebBrowser credentials problem...

28
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@url"
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,"Authorization: Basic " + Convert.ToBase64String(Encoding.ASCII.GetBytes("us ername" + ":" + "pass")) + System.Environment.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 ?
Apr 8 '10 #1
0 1945

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Thrasher | last post by:
How would I send credentials to the WebBrowser control? I already have the credentials, either from the DefaultCredentials, or I create Credentials cached from a username, password and domain file....
12
by: Alex Clark | last post by:
Greetings, (.NET 2.0, WinXP Pro/Server 2003, IE6 with latest service packs). I've decided to take advantage of the layout characteristics of HTML documents to simplify my printing tasks, but...
0
by: gene kelley | last post by:
I have a WindowForms app that has a WebBrowser control which works as expected except for navigating to sites that require user/password. In IE, a given URL in this catagory returns the IE login...
0
by: shapij | last post by:
Hi, I have an ASP.NET site that uses Windows Authentication. When using IE to navigate to the site, my authentication code fires and lets the user into the restricted area. I also have a...
4
by: Christof Nordiek | last post by:
I'm using the Webbroser-Control (.NET 2.0) to show a Page from a Webserver. User credentials may be required to access the Page. This credentials should not be entered be the user but be given by...
0
by: Greg Bacchus | last post by:
Hi, I'm using the .NET 2 WebBrowser control in my WinForm app to show reports from MS Reporting Services. The reporting services site requires iis authentication, i.e. when I browse to it, it pops...
0
by: Mikus Sleiners | last post by:
Is it possible to access session object of Windows.Forms.WebBrowser control ? I have web app, that set's user credentials into session object and then uses them in various app parts. Now i need...
4
by: Robson Siqueira | last post by:
Folks, I am facing a problem. I am trying to manipulate the HTML data (thru the Document and DocumentText properties) of the WebBrowser object (System.Windows.Forms). The problem is that the...
9
by: AGP | last post by:
My project uses a Webbroswer control to navigate to certain websites and do some processing on the info found there. However, my company has a proxy server which I must authenticate through to get...
11
by: kimiraikkonen | last post by:
Hi there, I needed to use MouseOver event on Webbrowser which is NOT provided by webbrowser control natively(what a disappointment), so i decided to go with another route to simulate this like: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.