Friday, June 5, 2009

What is the difference between response.redirect and Server.transfer?

Server.Transfer Server.Transfer() helps the one less round trip. The main advantage of this transfer the first page to second page with better performance. The data can pass through variables, query string and also can retrieve from the previous page control value.

Eg: Server.Transfer("Default.aspx");

Response.Redirect() It is very similar to server.Transfer. The main difference is the posted previous page values can't be accessible. Here also the data can pass through server variables and query string. It simply redirect the page from one page to another.

Eg: Response.Redirect("Default.aspx")

Note: But the previous page values can't be accessible by Response.Redirect().

What is the difference between Response.AddHeader and Meta tag?

Response.Redirect or Response.AddHeader "Refresh", "35;URL=http://url/" is serverside.
The META tag is client side and can be disabled.

Friday, March 13, 2009

What is a TextStream object?

It allows you to access(write/read) the content of text file stored on the web server.

What is a Dictionary object?

It lets you store and retrieve information in a flexible data structure. Each value or information stored in a Dictionary is associated with a key through which the information can be retrieved.

What is a FileSystemObject object?

It provides access to the physical file system of the web server. It gets and manipulates information about all drives in a server, folders and sub-folders on a drive and files inside a folder.

What is a Web Server?

Web Server is a Computer that provides Web services on the Internet or on a local Intranet. It is designed to locate, address and send out simple HTML pages to all other users who access these pages.

Which is the default Scripting Language on the client side?

JavaScript

What is the difference between client-side script and server-side script?

Client Side Script:- Scripts executed only by the browser without contacting the server is called client-side script. The scripting code is visible to the user and hence not secure.

Server Side Script:- Scripts executed by the web server and processed by the server is called server-side script.

What are the ASP Scripting Objects?

There are 3 methods of ASP Scripting objects:-
1- The Dictionary object
2- The FileSystemObject object
3- TextStream object.

What is a Form collection?

The Form collection holds the values of the form elements submitted with the POST method. This is the only way to generate a Form collection.