C# Class Nettiers.AdventureWorks.Web.UI.FormUtilBase

ファイルを表示 Open project: netTiers/netTiers

Public Methods

Method Description
BindControl ( Control control, IOrderedDictionary list, String propertyName ) : void

Binds a controls value to a property of an entity.

BindControl ( FormView formView, IOrderedDictionary list, string propertyName, string controlId ) : void

Binds a controls value to a property of an entity.

BindOnInserting ( FormView formView, string propertyName, string controlId ) : void

Binds a property's value to a FormView child control when the FormView is inserting.

BindOnInsertingUpdating ( FormView formView, string propertyName, string controlId ) : void

Binds a property's value to a FormView child control when the FormView is inserting or updating.

BindOnUpdating ( FormView formView, string propertyName, string controlId ) : void

Binds a property's value to a FormView child control when the FormView is updating.

FindControl ( Control control ) : Control

Searches the specified control for a server control with the specified id parameter values.

FindControls ( Control control, String controlId ) : IList

Searches the specified control for a server control with the specified id parameter.

GetClientID ( Control container, String controlId, String propertyName ) : String

Gets the value of the ClientID property.

GetControlCache ( System page ) : IList>.IDictionary

Gets a collection of controls that acts as a cache for Control object collections returned by the GetControls method.

GetControls ( System page, String controlId ) : IList

Gets a collection of controls contained within the specified System.Web.UI.Page object that have the specified ID property value.

GetDefaultPropertyName ( Object o ) : String

Gets the name of the default property, if defined.

GetDefaultPropertyName ( Type type ) : String

Gets the name of the default property, if defined.

GetGridViewSearchPanelState ( string controlStateName, PersistenceMethod persistenceMethod ) : GridViewSearchPanelState

Gets the GridViewSearchPanel State from the cookie

GetRedirectUrl ( GridView gridView ) : String

Gets the current page url with query parameters and values indicating the current state of the GridView object.

GetRedirectUrl ( GridView gridView, String url ) : String

Formats the specified url with query parameters and values indicating the current state of the GridView object.

GetValue ( Control control ) : Object

Gets the value of the default property.

GetValue ( Control control, String propertyName ) : Object

Gets the value of the property with the specified name.

HandleGridViewSearchPanelState ( GridViewSearchPanel searchPanel ) : void

Handles the state of the GridViewSearchPanel

HandleGridViewSearchPanelState ( GridViewSearchPanel searchPanel, System.DateTime persistentCookieExpiryDateTime ) : void

Handles the state of the GridViewSearchPanel

HandleGridViewSearchPanelState ( GridViewSearchPanel searchPanel, GridView gridView, PersistenceMethod persistenceMethod, System.DateTime persistentCookieExpiryDateTime ) : void

Handles the state of the GridViewSearchPanel

HandleGridViewSearchPanelState ( GridViewSearchPanel searchPanel, PersistenceMethod persistenceMethod ) : void

Handles the state of the GridViewSearchPanel

HasValue ( Control control ) : bool

Gets a value indicating whether the specified control contains a value which is neither null nor empty.

HasValue ( Control parent, String controlId ) : bool

Gets a value indicating whether the specified control contains a value which is neither null nor empty.

HideButton ( Control parent, String buttonId ) : void

Hides the Button control with the specified ID.

InitPassword ( FormView formView, String controlId, ILinkedDataSource dataSource, String propertyName ) : void

Initializes a password TextBox control with the current value.

InitPassword ( TextBox control, String password ) : void

Initializes a password TextBox control with the current value.

LoadBindableTemplate ( TemplateControl control, String path ) : IBindableTemplate

Loads an instance of an IBindableTemplate from the specified path.

Adapted from an article written by James Crowley, which can be found at: http://www.developerfusion.co.uk/show/4721/

Redirect ( GridView gridView, String url ) : void

Redirects a client to a new URL which contains query parameters and values indicating the current state of the GridView object.

Redirect ( GridView gridView, String url, Exception exception ) : void

Redirects a client to a new URL which contains query parameters and values indicating the current state of the GridView object.

Redirect ( String url ) : void

Redirects a client to a new URL.

Redirect ( String url, Exception exception ) : void

Redirects a client to a new URL.

Redirect ( String url, ILinkedDataSource dataSource ) : void

Redirects a client to a new URL and provides the currently selected EntityId from the specified ILinkedDataSource object.

Redirect ( String url, ILinkedDataSource dataSource, Exception exception ) : void

Redirects a client to a new URL and provides the currently selected EntityId from the specified ILinkedDataSource object; This method only redirects if the specified exception is null.

RedirectAfterAddNew ( FormView formView, String url ) : void

Redirects the client to a new URL after the ItemCommand event of the FormView object has been raised with a CommandName of "New".

RedirectAfterCancel ( DetailsView view, String url ) : void

Redirects the client to a new URL after the ItemCommand event of the DetailsView object has been raised with a CommandName of "Cancel".

RedirectAfterCancel ( DetailsView view, String url, ILinkedDataSource dataSource ) : void

