C# Class Rolcore.Web.UI.WebUtils

Web-related utilities.
Mostrar archivo Open project: Rollins/Rolcore

Public Methods

Method Description
GetFormControlNameFromPostbackName ( string formPostbackName ) : string

Given a post-back name, returns the original name of the control.

GetFormControlValueByFormControlId ( string formControlId, NameValueCollection form ) : string

Get's a control's value based on the specified ID.

VirtualPathExistsPhysically ( string virtualPath, HttpRequest request ) : bool

Determines if a virtual path exists physically.

Method Details

GetFormControlNameFromPostbackName() public static method

Given a post-back name, returns the original name of the control.
public static GetFormControlNameFromPostbackName ( string formPostbackName ) : string
formPostbackName string The post-back name of a form field.
return string

GetFormControlValueByFormControlId() public static method

Get's a control's value based on the specified ID.
public static GetFormControlValueByFormControlId ( string formControlId, NameValueCollection form ) : string
formControlId string Specifies the control ID.
form System.Collections.Specialized.NameValueCollection Specifies the submitted form values.
return string

VirtualPathExistsPhysically() public static method

Determines if a virtual path exists physically.
public static VirtualPathExistsPhysically ( string virtualPath, HttpRequest request ) : bool
virtualPath string A virtual path. For example "~/hello/world/foo.aspx".
request System.Web.HttpRequest The used to verify the virtual path's /// existance.
return bool