Solved

How to ignore Authentication for single page

Posted on 2013-10-27
2
43 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
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.

730 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