Common_CustomControls_VBNet\CustomControlsWebSite\WebUserControl.ascx.vb
' Copyright 2010 ESRI ' ' All rights reserved under the copyright laws of the United States ' and applicable international laws, treaties, and conventions. ' ' You may freely redistribute and use this sample code, with or ' without modification, provided you include the original copyright ' notice and use restrictions. ' ' See the use restrictions. ' Imports Microsoft.VisualBasic Imports System Imports System.Data Imports System.Configuration Imports System.Collections Imports System.Web Imports System.Web.Security Imports System.Web.UI Imports System.Web.UI.WebControls Imports System.Web.UI.WebControls.WebParts Imports System.Web.UI.HtmlControls Public Partial Class WebUserControl Inherits System.Web.UI.UserControl Protected Overrides Sub OnInit(ByVal e As EventArgs) MyBase.OnInit(e) ' Buddy the Map, MapResourceManager, Toc, and Toolbar Map1.MapResourceManager = Me.MapResourceManager1.UniqueID Toolbar1.BuddyControls.Add(New ESRI.ArcGIS.ADF.Web.UI.WebControls.BuddyControl(Map1.UniqueID)) Toc1.BuddyControl = Map1.UniqueID End Sub End Class