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 |
| |||
| 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. |
| Sponsored Links |
| |||
| 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 |
| |||
| 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. |
| |||
| 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 |
| |||
| 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 clients machine. Provides improved security measures since the script cannot be viewed by the browser. Thanks Kiruthika.S |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 the database Thanks Kiruthika.S |
| |||
| 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 be less than 255 characters Thanks Kiruthika.S |
| |||
| what are the tools used for editing in IIS?? 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. Thanks Kiruthika.S |
| |||
| Hi, How shall v connect SQLServer(DB) with Visual Studio? SqlConnection con=new SqlConnection("server=ramya;User ID=sa;password=xxxx;Database=Trainee"); This statement is used to connect DB with Visual Studio. Last edited by poornima : 04-15-2008 at 09:49 PM. |
| |||
| What is a "Virtual Directory"? Virtual directories are aliases for directory paths on the server. It allows moving files on the disk between different folders, drives or even servers without changing the structure of web pages. It avoids typing an extremely long URL each time to access an ASP page. |
| |||
| Create Virtual Directories in IIS 4.0 1. Click "Startąsettingsącontrol Panel ąAdministrative Toolsąinternet information services" 2. Expand Internet Information Server. 3. Expand the server name. 4. In the left pane, right-click Default Web Site, point to New, and then click Virtual Directory. 5. In the first screen of the New Virtual Directory Wizard, type an alias, or name, for the virtual directory (SiteName), and then click Next. 6. In the second screen, click Browse. Locate the content folder that you created to hold the Web content. Click Next. 7. In the third screen, click to select Read and Run scripts (such as ASP). Make sure that the other check boxes are cleared. Click Finish to complete the wizard. |
| |||
| 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. |
| |||
| How many objects are there in ASP? Seven Objects Server - Deals with anything to be done on server (eg script run time) Application - Deals with the Start and end of Applications Session - Deals with the Start and End of Sessions Response - Deals with the Information to be sent to the calling page and control properties of the page Request -Deals with the receiving information for the page ObjectContext - Allows Access to MTS (Transaction) ASPError - Deals with Error generated by an asp Script |
| |||
| What is a deadlock and Explain A deadlock is a condition where two or more users are waiting for data locked by each other. Oracle automatically detects a deadlock and resolves them by rolling back one of the statements involved in the deadlock, thus releasing one set of data locked by that statement. Statement rolled back is usually the one which detects the deadlock. Deadlocks are mostly caused by explicit locking because oracle does not do lock escalation and does not use read locks. Multitable deadlocks can be avoided by locking the tables in same order in all the applications, thus precluding a deadlock. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Top 10 Illegal Interview Questions | Sabari | Interview Questions & Answers and Tips | 10 | 12-03-2007 06:31 AM |
| HR Interview Questions with Answers | Sabari | Interview Questions & Answers and Tips | 63 | 11-23-2007 06:13 AM |
| Interview questions from TOP IT Companies | venkat_charya | Interview Questions & Answers and Tips | 19 | 10-13-2007 05:59 AM |
| MYSQL interview questions | it.wily | Interview Questions & Answers and Tips | 1 | 09-04-2007 04:33 AM |
| Interview Questions | shiva | Interview Questions & Answers and Tips | 6 | 08-24-2007 02:28 AM |