View Full Version : Accessing a password protected page
bruce
08-25-2004, 02:01 AM
You can do that with ASP.net very easily by using Form authentication
See http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=70
[b]quote:Originally posted by kos29
Hello,
I would like to programmatically access one of the password protected pages on my website, similar to how the scheduled task tool works in the DASP control panel.
Anybody have any ideas on how to do this?
Any help would be GREATLY appreciated!
Thanks!
</blockquote id="quote"></font id="quote">
B.
DiscountASP.NET
http://www.DiscountASP.NET
kos29
08-25-2004, 02:38 AM
Hi Bruce,
Thanks for the reply but I dont think I explained my problem clear enough as Forms Authentication will not solve this since I need to access an account I created through the DASP control panel. I'm assuming this is an NT account, right? So it would be more along the lines of some sort of NT authentication mechanism.
Let's look at the problem this way, imagine I want to leave my DASP web statistics page password protected but for whatever reason i want a link on my ("un-password-protected") home page to be able to access the mydomain.com/stats directory. I want the user to be re-directed there without having to enter the webstatistics credentials.
Obviously this is a silly example because I could just as easily remove the password protection in the control panel, but there is actually some need for this with what I am trying to develop.
Thanks again,
[b]quote:Originally posted by bruce
You can do that with ASP.net very easily by using Form authentication
See http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=70
[b]quote:Originally posted by kos29
Hello,
I would like to programmatically access one of the password protected pages on my website, similar to how the scheduled task tool works in the DASP control panel.
Anybody have any ideas on how to do this?
Any help would be GREATLY appreciated!
Thanks!
</blockquote id="quote"></font id="quote">
B.
DiscountASP.NET
http://www.DiscountASP.NET
</blockquote id="quote"></font id="quote">
bruce
08-25-2004, 06:04 AM
I do not think you can do that as the password protection is handled by IIS.
[b]quote:Originally posted by kos29
Hi Bruce,
Thanks for the reply but I dont think I explained my problem clear enough as Forms Authentication will not solve this since I need to access an account I created through the DASP control panel. I'm assuming this is an NT account, right? So it would be more along the lines of some sort of NT authentication mechanism.
Let's look at the problem this way, imagine I want to leave my DASP web statistics page password protected but for whatever reason i want a link on my ("un-password-protected") home page to be able to access the mydomain.com/stats directory. I want the user to be re-directed there without having to enter the webstatistics credentials.
Obviously this is a silly example because I could just as easily remove the password protection in the control panel, but there is actually some need for this with what I am trying to develop.
Thanks again,
[b]quote:Originally posted by bruce
You can do that with ASP.net very easily by using Form authentication
See http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=70
[b]quote:Originally posted by kos29
Hello,
I would like to programmatically access one of the password protected pages on my website, similar to how the scheduled task tool works in the DASP control panel.
Anybody have any ideas on how to do this?
Any help would be GREATLY appreciated!
Thanks!
</blockquote id="quote"></font id="quote">
B.
DiscountASP.NET
http://www.DiscountASP.NET
</blockquote id="quote"></font id="quote">
</blockquote id="quote"></font id="quote">
B.
DiscountASP.NET
http://www.DiscountASP.NET
kos29
08-25-2004, 11:47 AM
Hello,
I would like to programmatically access one of the password protected pages on my website, similar to how the scheduled task tool works in the DASP control panel.
Anybody have any ideas on how to do this?
Any help would be GREATLY appreciated!
Thanks!
vBulletin® ©Jelsoft Enterprises Ltd.