ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
How to do Forms authentication in asp.net?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to do Forms authentication in asp.net?
Answer
# 1
in webconfig file

<authentication mode="Forms">
<forms cookieless="UseCookies" 
loginUrl="~/LoginInformation.aspx" timeout="10">
<credentials passwordFormat="Clear">
<user name="Siva" password="siva"/>
<user name="joseph" password="jos"/>
</credentials>
</forms>
</authentication>

After In a aspx.cs page you have write a below coding

if (FormsAuthentication.Authenticate(TextBox1.Text, 
TextBox2.Text))
        {
            Response.Write("Hi Joseph");
        }
        else
        {
            Response.Write("Please Create account");
        }
 
Is This Answer Correct ?    3 Yes 0 No
Sivasaravanan
 
  Re: How to do Forms authentication in asp.net?
Answer
# 2
I have tested the above one . Its working fine.
 
Is This Answer Correct ?    2 Yes 0 No
Tiger Skumar
 
 
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
Does C# support static class?Is Static class be inherited by any class?  2
is it possible to set more than web.config file for an ASP.net APPLICATION?can it run?how is it possible  3
Can any one explain with the example how to capture the application error in Aplication_Error() method? Infosys1
relacement of websevices in .net 3.0? Mind-Tree1
What is viewstate? Microsoft3
How do you implement postback with a text box? What is postback and usestate?  1
What is role-based security?  1
when to use webservice and when to use remotong diff between them  3
why we should use more than one web.config files in our application? I have two web.config files in my application. One in the root directory and another one inside a sub folder. When the application runs which web.config file will run? why?  1
Can we change the session timeout in ASP.NET, if yes then how and from where? L&T7
Where does the Web page belong in the .NET Framework class hierarchy? Visual-Soft1
What is the difference between a.Equals(b) and a == b?  2
What is view state and how this can be done and was this there in asp ? Accenture1
“~” means in asp.net application? IBS3
Is it possible to add aspx.vb file in to C# Web Project? If so how can i use the vb file in the C# Web project?  3
how to edit gridview control in asp.net2.0 3i-Infotech1
On what object is the transaction in ADO.NET focused on? a) The command object b) The DataSet object c) The Connection object d) The DataAdapter object Syntax-Softtech4
what is mean by framework?  2
what is roles in asp.net  2
How does the XmlSerializer work? What ACL permissions does a process using it require?  1
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com