-
Explain the POST & GET Method or Explain the difference between them.
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. GET METHOD: 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...
-
How Many Types of Cookies
A. 3 B. 2 C. 1 D. 4
-
What is the difference between client-side script and server-side script?
Scripts executed only by the browser without contacting the server is called client-side script. It is browser dependent. The scripting code is visible to the user and hence not secure. Scripts executed by the web server and processed by the server is called server-side script.
-
User Input Data Validation
Should user input data validation occur server-side or client-side? Why?
-
What should be used in order to determine if the cookie "FavoriteFlavors" in the request object contains more than one entry?
A. Request.Cookies("FavoriteFlavors").HasItems B. Request.Cookies("FavoriteFlavors").Collection.Count C. Request.Cookies("FavoriteFlavors").Dictionary D. Request.Cookies("FavoriteFlavors").HasKeys E. Request.Cookies("FavoriteFlavors").Count
-
What is Session Object?
It stores information about a User’s session. Gives a notification when a user session begins or ends.
-
What is a session?
A user accessing an application is known as a session.
-
How will you set the values for cookies?
<% Response.Cookies("variable name ")="value" %>.
-
Application Variable
What happens when a client submits a form which changes the value of an Application variable
A. Client actions cannot change Application variables. B. The change is not visible to any client until the application is stopped and started. C. The change is only visible to future requests made by that client during their current session. D. The change is visible to all clients, but only after they... -
-
Which of the following are Server Object methods ( Choose Two)
A. HTMLEncode,MapPath B. URLEncode,ScriptTimeout C. URLEncode,CreateObject D. ScriptTimeout,Abandon
-
What is the program ID (ProgID) for ActiveX Data Objects in 2-tier and 3-tier database applications?
A. ADO B. RDODB C. ADODB D. RDS E. OLEDB
-
What is the function of Buffer in Response Object?
Buffer controls the HTML output stream manually.
-
What is the command to display characters to the HTML page?
Response.Write
-
What are the methods by which output stream is controlled?
• Flush – sends previous buffered output to the client immediately, but continues processing the script. • Clear – erases any already-buffered HTML. • End – causes the server to stop processing the script.
-
Name some of the ASP components?
• Ad Rotator component – a way to manage advertisements on the web site. • Content Linker component – a technique to direct users through a set of pages on a web site by creating a list of URLs and description of the next and previous pages. • Browser Capabilities component – allows to customize the page to the ability of the browser viewing it. • Database Access component – allows to access data from...
-
-
Name the ASP Objects?
• Request Object • Response Object • Server Object • Session Object • Application Object
-
Following is the code Server.MapPath (".") consider the path is C:InetpubWWWRootMATDefault.asp. What will be the output
A. C:InetPUb B. C:InetPUbWWWroot C. C:InetPUbwwwrootMAT D. Error
-
ASP.NET Session Timeout
How to set Session Timeout upto infinite, so it should never get expired, In ASP not in ASP.NET.
ASP Interview Questions
Ans