How to authenticate users using web.config ?
Answers were Sorted based on User's Feedback
Answer / deepa
Forms authentication can be done at web.config
<authentication mode="Forms">
<forms name="appNameAuth" path="/"
loginUrl="login.aspx" protection="All" timeout="30">
<credentials passwordFormat="Clear">
<user name="jeff" password="test" />
<user name="mike" password="test" />
</credentials>
</forms>
</authentication>
<authorization>
<deny users="?" />
</authorization>
Is This Answer Correct ? | 29 Yes | 5 No |
Answer / babu reddy
if we are using form based authentication at that time in
the web.config
we can set the autentication mode to "form"
then we can specify the user name and password which we are
going to access.
if any one can access that application then you can specify
<allow users="*">
inside the authentication tags
Is This Answer Correct ? | 21 Yes | 2 No |
Why do we use Option Explicit?
One Listbox showing all cities. If you select one city in list box the information related to that particular city should be displayed in Datagrid . How do you do that?
Differentiate between early binding and late binding.
What is FullTrust? Do GACed assemblies have FullTrust?
Explain the life cycle of an ASP .NET page.
How do you do client-side validation in .net? How to disable validator control by client side javascript?
How to automatically get the latest version of all the asp.net solution items from source safe when opening the solution?
How many web.config a application can have ?
6 Answers Keane India Ltd, Manhattan, Vertex,
if you disable view state of a textbox will it maintain data during postbacks.if yes reason
9 Answers FactorH, Jindal, Oxi Infotech,
I have a textbox , assign required field validator and i have two buttons 1) save 2) cancel , i want the validator run only when i click save button, don't validate cancel button , what to do?
7 Answers eMids, Infotech, Integra, TCS, Wipro,
How do you use a custom validator? When might you want to use one?
What is difference b/w Data Grid in ASP.Net 1.1 and Gridview in 2.0