IT Community - Software Programming, Web Development and Technical Support

Asp Interview Questions

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 ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 04-14-2008, 08:58 PM
sureshbb sureshbb is offline
D-Web Sr.Programmer
 
Join Date: Aug 2007
Posts: 140
sureshbb is on a distinguished road
Default Asp Interview Questions

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.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 04-14-2008, 09:00 PM
sureshbb sureshbb is offline
D-Web Sr.Programmer
 
Join Date: Aug 2007
Posts: 140
sureshbb is on a distinguished road
Default Re: Asp Interview Questions

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 04-14-2008, 09:00 PM
sureshbb sureshbb is offline
D-Web Sr.Programmer
 
Join Date: Aug 2007
Posts: 140
sureshbb is on a distinguished road
Default Re: Asp Interview Questions

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.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 04-14-2008, 09:01 PM
sureshbb sureshbb is offline
D-Web Sr.Programmer
 
Join Date: Aug 2007
Posts: 140
sureshbb is on a distinguished road
Default Re: Asp Interview Questions

What is ServerVariables collection?
The ServerVariables collection holds the entire HTTP headers and also additional items of information about the server.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 04-14-2008, 09:02 PM
sureshbb sureshbb is offline
D-Web Sr.Programmer
 
Join Date: Aug 2007
Posts: 140
sureshbb is on a distinguished road
Default Re: Asp Interview Questions

What is the difference between Querystring collection and Form collection?
The main difference is that the Querystring collection gets appended to a URL.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 04-15-2008, 07:53 PM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 328
KiruthikaSambandam is on a distinguished road
Default Re: Asp Interview Questions

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 04-15-2008, 07:55 PM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 328
KiruthikaSambandam is on a distinguished road
Default Re: Asp Interview Questions

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 04-15-2008, 07:56 PM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 328
KiruthikaSambandam is on a distinguished road
Default Re: Asp Interview Questions

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 04-15-2008, 07:57 PM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 328
KiruthikaSambandam is on a distinguished road
Default Re: Asp Interview Questions

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 04-15-2008, 07:58 PM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 328
KiruthikaSambandam is on a distinguished road
Default Re: Asp Interview Questions

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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


All times are GMT -7. The time now is 06:22 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0