Redirects the client to a new URL after the ItemCommand event of the DetailsView object has been raised with a CommandName of "Cancel".

RedirectAfterCancel ( FormView formView, String url ) : void

Redirects the client to a new URL after the ItemCommand event of the FormView object has been raised with a CommandName of "Cancel".

RedirectAfterCancel ( FormView formView, String url, ILinkedDataSource dataSource ) : void

Redirects the client to a new URL after the ItemCommand event of the FormView object has been raised with a CommandName of "Cancel".

RedirectAfterCancel ( GridView gridView, String url ) : void

Redirects a client to a new URL which contains query parameters and values indicating the current state of the GridView object after the RowCancelingEdit event has been raised.

RedirectAfterDelete ( FormView formView, GridView gridView, String url ) : void

Redirects the client to a new URL after the ItemDeleted event of the FormView object has been raised.

RedirectAfterDelete ( FormView formView, String url ) : void

Redirects the client to a new URL after the ItemDeleted event of the FormView object has been raised.

RedirectAfterDelete ( FormView formView, String url, ILinkedDataSource dataSource ) : void

Redirects the client to a new URL after the ItemDeleted event of the FormView object has been raised.

RedirectAfterDelete ( GridView gridView, String url ) : void

Redirects a client to a new URL which contains query parameters and values indicating the current state of the GridView object after the RowDeleted event has been raised.

RedirectAfterInsert ( DetailsView view, GridView grid, String url ) : void

Redirects the client to a new URL after the ItemInserted event of the DetailsView object has been raised.

RedirectAfterInsert ( DetailsView view, String url ) : void

Redirects the client to a new URL after the ItemInserted event of the DetailsView object has been raised.

RedirectAfterInsert ( DetailsView view, String url, ILinkedDataSource dataSource ) : void

Redirects the client to a new URL after the ItemInserted event of the DetailsView object has been raised.

RedirectAfterInsert ( FormView formView, GridView gridView, String url ) : void

Redirects the client to a new URL after the ItemInserted event of the FormView object has been raised.

RedirectAfterInsert ( FormView formView, String url ) : void

Redirects the client to a new URL after the ItemInserted event of the FormView object has been raised.

RedirectAfterInsert ( FormView formView, String url, ILinkedDataSource dataSource ) : void

Redirects the client to a new URL after the ItemInserted event of the FormView object has been raised.

RedirectAfterInsertCancel ( DetailsView view, GridView grid, String url ) : void

Redirects the client to a new URL after the ItemInserted event of the DetailsView has been raised or after the ItemCommand event of the DetailsView object has been raised with a CommandName of "Cancel".

RedirectAfterInsertCancel ( DetailsView view, String url ) : void

Redirects the client to a new URL after the ItemInserted event of the DetailsView has been raised or after the ItemCommand event of the DetailsView object has been raised with a CommandName of "Cancel".

RedirectAfterInsertCancel ( DetailsView view, String url, ILinkedDataSource dataSource ) : void

Redirects the client to a new URL after the ItemInserted event of the DetailsView has been raised or after the ItemCommand event of the DetailsView object has been raised with a CommandName of "Cancel".

RedirectAfterInsertCancel ( FormView formView, String url ) : void

Redirect the client to a new URL after an insert or cancel operation.

RedirectAfterInsertCancel ( FormView formView, String url, ILinkedDataSource dataSource ) : void

Redirect the client to a new URL after an insert or cancel operation.

RedirectAfterInsertUpdate ( FormView formView, String url ) : void

Redirect the client to a new URL after an insert or update operation.

RedirectAfterInsertUpdate ( FormView formView, String url, ILinkedDataSource dataSource ) : void

Redirect the client to a new URL after an insert or update operation.

RedirectAfterInsertUpdateCancel ( DetailsView view, String url ) : void

Redirects the client to a new URL after the ItemInserted or ItemUpdated event of the DetailsView has been raised or after the ItemCommand event of the DetailsView object has been raised with a CommandName of "Cancel".

RedirectAfterInsertUpdateCancel ( DetailsView view, String url, ILinkedDataSource dataSource ) : void

Redirects the client to a new URL after the ItemInserted or ItemUpdated event of the DetailsView has been raised or after the ItemCommand event of the DetailsView object has been raised with a CommandName of "Cancel".

RedirectAfterInsertUpdateCancel ( FormView formView, String url, ILinkedDataSource dataSource ) : void

Redirect the client to a new URL after an insert, update, or cancel operation.

RedirectAfterUpdate ( DetailsView view, GridView grid, String url ) : void

Redirects the client to a new URL after the ItemUpdated event of the DetailsView object has been raised.

RedirectAfterUpdate ( DetailsView view, String url ) : void

Redirects the client to a new URL after the ItemUpdated event of the DetailsView object has been raised.

RedirectAfterUpdate ( DetailsView view, String url, ILinkedDataSource dataSource ) : void

Redirects the client to a new URL after the ItemUpdated event of the DetailsView object has been raised.

RedirectAfterUpdate ( FormView formView, String url ) : void

