.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Should not required login prompt while using website with windows authentication

Posted By: snaresh     Posted Date: May 29, 2013    Points:5   Category :ASP.Net
iam using the follwoing code for capturing the cuid (cuid=username, password for login ot the system).
System.Security.Principal.IPrincipal User = System.Web.HttpContext.Current.User;
((Label)HeadLoginView.FindControl("lblUserID")).Text = "Welcome " + System.Environment.UserName;


web.config
------------
iam using the following authentication code

<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="2880" />
</authentication>

IIS
---------
disabled "anonymous access"
enabled "integrated windows authentication"

My requirement :
----------------
i hosted my website in IIS.
if other persons using this website from their machines system should show their cuid [username]
but here while accessing this website in IE, system asking for login (asking cuid(username),password). after login only it is showing cuid.
"prompt login should not required"


pls provide solutions for this asap.

Responses
Author: Anna Harris             
Posted Date: May 29, 2013     Points: 20   

I am unable to understand the issue that you are facing. Please describe it in a precise way.



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend