Solved

How to ignore Authentication for single page

Posted on 2013-10-27
2
42 Views
Last Modified: 2015-09-07
Ignoring the windows authentication for single aspx page in C# asp.net. Whenever i click the link following screen appears.  Kindly please look at the attachment. Is there a way to write the credentials in the code of the page.
Excel.JPG
0
Comment
Question by:mu3tasem
2 Comments
 
LVL 3

Expert Comment

by:netmaster1355
ID: 39603683
you should disable authentication for your file or directory in your web server.
for example in IIS you can do it in properties of file or directory by setting authentication method in Directory Security and set it to anonymous.
0
 
LVL 1

Accepted Solution

by:
Srihari03 earned 500 total points
ID: 39603772
Create a separate folder inside  your webproject and place that single .aspx page inside that folder. Create a web.config file for the folder and give authentication as None. The web.config you just put inside the folder will override master web.config setting for the particular folder so that your authentication for the rest of the pages will not be disturbed.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need a simple RegEx to search for two words 27 44
Please explain purpose of GZIP 4 34
Input parameteres to DragOver 2 19
Running powershell scripts from ASP.NET 6 30
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question