Redirects the client to a new URL after the ItemUpdated event of the FormView object has been raised.

RedirectAfterUpdate ( FormView formView, String url, ILinkedDataSource dataSource ) : void

Redirects the client to a new URL after the ItemUpdated event of the FormView object has been raised.

RedirectAfterUpdate ( GridView gridView, String url ) : void

Redirects a client to a new URL which contains query parameters and values indicating the current state of the GridView object after the RowUpdated event has been raised.

RedirectAfterUpdateCancel ( DetailsView view, GridView grid, String url ) : void

Redirects the client to a new URL after the ItemUpdated event of the DetailsView has been raised or after the ItemCommand event of the DetailsView object has been raised with a CommandName of "Cancel".

RedirectAfterUpdateCancel ( DetailsView view, String url ) : void

Redirects the client to a new URL after the ItemUpdated event of the DetailsView has been raised or after the ItemCommand event of the DetailsView object has been raised with a CommandName of "Cancel".

RedirectAfterUpdateCancel ( DetailsView view, String url, ILinkedDataSource dataSource ) : void

Redirects the client to a new URL after the ItemUpdated event of the DetailsView has been raised or after the ItemCommand event of the DetailsView object has been raised with a CommandName of "Cancel".

RedirectAfterUpdateCancel ( FormView formView, String url ) : void

Redirect the client to a new URL after an update or cancel operation.

RedirectAfterUpdateCancel ( FormView formView, String url, ILinkedDataSource dataSource ) : void

Redirect the client to a new URL after an update or cancel operation.

RedirectAfterUpdateDeleteCancel ( GridView gridView, String url ) : void

Redirects a client to a new URL which contains query parameters and values indicating the current state of the GridView object after the RowUpdated, RowDeleted, or RowCancelingEdit events have been raised.

SaveGridViewSearchPanelState ( GridViewSearchPanelState controlState, string controlStateName, PersistenceMethod persistenceMethod, DateTime persistentCookieExpiryDateTime ) : void

Saves the GridViewSearchPanel State.

SaveRequestParameter ( String requestParameterName, String sessionParameterName ) : void

Saves a HttpRequest parameter value into the current HttpSessionState object.

SetDefaultButton ( System button ) : void

Sets the default button.

SetDefaultButtonAndFocus ( System button, System control ) : void

Sets the default button and focus.

SetDefaultFocus ( System control ) : void

Sets the default focus.

SetDefaultMode ( FormView formView, String requestParameterName ) : void

Sets the data-entry mode of the specified FormView object based on whether or not the HttpRequest parameter value is null.

SetDefaultValue ( FormView formView, String controlID, String value ) : void

Sets the default value of the control with the specified id parameter when the FormView is in Insert mode.

SetGridParams ( GridView gridView ) : void

Sets the page index, selected index, and sort expression for the specified GridView object.

SetGridParams ( GridView gridView, String pageParam, String sortParam, String dirParam ) : void

Sets the page index, selected index, and sort expression for the specified GridView object.

SetGridParams ( GridView gridView, String pageParam, String sortParam, String dirParam, String indexParam ) : void

Sets the page index, selected index, and sort expression for the specified GridView object.

SetOnClientClick ( GridView gridView, int cellIndex, String buttonText, String script ) : void

Sets the value of the client-side onclick event handler property.

SetOnInserting ( FormView formView, String names, Object values ) : void

Sets the values to insert using the specified names and values.

SetOnUpdating ( FormView formView, String names, Object values ) : void

Sets the values to update using the specified names and values.

SetPageIndex ( GridView gridView, String parameterName ) : void

Sets the index of the currently displayed page.

SetSelectedIndex ( GridView gridView, String parameterName ) : void

Sets the index of the selected row.

SetSortExpression ( GridView gridView, String sortParameterName, String dirParameterName ) : void

Sorts the GridView control based on the specified sort expression and direction.

SetValue ( Control control, Object value ) : void

Sets the value of the default property.

SetValue ( Control control, String propertyName, Object value ) : void

Sets the value of the property with the specified name.

SetValues ( IOrderedDictionary list, String names, Object values ) : void

Adds elements to the collection having the specified names and values.

ValidateSessionParam ( String parameterName, String url ) : void

Validates that the value held in the current HttpSessionState object is not null; otherwise redirects the client to a new URL.

Private Methods

Method Description
DeserializeGridViewSearchPanelState ( string serializedString ) : GridViewSearchPanelState

Deserializes the grid view search panel state.

GetUniqueGridViewName ( GridView gridView ) : string

Gets the unique name of the grid view.

SerializeGridViewSearchPanelState ( GridViewSearchPanelState controlState ) : string

Serializes the grid view search panel state.

Method Details

BindControl() public static method

Binds a controls value to a property of an entity.
public static BindControl ( Control control, IOrderedDictionary list, String propertyName ) : void
control System.Web.UI.Control The control to get the value from.
list IOrderedDictionary The containing the values.
propertyName String The name of the property to bind the value to.
return void

BindControl() public static method

