thank you James,
i'm able to load tab file from server, here is my code sample in the Default.aspx.cs, i called this method in the page_load,
private void LoadTab()
{
ServerLayerOverlay layerOverlay = new ServerLayerOverlay("NativeServer");
string tabFilename = Server.MapPath("~/Tabs/") + "map1.TAB";
TabFeatureLayer serverLayer = new TabFeatureLayer(tabFilename);
serverLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = TextStyles.Capital3("name");
serverLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = new AreaStyle(new GeoPen(new GeoColor(255, 0, 0)), new GeoSolidBrush(new GeoColor(0, 255, 0)));
serverLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level10;
try
{
if (serverLayer.RequireIndex)
{
TabFeatureLayer.BuildIndexFile(tabFilename, BuildIndexMode.DoNotRebuild);
}
layerOverlay.Layers.Add(serverLayer);
}
catch (Exception exc)
{
Debug.Assert(true, exc.StackTrace);
}
SilverlightMapConnector1.ServerLayerOverlays.Add(layerOverlay);
}
but like i said before, i'm still wondering, how do we change which .TAB file is loaded in the .ASPX page from silverlight app on the client? and then i need to set the ZoomExtent to that specified .TAB file boundingbox, how can we do this?