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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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
The question is "After sign out from email, Then we click a
back button , we can't go to the previous page ie inbox
page, It is displaying a login form only"
My doubt is How will code this , If u know please blog me
through this or my mail. my mail id is yoursguna@gmail.com
 Question Submitted By :: Gunasekaran T
I also faced this Question!!     Rank Answer Posted By  
 
  Re: The question is "After sign out from email, Then we click a back button , we can't go to the previous page ie inbox page, It is displaying a login form only" My doubt is How will code this , If u know please blog me through this or my mail. my mail id is yoursguna@gmail.com
Answer
# 1
This is implemented through Authentication and Authorisation

In the web.config file 
set the Authentication tag as 
<authentication mode="Forms">
      <forms name="myforms" loginUrl="LoginPage.aspx" >
        </forms>
</authentication>
This means you are using forms authentication and the login 
page name is LoginPage.aspx.

and the autorisation tag as 
 <authorization>
      <deny users="?"/>
    </authorization>
This means deny unauthenticated users. 

In the LoginPage's Authentication Logic use the following 
code if the user is valid. 
FormsAuthentication.RedirectFromLoginPage
(txt_UserName.Text, false);

In the logic of the Signout button use
FormsAuthentication.Signout();

In all innerpages set the following code in the pageload
Response.Expires = 0;
Response.CacheControl = "no-cache";

For complete explanation refer Forms Authentication and 
authorization in msdn.
 
Is This Answer Correct ?    3 Yes 0 No
Lily Antony
 
  Re: The question is "After sign out from email, Then we click a back button , we can't go to the previous page ie inbox page, It is displaying a login form only" My doubt is How will code this , If u know please blog me through this or my mail. my mail id is yoursguna@gmail.com
Answer
# 2
Hi Lilly!
We have to write logic for that. Set History property to -1
or 0.
 
Is This Answer Correct ?    0 Yes 1 No
Kumaran Ns
 
 
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
what are the levels of securities need to be considered for the finincial web application?  1
How to retrieve the information from datatable citywise in c#? HCL2
What is Stateless ASP or ASP.Net? Accenture2
You have been given the task of designing a web services to expose the data that is stored in a database on the server. In order to successfully build the web services, you need to import some namespaces. What is the minimum namespace you need to import? a) System.Web b) System.WebServices c) System.Web.Services d) System.Web.ServiceModel Syntax-Softtech2
Difference between ByVal and ByRef? Microsoft2
I have a datagrid of 10 rows and I am updating the fifth row using template column edit. How wil u know that the row is updated, so that it can be send to database for updating the respective table?  3
Describe the two main components of the .NET framework ?  1
What are different transaction options? Astadia1
What is the use of Administration tool in Asp.net 2.0?  2
If there are two web.config files in a application which config files will get priority?  4
What is DTS package? Accenture2
any body help me. Is it possible to convert text in gif images into word document with the same text? thanks in advance.  2
How can i include both C# and vb.net classes in same solution?  2
How Many types of Page Load functions in asp.net  2
What methods are fired during the page load?  1
Where do you store the information about the user?s locale?  1
Why Global.asax is used? Perot-Systems6
Does C# support static class?Is Static class be inherited by any class?  2
How many web.copnfig can exists in a web application & which will be used ? MMTS3
What?s the difference between Codebehind="MyCode.aspx.cs" andSrc="MyCode.aspx.cs"? SLC-Ltd3
 
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