Question : How are scripts executed?
Answer : ASP provides scripting engines that execute the corresponding scripting languages on the server side. Scripts should be encoded within the “< %…. %”.
Question : Explain the building blocks of Client/Server?
Answer : The client side building block runs the client side of the application. The server side building block runs the server side of the application.
Question : Explain the POST & GET Method or Explain the difference between them.
Answer : POST METHOD:
The POST method generates a FORM collection, which is sent as a HTTP request body. All the values typed in the form will be stored in the FORM collection.
The GET method sends information by appending it to the URL (with a question mark) and stored as A Querystring collection. The Querystring collection is passed to the server as name/value pair. The length of the URL should be less than 255 characters.
Question : What are the advantages of using ASP?
Answer : HTML is used only to create static web pages (which displays information) With the use of ASP one can create dynamic web pages,where client can communicate with the web server and vice versa. Thus using ASP interactive webpages can be created.
Question : What is the maximum data can be sent as a querystring?
Answer : Maximum length is 2084 in IE…
Question : what are the tools used for editing in IIS?
Answer : IIS Metabase Explorer is a freeware tool to allow editing of the IIS metabase. Essentially this has a similar featureset to Microsoft’s MetaEdit and Metabase Explorer except that it runs on all versions of Windows from 98 through to 2003. In addition the software includes a trace window feature which allows you to track all activity in the metabase including IIS itself or any other administration tool.
Question : What is connection pooling ?
Answer : A connection pool is a set of database connections that are available for an application to use. Connection Pooling is the concept of using a connection pool for enhanced performance.
Question : How many types of cookies are available in ASP?
Answer : There are 2 types of cookies Persistent and Non-persistent.
Question : What is http header?
Answer : HTTP headers expose a great deal of information about your client as well as the server you are working, the application you are designing, as well as the environment you are in (SSL, etc.).The functionality for this is held in “Request.ServerVariables”, so you only need to access that. For example, Request.ServerVariables(“ALL_HTTP”) or Request.ServerVariables(“HTTP_USER_AGENT”). You need to know the specific name of the header that you want. It is extremely simple to display all the HTTP headers in ASP. Here’s a code snippit that will do it for you: < % for each header in Request.ServerVariables response.write header & ” = ” & Request.ServerVariables(header) & ” < br>< br> ” next % > Just delete the spaces near the angle brackets and run it on IIS. You’ll get a list of all the HTTP headers along with the actual value for the header. Make sure to try this with different browsers and on different computers with different operating systems if you can. You’ll immediately see the differences.
Question : What is the difference between Server-side validation and Client-side validation?
Answer : Client side validation is processed the client side before submitting the form. The advantage of using the client side validation is , it reduces the netork trafiic , since the validation is processed in the client machine itself. Eg, email, isnumeric, isdate etc.
Server side validation is processed in the server. Some data cannot be validated in the client side and it has to be validated in the server side. Eg, Date between the two dates in the database.
Question : How long is a SessionID guaranteed to be unique?
Answer : It is unique per client. A client cannot have two sessions with the same SessionID.
Question : What are the advantages of using ASP?
Answer : Minimizes network traffic by limiting the need for the browser and server to talk to each other.
Makes for quicker loading time since HTML pages are only downloaded.
Allows to run programs in languages that are not supported by the browser.
Can provide the client with data that does not reside on the client’s machine.
Provides improved security measures since the script cannot be viewed by the browser.
Question : How to handle Error in ASP?
Answer : Using On Error Resume Next.
Question : What are the event handlers of Session Object?
Answer : Application_OnStart – This event will be fired when the first visitor hits the page.
Application_OnEnd – This event runs when the server is stoppe.
Question : What is the result of using Option Explicit?
Answer : All variables must be dimensioned before use.
Question : Which is the default Scripting Language on the client side?
Question : What is a session?
Answer : A user accessing an application is known as a session.