ESRI.ArcGIS.ADF.Web.UI.WebControls.Layout
PageLayoutResource Property
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls.Layout Namespace > PageLayout Class : PageLayoutResource Property




Defines the server and map resource used in the page layout.

Syntax

Visual Basic (Declaration) 
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.GISPageLayoutResourceItemDefinitionEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls.Layout, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")>
<ResCategoryAttribute("Data")>
<ResDescriptionAttribute("MapResource to display in PageLayout.")>
<DefaultValueAttribute()>
<NotifyParentPropertyAttribute(True)>
Public Property PageLayoutResource As GISResourceItemDefinition
Visual Basic (Usage)Copy Code
Dim instance As PageLayout
Dim value As GISResourceItemDefinition
 
instance.PageLayoutResource = value
 
value = instance.PageLayoutResource
C# 
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.GISPageLayoutResourceItemDefinitionEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls.Layout, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")]
[ResCategoryAttribute("Data")]
[ResDescriptionAttribute("MapResource to display in PageLayout.")]
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
public GISResourceItemDefinition PageLayoutResource {get; set;}

Return Value

Resource item definition with server and map resource.

Remarks

Unlike the Map control, the PageLayout control does not use a MapResourceManager control. Instead, the resource is defined by this property.

When adding the PageLayout control in Visual Studio, set this property using the editor dialog for the resource definition, rather than attempting to enter the value manually.

The PageLayout control requires an ArcGIS Server Local data source. Also remember to set an ArcGIS Identity for the page (this adds an encrypted identity to the web.config page).

See Also

© 2010 All Rights Reserved.