What is server objects in asp.net?

Answer Posted / arpita malviya

The Server object is used to access properties and methods
on the server.

These are its methods and properties;
CreateObject: Creates an instance of an object
Execute :Executes an ASP file from inside another ASP file
GetLastError() :Returns an ASPError object that describes
the error condition that occurred
HTMLEncode: Applies HTML encoding to a specified string
MapPath :Maps a specified path to a physical path
Transfer :Sends (transfers) all the information created in
one ASP file to a second ASP file
URLEncode: Applies URL encoding rules to a specified string

Is This Answer Correct ?    22 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ASLM?

686


Explain a program using razor view engine to create a simple application? : asp.net mvc

505


What is mvc in asp.net interview question? : Asp.Net MVC

493


How do I open an ashx file in windows 7?

577


Explain serialization and deserialization?

555






If you have an application with multiple security levels though secure login and my ASP.NET web appplication is spanned across three web-servers by using round-robbin load balancing. Explain which is the best approach to maintain login-in state for the users?

608


What parameters can you pass in the url of the api? Can get and post use the same url?

560


Describe a bubbled event and how it is used ?

621


What are the modes of updation in an updatepanel? What are triggers of an updatepanel?

509


What is difference between datalist and gridview?

587


Explain what is postback in asp. Net?

554


How to communicate via Remote proxy with Client? a)MarshalByRef b)Marshal by Value or Any thing else?

1575


in which protocol ASP.NET WEB API Work?

619


How would you turn off cookies on a page of a website?

508


What is asp.net architecture?

534