How do you create a permanent cookie?
Answer Posted / sapna
Cookie is like a temporary file which contains a name and a
value pair and resides in the client.
cookie prepared or modified by the server side script will
be appended to the response and will be sent to the client.
dim cook as httpcookie
cook=new httpcookie("items")
cook.value=textbox1.text
response.appendcookie(cook).
| Is This Answer Correct ? | 13 Yes | 15 No |
Post New Answer View All Answers
Define static function?
How you will handle session when deploying application in more than a server?
Explain the difference between or and orelse?
What language does asp.net use?
Can you set which type of comparison you want to perform by the comparevalidator control?
Explain what is an assembly?
If there are multiple update panels on the page say upd1 and upd2. There is a button placed in upd1. How can you stop upd2 to update when button placed in upd1 is clicked?
Describe the difference between inline and code behind - which is best in a?
Explain how can we inherit a static member?
What is the parent class of all the web server control?
Explain why it is useful to use mvc instead of webforms? : asp.net mvc
How many types of controls are there in asp.net?
What are ASP.NET Web Forms? How is this technology different than what is available though ASP?
What is the use of session?
Can you change a Master Page dynamically at runtime?