-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: Swapnil_B1
Message 1 in Discussion

  
New Public Properties of the Page Class  
The following public properties are new in ASP.NET 2.0.  
 
AppRelativeTemplateSourceDirectory - Returns the application-relative path to 
the page or control. For example, for a page located at 
http://app/folder/page.aspx, the property returns ~/folder/.  
 
AppRelativeVirtualPath - Returns the relative virtual directory path to the 
page or control. For example for a page located at http://app/folder/page.aspx, 
the property returns ~/folder/page.aspx.  
 
AsyncTimeout - Gets or sets the timeout used for asynchronous page handling. 
(Asynchronous pages will be covered later in this module.)  
 
ClientQueryString - A read-only property that returns the query string portion 
of the requested URL. This value is URL encoded. You can use the UrlDecode 
method of the HttpServerUtility class to decode it.  
 
ClientScript - This property returns a ClientScriptManager object that can be 
used to manage ASP.NETs emission of client-side script. (The 
ClientScriptManager class is covered later in this module.)  
 
EnableEventValidation - This property controls whether or not event validation 
is enabled for postback and callback events. When enabled, arguments to 
postback or callback events are verified to ensure that they originated from 
the server control that originally rendered them.  
 
EnableTheming - This property gets or sets a Boolean that specifies whether or 
not an ASP.NET 2.0 theme applies to the page.  
 
Form - This property returns the HTML form on the ASPX page as an HtmlForm 
object.  
 
Header - This property returns a reference to an HtmlHead object that contains 
the page header. You can use the returned HtmlHead object to get/set style 
sheets, Meta tags, etc.  
 
IdSeparator - This read-only property gets the character that is used to 
separate control identifiers when ASP.NET is building a unique ID for controls 
on a page. It is not intended to be used directly from your code.  
 
IsAsync - This property allows for asynchronous pages. Asynchronous pages are 
discussed later in this module.  
 
IsCallback - This read-only property returns true if the page is the result of 
a call back. Call backs are discussed later in this module.  
 
IsCrossPagePostBack - This read-only property returns true if the page is part 
of a cross-page postback. Cross-page postbacks are covered later in this 
module.  
 
Items - Returns a reference to an IDictionary instance that contains all 
objects stored in the pages context. You can add items to this IDictionary 
object and they will be available to you throughout the lifetime of the 
context.  
 
MaintainScrollPositionOnPostBack - This property controls whether or not 
ASP.NET emits JavaScript that maintains the pages scroll position in the 
browser after a postback occurs. (Details of this property were discussed 
earlier in this module.)  
 
Master - This read-only property returns a reference to the MasterPage instance 
for a page to which a master page has been applied.  
 
MasterPageFile - Gets or sets the master page filename for the page. This 
property can only be set in the PreInit method.  
 
MaxPageStateFieldLength - This property gets or sets the maximum length for the 
pages state in bytes. If the property is set to a positive number, the pages 
view state will be broken up into multiple hidden fields so that it doesnt 
exceed the number of bytes specified. If the property is a negative number, the 
view state will not be broken into chunks.  
 
PageAdapter - Returns a reference to the PageAdapter object that modifies the 
page for the requesting browser.  
 
PreviousPage - Returns a reference to the previous page in cases of a 
Server.Transfer or a cross-page postback.  
 
SkinID - Specifies the ASP.NET 2.0 skin to apply to the page.  
 
StyleSheetTheme - This property gets or sets the style sheet that is applied to 
a page.  
 
TemplateControl - Returns a reference to the containing control for the page.  
 
Theme - Gets or sets the name of the ASP.NET 2.0 theme applied to the page. 
This value must be set prior to the PreInit method.  
 
Title - This property gets or sets the title for the page as obtained from the 
pages header.  
 
ViewStateEncryptionMode - Gets or sets the ViewStateEncryptionMode of the page. 
See a detailed discussion of this property earlier in this module.  
 
New Protected Properties of the Page Class  
 
The following are the new protected properties of the Page class in ASP.NET 
2.0.  
 
Adapter - Returns a reference to the ControlAdapter that renders the page on 
the device that requested it.  
 
AsyncMode - This property indicates whether or not the page is processed 
asynchronously. It is intended for use by the runtime and not directly in code. 
 
  
ClientIDSeparator - This property returns the character used as a separator 
when creating unique client IDs for controls. It is intended for use by the 
runtime and not directly in code.  
 
PageStatePersister - This property returns the PageStatePersister object for 
the page. This property is primarily used by ASP.NET control developers.  
 
UniqueFilePathSuffix - This property returns a unique suffic that is appended 
to the file path for caching browsers. The default value is __ufps= and a 
6-digit number.  
 
New Public Methods for the Page Class  
  
The following public methods are new to the Page class in ASP.NET 2.0.  
 
AddOnPreRenderCompleteAsync - This method registers event handler delegates for 
asynchronous page execution. Asynchronous pages are discussed later in this 
module.  
 
ApplyStyleSheetSkin - Applies the properties in a pages style sheet to the 
page.  
 
ExecuteRegisteredAsyncTasks - This method beings an asynchronous task.  
 
GetValidators - Returns a collection of validators for the specified validation 
group or the default validation group if none is specified.  
 
RegisterAsyncTask - This method registers a new async task. Asynchronous pages 
are covered later in this module.  
 
RegisterRequiresControlState - This method tells ASP.NET that the pages control 
state must be persisted.  
 
RegisterRequiresViewStateEncryption - This method tells ASP.NET that the pages 
viewstate requires encryption.  
 
ResolveClientUrl - Returns a relative URL that can be used for client requests 
for images, etc.  
 
SetFocus - This method will set the focus to the control that is specified when 
the page is initially loaded.  
 
UnregisterRequiresControlState - This method will unregister the control that 
is passed to it as no longer requiring control state persistence.  
 Swapnil (swaps) http://swapsnet.spaces.live.com/

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to