Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42215

My Htaccess Bloc's vB.NET Webbrowser? How can I create Access with PASS and USERNAME?

$
0
0
Hey Everyone!

Edited again:

So I have created a simple html Page, and its protected with a htaccess pass and username. Now I dont really wanna share the username and password with anyone, so Instead I wanna create a simple button click that should give them access to the page.. I been looking everywhere to find a solution... But I simply cant find anything related to that for vBNET.

I found a few explanations on this page:
http://www.vbforums.com/showthread.p...light=htaccess

And how can I use the code below to enter my html page?
Code:

Dim Client As New System.Net.WebClient
Client.Credentials = New Net.NetworkCredential("UserName", "Password")
Dim Html As String = Client.DownloadString("http://www.mysite.com/check.php?id=" & GetSiteName(Item))

If someone could help me out create my own peace of code to access my webpage using an inbuilt code, with my own Credentials password and username inside the project! I will be really looking forward to this, for VB.NET only,, Thanks a lot

Viewing all articles
Browse latest Browse all 42215

Trending Articles