Binds a controls value to a property of an entity.
public static BindControl ( FormView formView, IOrderedDictionary list, string propertyName, string controlId ) : void
formView System.Web.UI.WebControls.FormView A object.
list IOrderedDictionary The containing the values.
propertyName string The name of the property to bind the value to.
controlId string The id of the control to get the value from.
return void

BindOnInserting() public static method

Binds a property's value to a FormView child control when the FormView is inserting.
public static BindOnInserting ( FormView formView, string propertyName, string controlId ) : void
formView System.Web.UI.WebControls.FormView A object.
propertyName string The name of the property to bind the value to.
controlId string The id of child control that contains the desired value.
return void

BindOnInsertingUpdating() public static method

Binds a property's value to a FormView child control when the FormView is inserting or updating.
public static BindOnInsertingUpdating ( FormView formView, string propertyName, string controlId ) : void
formView System.Web.UI.WebControls.FormView A object.
propertyName string The name of the property to bind the value to.
controlId string The id of child control that contains the desired value.
return void

BindOnUpdating() public static method

Binds a property's value to a FormView child control when the FormView is updating.
public static BindOnUpdating ( FormView formView, string propertyName, string controlId ) : void
formView System.Web.UI.WebControls.FormView A object.
propertyName string The name of the property to bind the value to.
controlId string The id of child control that contains the desired value.
return void

FindControl() public static method

Searches the specified control for a server control with the specified id parameter values.
public static FindControl ( Control control ) : Control
control System.Web.UI.Control The at which to begin the search.
return System.Web.UI.Control

FindControls() public static method

Searches the specified control for a server control with the specified id parameter.
public static FindControls ( Control control, String controlId ) : IList
control System.Web.UI.Control The at which to begin the search.
controlId String The id parameter value.
return IList

GetClientID() public static method

Gets the value of the ClientID property.
public static GetClientID ( Control container, String controlId, String propertyName ) : String
container System.Web.UI.Control The control's parent control or NamingContainer.
controlId String The control's ID property value.
propertyName String The property name.
return String

GetControlCache() public static method

Gets a collection of controls that acts as a cache for Control object collections returned by the GetControls method.
public static GetControlCache ( System page ) : IList>.IDictionary
page System The current System.Web.UI.Page object.
return IList>.IDictionary

GetControls() public static method

Gets a collection of controls contained within the specified System.Web.UI.Page object that have the specified ID property value.
public static GetControls ( System page, String controlId ) : IList
page System The current System.Web.UI.Page object.
controlId String The control's ID property value.
return IList

GetDefaultPropertyName() public static method

Gets the name of the default property, if defined.
public static GetDefaultPropertyName ( Object o ) : String
o Object An object instance.
return String

GetDefaultPropertyName() public static method

Gets the name of the default property, if defined.
public static GetDefaultPropertyName ( Type type ) : String
type System.Type A System.Type to query for the name of the default property.
return String

GetGridViewSearchPanelState() public static method

Gets the GridViewSearchPanel State from the cookie
public static GetGridViewSearchPanelState ( string controlStateName, PersistenceMethod persistenceMethod ) : GridViewSearchPanelState
controlStateName string Name of the control state.
persistenceMethod PersistenceMethod The persistent method.
return GridViewSearchPanelState

GetRedirectUrl() public static method

Gets the current page url with query parameters and values indicating the current state of the GridView object.
public static GetRedirectUrl ( GridView gridView ) : String
gridView System.Web.UI.WebControls.GridView A object.
return String

GetRedirectUrl() public static method

Formats the specified url with query parameters and values indicating the current state of the GridView object.
public static GetRedirectUrl ( GridView gridView, String url ) : String
gridView System.Web.UI.WebControls.GridView A object.
url String The url value to format.
return String

GetValue() public static method

Gets the value of the default property.
public static GetValue ( Control control ) : Object
control System.Web.UI.Control A object.
return Object

GetValue() public static method

Gets the value of the property with the specified name.
public static GetValue ( Control control, String propertyName ) : Object
control System.Web.UI.Control A object.
propertyName String The property name.
return Object

HandleGridViewSearchPanelState() public static method

Handles the state of the GridViewSearchPanel
public static HandleGridViewSearchPanelState ( GridViewSearchPanel searchPanel ) : void
searchPanel GridViewSearchPanel The search panel.
return void

HandleGridViewSearchPanelState() public static method

Handles the state of the GridViewSearchPanel
public static HandleGridViewSearchPanelState ( GridViewSearchPanel searchPanel, System.DateTime persistentCookieExpiryDateTime ) : void
searchPanel GridViewSearchPanel The search panel.
persistentCookieExpiryDateTime System.DateTime The date and time the persistent cookie expires.
return void

HandleGridViewSearchPanelState() public static method

Handles the state of the GridViewSearchPanel
public static HandleGridViewSearchPanelState ( GridViewSearchPanel searchPanel, GridView gridView, PersistenceMethod persistenceMethod, System.DateTime persistentCookieExpiryDateTime ) : void
searchPanel GridViewSearchPanel The search panel.
gridView System.Web.UI.WebControls.GridView The grid view.
persistenceMethod PersistenceMethod The persistence method
persistentCookieExpiryDateTime System.DateTime The date and time the persistent cookie expires
return void

