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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   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 do you create a permanent cookie?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How do you create a permanent cookie?
Answer
# 1
by setting the expiry property greater than 
datetime.minvalue.....
 
Is This Answer Correct ?    1 Yes 0 No
Vimal
 
  Re: How do you create a permanent cookie?
Answer
# 2
write this cod on submit button : ..........

 HttpCookie objCookie = new HttpCookie("UserCookie");
            objCookie.Values.Add("UserName", TextBox1.Text);
            objCookie.Values.Add("UserPass", TextBox2.Text);
         
//for permanent cookie .......
   objCookie.Expires = DateTime.MaxValue;

            Response.Cookies.Add(objCookie);
           
 Response.Redirect("Default2.aspx");
 
Is This Answer Correct ?    3 Yes 0 No
Surya Beniwal
 
 
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
How can you assign styles to webforms? Microsoft2
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 TCS2
Can we Run the Application without Build Emphasis2
State management in asp.net ? Accenture5
How do you register a .NET assembly? Microsoft3
Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?  1
Can you edit data in the Repeater control?  3
How can you provide an alternating color scheme in a Repeater control?  3
What is a Windows Service and how does its life cycle differ from a standard EXE?  2
what is state management,what is the purpose of it,how it will be implemented in real time?  1
What data type does the RangeValidator control support? Visual-Soft3
Which of the following hosts Can't be used to create .net Application? a) IIS b) Internet Explorer c) ASP.Net d) Windows Shell Which one is correct? CTS1
Describe the role of inetinfo.exe, aspnet_isapi.dll and aspnet_wp.exe in the page loading process Visual-Soft1
What is the difference between Server.Transfer and Response.Redirect? Why would you choose one over the other? Syntax-Softtech24
what is the dllhell? why we use the dllhell?  4
One of the properties of the Web Part has an incorrect format. Windows SharePoint Services cannot deserialize the Web Part. Check the format of the properties and try again. - this error is occured in Sharepoint 2007 while deploy the web part WebInfo1
What method do you use to explicitly kill a users session?  1
What namespaces are imported by default in ASMX files?  2
what is the challenging situation you faced in your career? HP3
Tell something about state management in asp.net? Accenture2
 
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