there is no "SetResourceContent" 

forgive me if i m saying wrong...

MgResourceService resourceService =
siteConnection.CreateService(MgServiceType.ResourceService) as
MgResourceService;

MgByteReader byteReader = resourceService.GetResourceContent(layerDefResId);
--For getting the XML

For saving I m doing like this --->

MgResourceIdentifier layerResId = new MgResourceIdentifier("Session:" +
Session["ID"].ToString() + "//Districts.LayerDefinition");
        MgByteReader reader = new MgByteReader(layerDefinition, "text/xml");
        resourceService.SetResource(layerResId, new
MgByteReader(layerDefinition, "text/xml"), null);
map.Save(resourceService);



thanks



-- 
View this message in context: 
http://n2.nabble.com/Is-it-Possible-to-set-Feature-Label-for-a-layer-dynamically-tp4590194p4617754.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to