HandleGridViewSearchPanelState() public static method

Handles the state of the GridViewSearchPanel
public static HandleGridViewSearchPanelState ( GridViewSearchPanel searchPanel, PersistenceMethod persistenceMethod ) : void
searchPanel GridViewSearchPanel The search panel.
persistenceMethod PersistenceMethod The persistence method.
return void

HasValue() public static method

Gets a value indicating whether the specified control contains a value which is neither null nor empty.
public static HasValue ( Control control ) : bool
control System.Web.UI.Control A object.
return bool

HasValue() public static method

Gets a value indicating whether the specified control contains a value which is neither null nor empty.
public static HasValue ( Control parent, String controlId ) : bool
parent System.Web.UI.Control The 's parent control or NamingContainer.
controlId String The 's ID property value.
return bool

HideButton() public static method

Hides the Button control with the specified ID.
public static HideButton ( Control parent, String buttonId ) : void
parent System.Web.UI.Control The control's parent control or NamingContainer.
buttonId String The control's ID property value.
return void

InitPassword() public static method

Initializes a password TextBox control with the current value.
public static InitPassword ( FormView formView, String controlId, ILinkedDataSource dataSource, String propertyName ) : void
formView FormView A object.
controlId String The control's ID property value.
dataSource ILinkedDataSource The associated object.
propertyName String The property name that the is bound to.
return void

InitPassword() public static method

Initializes a password TextBox control with the current value.
public static InitPassword ( TextBox control, String password ) : void
control TextBox A control.
password String The current password value.
return void

LoadBindableTemplate() public static method

Loads an instance of an IBindableTemplate from the specified path.
Adapted from an article written by James Crowley, which can be found at: http://www.developerfusion.co.uk/show/4721/
public static LoadBindableTemplate ( TemplateControl control, String path ) : IBindableTemplate
control TemplateControl The TemplateControl which will perform the load.
path String The path to the template to load.
return IBindableTemplate

Redirect() public static method

Redirects a client to a new URL which contains query parameters and values indicating the current state of the GridView object.
public static Redirect ( GridView gridView, String url ) : void
gridView GridView A object.
url String The target location.
return void

Redirect() public static method

Redirects a client to a new URL which contains query parameters and values indicating the current state of the GridView object.
public static Redirect ( GridView gridView, String url, Exception exception ) : void
gridView GridView A object.
url String The target location.
exception Exception The System.Exception thrown, if any.
return void

Redirect() public static method

Redirects a client to a new URL.
public static Redirect ( String url ) : void
url String The target location.
return void

Redirect() public static method

Redirects a client to a new URL.
public static Redirect ( String url, Exception exception ) : void
url String The target location.
exception Exception The System.Exception thrown, if any.
return void

Redirect() public static method

Redirects a client to a new URL and provides the currently selected EntityId from the specified ILinkedDataSource object.
public static Redirect ( String url, ILinkedDataSource dataSource ) : void
url String The target location.
dataSource ILinkedDataSource An object.
return void

Redirect() public static method

Redirects a client to a new URL and provides the currently selected EntityId from the specified ILinkedDataSource object; This method only redirects if the specified exception is null.
public static Redirect ( String url, ILinkedDataSource dataSource, Exception exception ) : void
url String The target location.
dataSource ILinkedDataSource An object.
exception Exception The System.Exception that was thrown, if any.
return void

RedirectAfterAddNew() public static method

Redirects the client to a new URL after the ItemCommand event of the FormView object has been raised with a CommandName of "New".
public static RedirectAfterAddNew ( FormView formView, String url ) : void
formView FormView A object.
url String The target location.
return void

RedirectAfterCancel() public static method

Redirects the client to a new URL after the ItemCommand event of the DetailsView object has been raised with a CommandName of "Cancel".
public static RedirectAfterCancel ( DetailsView view, String url ) : void
view DetailsView A object.
url String The target location.
return void

RedirectAfterCancel() public static method

Redirects the client to a new URL after the ItemCommand event of the DetailsView object has been raised with a CommandName of "Cancel".
public static RedirectAfterCancel ( DetailsView view, String url, ILinkedDataSource dataSource ) : void
view DetailsView A object.
url String The target location.
dataSource ILinkedDataSource The associated object.
return void

RedirectAfterCancel() public static method

Redirects the client to a new URL after the ItemCommand event of the FormView object has been raised with a CommandName of "Cancel".
public static RedirectAfterCancel ( FormView formView, String url ) : void
formView FormView A object.
url String The target location.
return void

RedirectAfterCancel() public static method

Redirects the client to a new URL after the ItemCommand event of the FormView object has been raised with a CommandName of "Cancel".
public static RedirectAfterCancel ( FormView formView, String url, ILinkedDataSource dataSource ) : void
formView FormView A object.
url String The target location.
dataSource ILinkedDataSource The associated object.
return void

RedirectAfterCancel() public static method

