Introduce DataBase,Asp.net,JavaScript,Xml,Html,Css,Sql,Php,ASP.NET Controls,AJAX,Tools,HTML,CSS,JavaScript,Open Source Project,WPF,.Net Framework,Linq
Top Recommended Hosting

Web-Server Authentication on Hyper Link Click

by the3factory 5/10/2008 7:51:00 PM
Question:

Hi everybody
I don't want to advertise here but a few days ago i was surfing and all of a sudden i came across to thefollowing website :

http://www.flex-graphics.com

but the interesting part for me was that , when you want to download from this site and exactly when you click
on a link to download , the webserver(apache) will ask you UserName and Password, for example click on

this link http://www.flex-graphics.com/Files/Full/FlexGraphics_Full.zip
i want to learn how to do that in my own website , could anyone help me?
I know that it is something related to Web-Server Configuration but not more....!

Thanks in advance.
Kind Regards.


Answer1:

The methods of which I am familar with, in asp.net, are configured via the web.config file.  You set some authenitcation options in the web.config file and then you define the pages which do not require authentication.

 This requires setting up a login page so when a user is not authenticated and hits a page requiring authenitcation they will be directed to the login page and once succcessfully logging in they will be automatically directed to the target page.

 Check out some of the quick start tutorials http://quickstarts.asp.net/QuickStartv20/aspnet/doc/default.aspx


Related posts

Sign up for PayPal and start accepting credit card payments instantly.


Powered by BlogEngine.NET 1.2.0.0