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().
Friday, June 5, 2009
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.
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.
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.
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.
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.
What is ServerVariables collection?
ServerVariables collection holds the entire HTTP headers and also additional items of information about the server.
What are the methods in Session Object?
Only one method, which is Abandon.
It destroys all the objects stored in a Session Object and releases the server resources they occupied.
It destroys all the objects stored in a Session Object and releases the server resources they occupied.
Thursday, March 12, 2009
How long is a SessionID guaranteed to be unique?
SessionID guaranteed to be unique until the session expires. Once session expired it can be reissued to another client.
In ASP, how session is maintained?
For maintaining the session in ASP, the browser sends a cookie to the server with each request.
What is Application scope?
Application-scope indicates that variables and objects can be accessed from any ASP pages that is part of the application.
What is Session object?
The session object used to share information about particular user of that application.
What is an application object?
The application object used to share information among all users of an application.
How many global.asa. files can an application have?
An application have one and only one global.asa file.
How many objects are there in ASP?
There are 7 objects in ASP.
1- Application Object
2- Session Object
3- Request Object
4- Response Object
5- Server object
6- Object Context Object
7- Error Object (It's a new object included in ASP 3.0)
1- Application Object
2- Session Object
3- Request Object
4- Response Object
5- Server object
6- Object Context Object
7- Error Object (It's a new object included in ASP 3.0)
What is a "virtual directory"?
The main benefit of Virtual Directory is we can avoid typing an extremely long URL each time to access an ASP page. Virtual directories are alias 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.
Subscribe to:
Posts (Atom)