This is a discussion on Asp Interview Questions within the ASP and ASP.NET Programming forums, part of the Web Development category; What is Query string collection? This collection stores any values that are provided in the URL. This can be generated ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| What is Query string collection? This collection stores any values that are provided in the URL. This can be generated by three methods: By clicking on an anchor tag By sending a form to the server by the GET method Through user-typed HTTP address It allows you to extract data sent to the server using a GET request. |
|
#2
| |||
| |||
| What are the attributes of the tags? What are their functions? The two attributes are ACTION and METHOD The ACTION gives the name of the ASP file that should be opened next by which this file can access the information given in the form The METHOD determines which of the two ways (POST or GET) the browser can send the information to the server |
|
#3
| |||
| |||
| What are the methods in Session Object? The Session Object has only one method, which is Abandon. It destroys all the objects stored in a Session Object and releases the server resources they occupied. |
|
#4
| |||
| |||
| What is ServerVariables collection? The ServerVariables collection holds the entire HTTP headers and also additional items of information about the server. |
|
#5
| |||
| |||
| What is the difference between Querystring collection and Form collection? The main difference is that the Querystring collection gets appended to a URL. |
|
#6
| |||
| |||
| What is http header? 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. Thanks Kiruthika.S |
|
#7
| |||
| |||
| What are the advantages of using ASP? 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. Thanks Kiruthika.S |
|
#8
| |||
| |||
| What are LOCAL and GLOBAL variables? Local variables lifetime ends when the Procedure ends. Global variables lifetime begins at the start of the script and ends at the end of the script and it can be used by any procedure within the script. Declaring a variable by using the keyword PRIVATE makes the variable global within the script, but if declared using PUBLIC, then all scripts can refer the variable. Thanks Kiruthika.S |
|
#9
| |||
| |||
| What is Response Object? It controls the information sent to the user. The various methods are: Response.Write - Sends information directly to a browser Response.Redirect - Directs a user to a URL other than the requested URL Response.ContentType - Controls the type of content sent Response.Cookies - Sets cookie values Response.Buffer - To Buffer information Thanks Kiruthika.S |
|
#10
| |||
| |||
| What is the difference between Cookies collection and Form/Querystring collection? Cookie collection does not have the Count property. Cookies can have multiple values for the same cookie name but each value can be referred using a key whereas in a Form/Querystring cookie each value has to be referred using an index value. Thanks Kiruthika.S |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Interview questions from TOP IT Companies | venkat_charya | Interview Questions & Answers and Tips | 21 | 07-25-2009 06:39 PM |
| Simple Interview Questions | Sathish Kumar | C# Programming | 56 | 03-21-2008 06:53 AM |
| Jsp interview Questions And Answers | leoraja8 | Java Server Pages (JSP) | 23 | 12-23-2007 08:19 PM |
| Top 10 Illegal Interview Questions | Sabari | Interview Questions & Answers and Tips | 10 | 12-03-2007 05:31 AM |
| Interview Questions | shiva | Interview Questions & Answers and Tips | 6 | 08-24-2007 01:28 AM |
Our Partners |