SPMobileRefreshNavigation.ControlForRefresh Property
Gets or sets the ID of the control that specifies the current view of the list, so that the same view can be used when the page reloads.
Namespace: Microsoft.SharePoint.MobileControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Property ControlForRefresh As String
Get
Set
'Usage
Dim instance As SPMobileRefreshNavigation
Dim value As String
value = instance.ControlForRefresh
instance.ControlForRefresh = value
public string ControlForRefresh { get; set; }
Property Value
Type: System.String
A String that is identical to the ID property of the control, usually SPMobileListViewIterator, that specifies which view of the list is being used.
Remarks
You must set the property to a non-null value or an exception is thrown when the user clicks Refresh.
If there is no control on the page that specifies the view, which is often the case if the list only has one view, do not use the SPMobileRefreshNavigation class. Instead, use the SPMobileButtonNavigation class. Set its RedirectUrl property to the page on which it appears and set its Text property to "Refresh."
See Also
Reference
SPMobileRefreshNavigation Class