Dynamicweb 8 Documentation
RequestContext Method

Name of the value in the request collection
Gets the value of Name in HTTP query string or post variables. Instead of using Request.QueryString or Request.Form. INFO: Calling this function is context sensitive to the paragraph the module is attached to. That means it will only return a value if PID=123 equals the ParagraphID of the paragraph currently attaching the module or if PID is not specified. This is usefull when the same module is attached several times on the same page and you want different states of the modules on each paragraph. I.e. adding a querystring variable PageNum=2 would cause 2 instances of the module on the same page to change to page 2 when using normal request. If changed to PID=123&PageNum=2 and using RequestContext would make only one of the instances go to page 2.
Syntax
'Declaration
 
Public Function RequestContext( _ 
   ByVal name As String _ 
) As String
public string RequestContext( 
   string name 
)

Parameters

name
Name of the value in the request collection

Return Value

The value of the specified key
Remarks
By default the return value has been SQL Escaped (Database.SQLEscapeInjection)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ContentModule Class
ContentModule Members

Send Feedback