Redirects a client to a new URL which contains query parameters and values indicating the current state of the GridView object after the RowCancelingEdit event has been raised.
public static RedirectAfterCancel ( GridView gridView, String url ) : void
gridView GridView A object.
url String The target location.
return void

RedirectAfterDelete() public static method

Redirects the client to a new URL after the ItemDeleted event of the FormView object has been raised.
public static RedirectAfterDelete ( FormView formView, GridView gridView, String url ) : void
formView FormView A object.
gridView GridView A object.
url String The target location.
return void

RedirectAfterDelete() public static method

Redirects the client to a new URL after the ItemDeleted event of the FormView object has been raised.
public static RedirectAfterDelete ( FormView formView, String url ) : void
formView FormView A object.
url String The target location.
return void

RedirectAfterDelete() public static method

Redirects the client to a new URL after the ItemDeleted event of the FormView object has been raised.
public static RedirectAfterDelete ( FormView formView, String url, ILinkedDataSource dataSource ) : void
formView FormView A object.
url String The target location.
dataSource ILinkedDataSource The associated object.
return void

RedirectAfterDelete() public static method

Redirects a client to a new URL which contains query parameters and values indicating the current state of the GridView object after the RowDeleted event has been raised.
public static RedirectAfterDelete ( GridView gridView, String url ) : void
gridView GridView A object.
url String The target location.
return void

RedirectAfterInsert() public static method

Redirects the client to a new URL after the ItemInserted event of the DetailsView object has been raised.
public static RedirectAfterInsert ( DetailsView view, GridView grid, String url ) : void
view DetailsView A object.
grid GridView A object.
url String The target location.
return void

RedirectAfterInsert() public static method

Redirects the client to a new URL after the ItemInserted event of the DetailsView object has been raised.
public static RedirectAfterInsert ( DetailsView view, String url ) : void
view DetailsView A object.
url String The target location.
return void

RedirectAfterInsert() public static method

Redirects the client to a new URL after the ItemInserted event of the DetailsView object has been raised.
public static RedirectAfterInsert ( DetailsView view, String url, ILinkedDataSource dataSource ) : void
view DetailsView A object.
url String The target location.
dataSource ILinkedDataSource The associated object.
return void

RedirectAfterInsert() public static method

Redirects the client to a new URL after the ItemInserted event of the FormView object has been raised.
public static RedirectAfterInsert ( FormView formView, GridView gridView, String url ) : void
formView FormView A object.
gridView GridView A object.
url String The target location.
return void

RedirectAfterInsert() public static method

Redirects the client to a new URL after the ItemInserted event of the FormView object has been raised.
public static RedirectAfterInsert ( FormView formView, String url ) : void
formView FormView A object.
url String The target location.
return void

RedirectAfterInsert() public static method

Redirects the client to a new URL after the ItemInserted event of the FormView object has been raised.
public static RedirectAfterInsert ( FormView formView, String url, ILinkedDataSource dataSource ) : void
formView FormView A object.
url String The target location.
dataSource ILinkedDataSource The associated object.
return void

RedirectAfterInsertCancel() public static method

Redirects the client to a new URL after the ItemInserted event of the DetailsView has been raised or after the ItemCommand event of the DetailsView object has been raised with a CommandName of "Cancel".
public static RedirectAfterInsertCancel ( DetailsView view, GridView grid, String url ) : void
view DetailsView A object.
grid GridView A object.
url String The target location.
return void

RedirectAfterInsertCancel() public static method

Redirects the client to a new URL after the ItemInserted event of the DetailsView has been raised or after the ItemCommand event of the DetailsView object has been raised with a CommandName of "Cancel".
public static RedirectAfterInsertCancel ( DetailsView view, String url ) : void
view DetailsView A object.
url String The target location.
return void

RedirectAfterInsertCancel() public static method

Redirects the client to a new URL after the ItemInserted event of the DetailsView has been raised or after the ItemCommand event of the DetailsView object has been raised with a CommandName of "Cancel".
public static RedirectAfterInsertCancel ( DetailsView view, String url, ILinkedDataSource dataSource ) : void
view DetailsView A object.
url String The target location.
dataSource ILinkedDataSource The associated object.
return void

RedirectAfterInsertCancel() public static method

Redirect the client to a new URL after an insert or cancel operation.
public static RedirectAfterInsertCancel ( FormView formView, String url ) : void
formView FormView A object.
url String The target location.
return void

RedirectAfterInsertCancel() public static method

Redirect the client to a new URL after an insert or cancel operation.
public static RedirectAfterInsertCancel ( FormView formView, String url, ILinkedDataSource dataSource ) : void
formView FormView A object.
url String The target location.
dataSource ILinkedDataSource The associated object.
return void

RedirectAfterInsertUpdate() public static method

Redirect the client to a new URL after an insert or update operation.
public static RedirectAfterInsertUpdate ( FormView formView, String url ) : void
formView FormView A object.
url String The target location.
return void

RedirectAfterInsertUpdate() public static method

