Method | Description | |
---|---|---|
AddJavaScriptEventScript ( this control, string jsEventConstant, string script ) : void |
Adds the specified JavaScript to the specified event handler of the specified control. Do not pass null for script. Use JsWritingMethods constants for events. To add an onsubmit event, use ClientScript.RegisterOnSubmitStatement instead. A semicolon will be added to the end of the script.
|
|
BuildBasicLink ( string text, string url, bool navigatesInNewWindow ) : string |
Returns an anchor tag with the specified parameters. Use this only for status messages that are being built after LoadData. In all other cases, use EwfLink.
|
|
CombineUrls ( string one, string two ) : string |
Combines the given URLs into a single URL with no trailing slash.
|
|
CreateImageFromText ( string text, |
Creates an image with the given text and font and returns a response object. Text will be all on one line and will not be wider than 800 pixels or higher than 150 pixels. Do not pass null for text. Passing null for font will result in a generic Sans Serif, 10pt font.
|
|
GetCookie ( string name ) : System.Web.HttpCookie | ||
GetRelativeUrlToAscxFromType ( |
Given a type, generates a Url based on the namespace and type. Every level of the namespace up to and including the first one that ends in with the string "site" (case insensitive) is dropped. The type "MyControl" in namespace "one.two.three.MyWebSite.Stuff.MyControls" will return "Stuff/MyControls/MyControl.ascx".
|
|
GetTextAsEncodedHtml ( this text, bool returnNonBreakingSpaceIfEmpty = true ) : string |
Encodes the given text as HTML, replacing instances of \n with <br/> and optionally replacing the empty string with a non-breaking space.
|
|
LinkIsBroken ( string url ) : bool |
Gets whether a request for the specified URL returns an HTTP status code other than 200 OK.
|
|
Redirect ( string url ) : void |
Redirects to the given URL. Throws a ThreadAbortedException. NOTE: Make this internal.
|
|
SetInitialDisplay ( this control, bool visible ) : void |
Sets the initial visibility of a web control. This can be used in tandem with DisplayLinking.
|
Method | Description | |
---|---|---|
ExecuteWithResponse ( string url, Action |
||
IsWebApp ( ) : bool | ||
ToggleInitialDisplay ( this control ) : void |
Sets the initial visibility of the given control to the opposite of what it currently is.
|
|
getResponseForAnyStatusCode ( this request ) : |
Gets a response and prevents exceptions caused by HTTP status codes. From http://stackoverflow.com/a/1366869/35349.
|
|
getResponseIfPossible ( this request ) : |
public static AddJavaScriptEventScript ( this control, string jsEventConstant, string script ) : void | ||
control | this | |
jsEventConstant | string | |
script | string | |
return | void |
public static BuildBasicLink ( string text, string url, bool navigatesInNewWindow ) : string | ||
text | string | |
url | string | |
navigatesInNewWindow | bool | |
return | string |
public static CombineUrls ( string one, string two ) : string | ||
one | string | A URL, not null. |
two | string | A URL, not null. |
return | string |
public static CreateImageFromText ( string text, |
||
text | string | |
font | ||
return |
public static GetCookie ( string name ) : System.Web.HttpCookie | ||
name | string | |
return | System.Web.HttpCookie |
public static GetRelativeUrlToAscxFromType ( |
||
type | ||
return | string |
public static GetTextAsEncodedHtml ( this text, bool returnNonBreakingSpaceIfEmpty = true ) : string | ||
text | this | |
returnNonBreakingSpaceIfEmpty | bool | |
return | string |
public static LinkIsBroken ( string url ) : bool | ||
url | string | |
return | bool |
public static SetInitialDisplay ( this control, bool visible ) : void | ||
control | this | |
visible | bool | |
return | void |