Search Box

Friday 22 July 2011

ADVANTAGES OF SERVER CONTROL


Web developers coming from an ASP3 or similar background may prefer to work with the HTML-style of control.
Developers can convert existing HTML tags to HTML server controls fairly easily, thus gaining
Some server-side programmatic access to the control

 The HTML elements can be converted into HTML server controls. To do so, we need to use attributes, such as ID and RUNAT, in the tags that are used to add the HTML controls. we can also add these controls to the page by using the HTML tab of the toolbox.

We can manipulate these controls at the server-side. Before dispatching a form to the client, the ASP Engine converts them to the equivalent HTML elements. These controls are included in the System.Web.UI.HtmlControls namespace.
Using the HtmlAnchor Control

The HtmlAnchor control is used to control an <a> element. In HTML, the <a> element is used to create a hyperlink. The hyperlink may link to a bookmark or to another Web page.
we can use the HtmlAchor control (<a>) to navigate from a page to another page.
This basically works almost like the Html anchor tag; the only difference is
that it works on the server.
REQUEST AND RESPONSE OBJECTS:
Request and Response objects represent information coming into the Web server from the browser and information going out from the server to the browser. The Request object is called the input object and the Response object is called the output object.
Request Object

The Request object represents an HTTP request before it has been sent to the server. Notable properties of this object are as follows:

Body  ? Gets/Sets the HTTP request body
CodePage  ? Gets/Sets the code page for the request body
EncodeBody  ?Gets/Sets whether ACT automatically URL encodes the request body
EncodeQueryAsUTF8? Gets/Sets whether ACT automatically UTF-8 encodes the request's                                                                                               query string
Headers  ? Gets the HTTP Headers collection object
HTTPVersion  ? Gets/Sets the HTTP version
Path  ?Gets/Sets the HTTP path
ResponseBufferSize    ?Gets/Sets the size of the buffer used to store the response body
Verb   ?Gets/Sets the HTTP method verb
REQUEST AND RESPONSE OBJECTS:
Request and Response objects represent information coming into the Web server from the browser and information going out from the server to the browser. The Request object is called the input object and the Response object is called the output object.
Request Object

The Request object represents an HTTP request before it has been sent to the server. Notable properties of this object are as follows:

Body  ? Gets/Sets the HTTP request body
CodePage  ? Gets/Sets the code page for the request body
EncodeBody  ?Gets/Sets whether ACT automatically URL encodes the request body
EncodeQueryAsUTF8? Gets/Sets whether ACT automatically UTF-8 encodes the request's                                                                                               query string
Headers  ? Gets the HTTP Headers collection object
HTTPVersion  ? Gets/Sets the HTTP version
Path  ?Gets/Sets the HTTP path
ResponseBufferSize    ?Gets/Sets the size of the buffer used to store the response body
Verb   ?Gets/Sets the HTTP method verb
REQUEST AND RESPONSE OBJECTS:
Request and Response objects represent information coming into the Web server from the browser and information going out from the server to the browser. The Request object is called the input object and the Response object is called the output object.
Request Object

The Request object represents an HTTP request before it has been sent to the server. Notable properties of this object are as follows:

Body  ? Gets/Sets the HTTP request body
CodePage  ? Gets/Sets the code page for the request body
EncodeBody  ?Gets/Sets whether ACT automatically URL encodes the request body
EncodeQueryAsUTF8? Gets/Sets whether ACT automatically UTF-8 encodes the request's                                                                                               query string
Headers  ? Gets the HTTP Headers collection object
HTTPVersion  ? Gets/Sets the HTTP version
Path  ?Gets/Sets the HTTP path
ResponseBufferSize    ?Gets/Sets the size of the buffer used to store the response body
Verb   ?Gets/Sets the HTTP method verb
Response Object
 The Response object represents a valid HTTP response that was received from the server. The response header properties are read-only. Notable properties of the object are as follows:

Body? Gets the body of the HTTP response. Only the portion of the body stored in the response buffer is returned
BytesRecv? Gets the number of bytes the client received in the response
BytesSent: Gets the number of bytes send in the HTTP request
CodePage: Gets or sets the code page used for setting the body of the HTTP response
ContentLength: Gets the size, in bytes, of the response body
Headers: Gets a collection of headers in the response
HeaderSize: Gets the combined size, in bytes, of all the response headers
HTTPVersion: Gets the HTTP version used by the server for this response
Path: Gets the path that was requested
Port: Gets the server port used for the request
ResultCode: Gets the server's response status code
Server: Gets the name of the server that sent the response
TTFB: Gets the number of milliseconds that have passed before the first byte of the response was received
TTLB: Gets the number of milliseconds that passed before the last byte of the response was received
UseSSL: Checks whether the server and client used an SSL connection for the request and response
WORKING WITH DATA - OLEDB CONNECTION CLASS

1 comment:

  1. I think a business owner like me really needs Web Hosting Services and web design for my website. I never knew its importance until I read your article. Thank you for sharing such a great insight and well-informed knowledge about this. I would love to see more updates from you in the future.

    ReplyDelete