ASP.NET

1. ASP.NET Introduction 2. Comp of .Net Framework 3.5 3. Sys.Req for VS 2008 4. ASP.NET Envrmnt Setup 5. VS2010 Ultimate Sys.Req 6. Installing VS 2010 7. VS 2012 Sys.Req 8. Installing VS Exp 2012 9. Start the VS 2008 10. Application Life Cycle 11. Page Life Cycle 12. Page Life Cycle Events 13. ASP.NET Example 14. Event Handling 15. Default Events 16. Server Side 17. Request Object 18. Response Object 19. Server Controls 20. Server Controls Properties 21. Server Controls Methods 22. HTML Server Controls 23. Client Side 24. ASP.NET Basic Controls 25. TextBox Control 26. CheckBox Controls 27. RadioButton Controls 28. ListBox Control 29. HyperLink Control 30. Image Control 31. BulletedList Control 32. ASP.NET Directives 33. Implements Directive 34. Master Type Directive 35. Page Directive 36. PreviousPage Type 37. Managing State 38. Control State 39. Cookies 40. Query Strings 41. Server-Side State 42. Session State 43. Validation Controls 44. Required FieldValidator 45. Range Validator 46. Compare Validator 47. RegularExpressionValidator 48. Custom Validator 49. Validation Summary 50. Data Source Control 51. AdRotator Control 52. Calendar Control 53. Calendar Control Example 54. Panel Control 55. Panel Control Example 56. Multi Views Control 57. MultiView & View controls 58. MultiView Control Example 59. FileUpload Control 60. FileUpload Control Eg 61. AJAX Control 62. UpdatePanel control 63. UpdateProgress Control 64. Custom Controls 65. Custom Control Eg 66. Personalization 67. Create Simple Profile 68. ADO.NET 69. ADO.NET Objects 70. DataTable 71. DataRow 72. DataColumn 73. Object Example 74. Error Handling 75. Tracing Errors 76. Debugger 77. Security 78. Authentication 79. Authorization 80. LINQ 81. LINQ Query Operators 82. LINQ Example 83. Caching 84. Data Caching 85. Output Caching 86. Object Caching 87. Web Services 88. Create Web Services Eg 89. Web & Machine.config 90. Settings Schema 91. ASP.NET Deployment 92. XCopy Deployment 93. Web Setup Project 94. ASP Interview Part 1 95. ASP Interview Part 2 96. ASP Interview Part 3 97. ASP Interview Part 4 98. ASP Interview Part 5 99. ASP Interview Part 6
Pr.Pg Next Pg

The Request Object tutorials

  • The methods and properties of the HttpRequest class are exposed through theRequest properties of the HttpApplication, HttpContext, Page, and UserControl classes.

Properties and Methods of the Request Object:

 

Syntax:

public sealed class HttpRequest

The following table provides the properties of the Request object:

 

Properties

Description

AcceptTypes

Gets a string array of client-supported MIME accept types.

ApplicationPath

Gets the ASP.NET application's virtual application root path on the server

Browser

Gets or sets information about the requesting client's browser capabilities.

ContentEncoding

Gets or sets the character set of the entity-body.

ContentLength

Specifies the length, in bytes, of content sent by the client

ContentType

Gets or sets the MIME content type of the incoming request.

Cookies

Gets a collection of cookies sent by the client

FilePath

returns the currently executed file path.

Files

Gets the collection of files uploaded by the client, in multipart MIME format

Form

Gets a collection of form variables

Headers

Gets a collection of HTTP headers

HttpMethod

Gets the HTTP data transfer method (such as GET, POST, or HEAD) used by the client.

InputStream

Gets the contents of the incoming HTTP entity body

IsSecureConnection

Gets a value indicating whether the HTTP connection uses secure sockets (that is, HTTPS).

QueryString

Gets the collection of HTTP query string variables

RawUrl

Gets the raw URL of the current request

RequestType

Gets or sets the HTTP data transfer method (GET or POST) used by the client.

ServerVariables

Gets a collection of Web server variables

TotalBytes

Gets the number of bytes in the current input stream

Url

Gets information about the URL of the current request

UrlReferrer

Gets information about the URL of the client's previous request that linked to the current URL

UserAgent

Gets the raw user agent string of the client browser

UserHostAddress

Gets the IP host address of the remote client

UserHostName

Gets the DNS name of the remote client

UserLanguages

Gets a sorted string array of client language preferences

The following table provides a list of some important methods of Request object:

 

Method

Description

BinaryRead

Performs a binary read of a specified number of bytes from the current input stream

Equals(Object)

Determines whether the specified Object is equal to the current Object (Inherited from Object)

GetType

Gets the Type of the current instance

MapImageCoordinates

Maps an incoming image-field form parameter to appropriate x-coordinate and y-coordinate values

MapPath(String)

Maps the specified virtual path to a physical path

SaveAs

Saves an HTTP request to disk

ToString

Returns a String that represents the current Object

ValidateInput

Causes validation to occur for the collections accessed through the Cookies, Form, and QueryString properties.


Pr.Pg border                                              Next Pg