Musings
Public · Protected · Private
.Net Web development 4
-
2008-03-30 00:38Response Properties Cookies Buffer Cache Expires ExpiresAbsolute Status and StatusCode BinaryWrite Like Resonse.Write AppendHeader Adds HTTP header to the response stream. Clear -clean ClearContent remove content not headers. ClearHeaders Removes headers. End Completes the response and returns. Flush This is useful if you want to return a partial page to the user Redirect an alternative to the Server.Transfer TransmitFile Writes file to HTTP response. Write Writes a file to the HTTP response with buffering. WriteFile WriteSubstitution -- is like string.Replace
-
2008-03-30 01:12Request MapPath SaveAs Saves the request to a file. ValidateInput Request object properties: ApplicationPath AppRelativeCurrentExecutionFilePath Browser browser’s capabilities. ClientCertificate Gets the client’s security certificate Cookies Enables you to read cookies FilePath Gets the virtual path of the current request. Files collection of files uploaded by the client. Headers Gets the collection of HTTP headers. HttpMethod Gets the HTTP data transfer method (such as GET, POST, or HEAD) used by the client. IsAuthenticated client authenticated? IsLocal client is from local computer. IsSecureConnection HTTP (HTTPS). LogonUserIdentity the current user. Params A combined collection that includes the QueryString, Form, ServerVariables, and Cookies items. Path path request. PhysicalApplicationPath application root directory. PhysicalPath path of current request. QueryString query string variables. RawUrl TotalBytes The length of the request. UrlReferrer which external Web site brought the user to the current page. UserAgent UserHostAddress UserHostName UserLanguages
-
2008-03-30 09:22Server The Page.Server property is an HttpServerUtil object Transfer Stops processing the current page and starts processing the specified page. The URL is not changed in the user’s browser. UrlDecode Decodes a string encoded for HTTP transmission and sent to the server in a URL. UrlEncode Encodes a string for reliable HTTP transmission from the Web server to a client through the URL. UrlPathEncode URL-encodes the path portion of a URL string and returns the encoded string. UrlTokenDecode Decodes a URL string token to its equivalent byte array using base 64 UrlTokenEncode Encodes a byte array into its equivalent string representation using base 64 ClearError Rmoves or clens error. GetLastError previous exception HtmlDecode Removes HTML markup from a string. HtmlEncode make a string safe on browser. MapPath gets physical file path of given virtual path on the Web server. Page.Context is a HttpContext object provides access to Cache, Request, Response, Server, and Session. Many are page members --context is also a pagemember. Page Header members StyleSheet The StyleSheet object you can call CreateStyleRule ,RegisterStyle methods. Title PageTitle.
-
2008-03-30 10:30Master page An ASP.NET file with a .master file extension. Instead of an “@ Page” directive, it contains an “@ Master” directive. It contains all top-level HTML elements for a page, including <html>, <head>, and <form>. includes the page structure (usually an HTML table), company name and logo, and site navigation. To enable pages to insert content, a master page contains one or more ContentPlaceHolder controls. A master page inherits from the MasterPage class. Content page defines the ContentPlaceHolder controls in a master page, essentially filling in the blanks. A content page is a standard .aspx file and is bound to the master page using the MasterPageFile attribute in the “@ Page” directive.
-
2008-03-30 13:14Forms authentication UseCookies UseUri AutoDetect UseDeviceProfile <authentication mode="Forms" > <forms Cookieless="UseUri" loginURL="LoginForm.aspx" /> </authentication> <authentication mode="Forms"> <forms loginUrl="login.aspx" protection="Encryption" timeout="30" > <credentials passwordFormat="SHA1" > <user name="k” password="n"/> <user name="t" password="q"/> </credentials> </forms> </authentication> using System.Security.Cryptography; SHA1CryptoServiceProvider myH=new SHA1CryptoServiceProvider(); byte[] pw = Encoding.ASCII.GetBytes(args[0]); myH.ComputeHash(pw);
This blog is frozen. No new comments or edits allowed.