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
 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 ?    2 Yes 0 No
Surya Beniwal
 
 
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
What property must you set, and what method must you call in your code, in order to bind the data from a data source to the Repeater control?  1
What is custom tag in web.config ? Accenture1
How can we do the client side validation and Server side validations? But i told that At client side by with the help of validations control or by javascript? But I dont know about the Server side controls Explain? iSoft4
Types of optimization and name a few ? Accenture3
how to add cliet side event to server side? and how to register client script to sever side? wt difference these two PSI-Data-Systems3
What is the answer for "Which configuration Tool your using means" ? we have to tell about IIS or .Net Framework or VSS? Give me in brief ? eXensys2
How to implement caching? Microsoft1
To which side ( server ? client) does the user input data validation occur? Explain the reasons for it?  1
What method must be overridden in a custom control? a) The Paint() method b) The Control_Build() method c) The Render() method d) The default constructor Syntax-Softtech1
Difference between datareader and dataset ? Microsoft1
What are Http handler ? Accenture2
Can private assembly be used for more than one application? If so how? Satyam6
Given an ASP.NET Web Form called WebFrom1, what class does the WebForm1 class inherit from by default? a) System.Web.Form b) System.Web.GUI.Page c) System.Web.UI.Page d) System.Web.UI.Form Syntax-Softtech2
what is the assembly?  2
What is boxing and unboxing ? Accenture6
which is faster ArraytList Or Collection ? how? hows the Hashing works internally ? Emphasis2
How do you specify whether your data should be passed as Query string and Forms (Mainly about POST and GET)  2
What is Active Directory? What is the namespace for that?  2
Difference between Response.Expires and Expires.Absolute ? Accenture1
How many view state can be hold by a aspx page ? Intellevate3
 
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