Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

SPUtility.GetSelectedDate method

Retrieves the CalendarDate parameter value from the request context.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedExternalType)]
public static string GetSelectedDate(
	HttpRequest request,
	SPWeb web
)

Parameters

request
Type: System.Web.HttpRequest

An object that represents the request context.

web
Type: Microsoft.SharePoint.SPWeb

An object that represents the SharePoint Foundation Web site with which the request context is associated.

Return value

Type: System.String
The CalendarDate parameter value from the request context.

The value returned is the CalendarDate parameter from the collection of form variables. If there is no CalendarDate parameter in the form collection, the method returns the CalendarDate parameter from the query string.If neither of these values exists, the method returns a null reference (Nothing in Visual Basic).

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.