Redirect the client to a new URL after an insert or update operation.
public static RedirectAfterInsertUpdate ( FormView formView, String url, ILinkedDataSource dataSource ) : void
formView FormView A object.
url String The target location.
dataSource ILinkedDataSource The associated object.
return void

RedirectAfterInsertUpdateCancel() public static method

Redirects the client to a new URL after the ItemInserted or ItemUpdated event of the DetailsView has been raised or after the ItemCommand event of the DetailsView object has been raised with a CommandName of "Cancel".
public static RedirectAfterInsertUpdateCancel ( DetailsView view, String url ) : void
view DetailsView A object.
url String The target location.
return void

RedirectAfterInsertUpdateCancel() public static method

Redirects the client to a new URL after the ItemInserted or ItemUpdated event of the DetailsView has been raised or after the ItemCommand event of the DetailsView object has been raised with a CommandName of "Cancel".
public static RedirectAfterInsertUpdateCancel ( DetailsView view, String url, ILinkedDataSource dataSource ) : void
view DetailsView A object.
url String The target location.
dataSource ILinkedDataSource The associated object.
return void

RedirectAfterInsertUpdateCancel() public static method

Redirect the client to a new URL after an insert, update, or cancel operation.
public static RedirectAfterInsertUpdateCancel ( FormView formView, String url, ILinkedDataSource dataSource ) : void
formView FormView A object.
url String The target location.
dataSource ILinkedDataSource The associated object.
return void

RedirectAfterUpdate() public static method

Redirects the client to a new URL after the ItemUpdated event of the DetailsView object has been raised.
public static RedirectAfterUpdate ( DetailsView view, GridView grid, String url ) : void
view DetailsView A object.
grid GridView A object.
url String The target location.
return void

RedirectAfterUpdate() public static method

Redirects the client to a new URL after the ItemUpdated event of the DetailsView object has been raised.
public static RedirectAfterUpdate ( DetailsView view, String url ) : void
view DetailsView A object.
url String The target location.
return void

RedirectAfterUpdate() public static method

Redirects the client to a new URL after the ItemUpdated event of the DetailsView object has been raised.
public static RedirectAfterUpdate ( DetailsView view, String url, ILinkedDataSource dataSource ) : void
view DetailsView A object.
url String The target location.
dataSource ILinkedDataSource The associated object.
return void

RedirectAfterUpdate() public static method

Redirects the client to a new URL after the ItemUpdated event of the FormView object has been raised.
public static RedirectAfterUpdate ( FormView formView, String url ) : void
formView FormView A object.
url String The target location.
return void

RedirectAfterUpdate() public static method

Redirects the client to a new URL after the ItemUpdated event of the FormView object has been raised.
public static RedirectAfterUpdate ( FormView formView, String url, ILinkedDataSource dataSource ) : void
formView FormView A object.
url String The target location.
dataSource ILinkedDataSource The associated object.
return void

RedirectAfterUpdate() public static method

Redirects a client to a new URL which contains query parameters and values indicating the current state of the GridView object after the RowUpdated event has been raised.
public static RedirectAfterUpdate ( GridView gridView, String url ) : void
gridView GridView A object.
url String The target location.
return void

RedirectAfterUpdateCancel() public static method

Redirects the client to a new URL after the ItemUpdated event of the DetailsView has been raised or after the ItemCommand event of the DetailsView object has been raised with a CommandName of "Cancel".
public static RedirectAfterUpdateCancel ( DetailsView view, GridView grid, String url ) : void
view DetailsView A object.
grid GridView A object.
url String The target location.
return void

RedirectAfterUpdateCancel() public static method

Redirects the client to a new URL after the ItemUpdated event of the DetailsView has been raised or after the ItemCommand event of the DetailsView object has been raised with a CommandName of "Cancel".
public static RedirectAfterUpdateCancel ( DetailsView view, String url ) : void
view DetailsView A object.
url String The target location.
return void

RedirectAfterUpdateCancel() public static method

Redirects the client to a new URL after the ItemUpdated event of the DetailsView has been raised or after the ItemCommand event of the DetailsView object has been raised with a CommandName of "Cancel".
public static RedirectAfterUpdateCancel ( DetailsView view, String url, ILinkedDataSource dataSource ) : void
view DetailsView A object.
url String The target location.
dataSource ILinkedDataSource The associated object.
return void

RedirectAfterUpdateCancel() public static method

Redirect the client to a new URL after an update or cancel operation.
public static RedirectAfterUpdateCancel ( FormView formView, String url ) : void
formView FormView A object.
url String The target location.
return void

RedirectAfterUpdateCancel() public static method

Redirect the client to a new URL after an update or cancel operation.
public static RedirectAfterUpdateCancel ( FormView formView, String url, ILinkedDataSource dataSource ) : void
formView FormView A object.
url String The target location.
dataSource ILinkedDataSource The associated object.
return void

RedirectAfterUpdateDeleteCancel() public static method

Redirects a client to a new URL which contains query parameters and values indicating the current state of the GridView object after the RowUpdated, RowDeleted, or RowCancelingEdit events have been raised.
public static RedirectAfterUpdateDeleteCancel ( GridView gridView, String url ) : void
gridView GridView A object.
url String The target location.
return void

