i am trying to add a dynamic map service layer, and zoom to that layer, but the full-extent of the layer it is always null...
ArcGISDynamicMapServiceLayer mylayer = new ArcGISDynamicMapServiceLayer();
mylayer.DisableClientCaching = true;//recommended
mylayer.Url = DynamicUrl ;
mylayer.ID = "CURRENTLAYER";
int totlayers = this.MyMap1.Layers.Count;
this.MyMap1.Layers.Insert(totlayers, mylayer);
Envelope anenv = mylayer.FullExtent;
MyMap1.ZoomTo(anenv);
//anenv is always null
how do i handle that?
thanks a lot