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

Define machine.config in .net?

544


How to integrate angular 8 with asp.net mvc 5? : Asp.Net MVC

491


What is difference between singleton and single call?

636


Which validator control you use if you need to make sure the values in two different controls matched?

641


What is the equivalent of date() and time() in asp.net?

504






How do I open an ashx file?

534


Where would you use an ihttpmodule, and what are the limitations if any?

513


How to you can limit Access to Web API to Specific HTTP Verb?

652


Give an example of what might be best suited to place in the application_start and session_start subroutines?

516


What are the two types of web pages?

512


Is there any property names “isnavigating”?

570


Which object encapsulates state or data of a user?

618


What is the concept of postback in asp.net?

577


What is the difference between Session and response.Redirect?

604


What is css in asp.net?

541