SaveGridViewSearchPanelState() public static method

Saves the GridViewSearchPanel State.
public static SaveGridViewSearchPanelState ( GridViewSearchPanelState controlState, string controlStateName, PersistenceMethod persistenceMethod, DateTime persistentCookieExpiryDateTime ) : void
controlState GridViewSearchPanelState State of the control.
controlStateName string Name of the control state.
persistenceMethod PersistenceMethod The persistent method.
persistentCookieExpiryDateTime DateTime The persistent cookie expiry datetime.
return void

SaveRequestParameter() public static method

Saves a HttpRequest parameter value into the current HttpSessionState object.
public static SaveRequestParameter ( String requestParameterName, String sessionParameterName ) : void
requestParameterName String The parameter name.
sessionParameterName String The parameter name.
return void

SetDefaultButton() public static method

Sets the default button.
public static SetDefaultButton ( System button ) : void
button System The button.
return void

SetDefaultButtonAndFocus() public static method

Sets the default button and focus.
public static SetDefaultButtonAndFocus ( System button, System control ) : void
button System The button.
control System The control.
return void

SetDefaultFocus() public static method

Sets the default focus.
public static SetDefaultFocus ( System control ) : void
control System The control.
return void

SetDefaultMode() public static method

Sets the data-entry mode of the specified FormView object based on whether or not the HttpRequest parameter value is null.
public static SetDefaultMode ( FormView formView, String requestParameterName ) : void
formView FormView A object.
requestParameterName String The parameter name.
return void

SetDefaultValue() public static method

Sets the default value of the control with the specified id parameter when the FormView is in Insert mode.
public static SetDefaultValue ( FormView formView, String controlID, String value ) : void
formView FormView The form view.
controlID String The control ID.
value String The value.
return void

SetGridParams() public static method

Sets the page index, selected index, and sort expression for the specified GridView object.
public static SetGridParams ( GridView gridView ) : void
gridView GridView A object.
return void

SetGridParams() public static method

Sets the page index, selected index, and sort expression for the specified GridView object.
public static SetGridParams ( GridView gridView, String pageParam, String sortParam, String dirParam ) : void
gridView GridView A object.
pageParam String The parameter name for the page index.
sortParam String The parameter name for the sort expression.
dirParam String The parameter name for the sort direction.
return void

SetGridParams() public static method

Sets the page index, selected index, and sort expression for the specified GridView object.
public static SetGridParams ( GridView gridView, String pageParam, String sortParam, String dirParam, String indexParam ) : void
gridView GridView A object.
pageParam String The parameter name for the page index.
sortParam String The parameter name for the sort expression.
dirParam String The parameter name for the sort direction.
indexParam String The parameter name for the selected index.
return void

SetOnClientClick() public static method

Sets the value of the client-side onclick event handler property.
public static SetOnClientClick ( GridView gridView, int cellIndex, String buttonText, String script ) : void
gridView GridView A object.
cellIndex int The zero-based column index.
buttonText String The control's Text property value.
script String The client-side event handler script.
return void

SetOnInserting() public static method

Sets the values to insert using the specified names and values.
public static SetOnInserting ( FormView formView, String names, Object values ) : void
formView FormView A object.
names String The property names.
values Object The property values.
return void

SetOnUpdating() public static method

Sets the values to update using the specified names and values.
public static SetOnUpdating ( FormView formView, String names, Object values ) : void
formView FormView A object.
names String The property names.
values Object The property values.
return void

SetPageIndex() public static method

Sets the index of the currently displayed page.
public static SetPageIndex ( GridView gridView, String parameterName ) : void
gridView GridView A object.
parameterName String The parameter name.
return void

SetSelectedIndex() public static method

Sets the index of the selected row.
public static SetSelectedIndex ( GridView gridView, String parameterName ) : void
gridView GridView A object.
parameterName String The parameter name.
return void

SetSortExpression() public static method

Sorts the GridView control based on the specified sort expression and direction.
public static SetSortExpression ( GridView gridView, String sortParameterName, String dirParameterName ) : void
gridView GridView A object.
sortParameterName String The parameter name for the sort expression.
dirParameterName String The parameter name for the sort direction.
return void

SetValue() public static method

Sets the value of the default property.
public static SetValue ( Control control, Object value ) : void
control Control A object.
value Object The property value.
return void

SetValue() public static method

Sets the value of the property with the specified name.
public static SetValue ( Control control, String propertyName, Object value ) : void
control Control A object.
propertyName String The property name.
value Object The property value.
return void

SetValues() public static method

Adds elements to the collection having the specified names and values.
public static SetValues ( IOrderedDictionary list, String names, Object values ) : void
list IOrderedDictionary A collection of name/value pairs.
names String The property names.
values Object The property values.
return void

ValidateSessionParam() public static method

Validates that the value held in the current HttpSessionState object is not null; otherwise redirects the client to a new URL.
public static ValidateSessionParam ( String parameterName, String url ) : void
parameterName String The parameter name.
url String The target location.
return void