ASP.Net Interview Question and Answers

26. What is the difference between Server-side scripting and Client-side scripting?
  Server side scripting means that all the script will be executed by the server and interpreted as needed. ASP doesn't have some of the functionality like sockets, uploading, etc.
Client side scripting means that the script will be executed immediately in the browser such as form field validation, clock, email validation, etc. Client side scripting is usually done in VBScript or JavaScript.
 
Your Name Your Email-ID
Your Answer
27. How do you create a permanent cookie?
  Permanent cookies are available until a specified expiration date, and are stored on the hard disk.So Set the 'Expires' property any value greater than DataTime.MinValue with respect to the current datetime. If u want the cookie which never expires set its Expires property equal to DateTime.maxValue.
 
Your Name Your Email-ID
Your Answer
28. Which method do you use to redirect the user to another page without performing a round trip to the client?
 
  • Server.Transfer
  • Server.Execute.
 
Your Name Your Email-ID
Your Answer
29. What are the major events in Global.Asax file?
 
  • Application_Init
  • Application Disposed
  • Application Error
  • Application Start
  • Application End
  • Application_BeginRequest
  • Application_EndRequest
  • Session Start
  • Session End
  • Application_AuthorizationRequest
 
Your Name Your Email-ID
Your Answer
30. What tag do you use to add a hyperlink column to the DataGrid?
  < asp:HyperLinkColumn > < / asp:HyperLinkColumn >
 
Your Name Your Email-ID
Your Answer