ASP.Net Interview Question and Answers

141. How do you turn off cookies for one page in your site?
  Use the Cookie. Discard Property which Gets or sets the discard flag set by the server. When true, this property instructs the client application not to save the Cookie on the users hard disk when a session ends.
 
Your Name Your Email-ID
Your Answer
142. What does assert () do?
  In debug compilation, assert takes in a Boolean condition as a parameter, and shows the error dialog if the condition is false. The program proceeds without any interruption if the condition is true.
 
Your Name Your Email-ID
Your Answer
143. What is cookie less session? How it works?
  By default, ASP.NET will store the session state in the same process that processes the request, just as ASP does. If cookies are not available, a session can be tracked by adding a session identifier to the URL.
 
Your Name Your Email-ID
Your Answer
144. What is the difference between Compiler and Interpreter?
  Compiler:
A compiler is a program that translates program (called source code) written in some high level language into object code.A compiler translates high-level instructions directly into machine language and this process is called compiling.
Interpreter:
An interpreter translates high-level instructions into an intermediate form, which it then executes. Interpreter analyzes and executes each line of source code in succession, without looking at the entire program; the advantage of interpreters is that they can execute a program immediately.
 
Your Name Your Email-ID
Your Answer
145. Where is View State information stored?
  In HTML Hidden Fields.
 
Your Name Your Email-ID
Your Answer