Select to view content in your preferred language

Problem with Featured Layer while using Secure Services

592
1
09-20-2010 12:29 PM
AkheelAhmed
New Contributor
Hi

Can someone tell me how to define featured layer while using secure services

if im using Dynamic Layer

I would use

<esri:ArcGISDynamicMapServiceLayer ID="StreetMapLayer"
                      Url="http://myserver/ArcGIS/rest/services/name/MapServer"  ProxyURL="../proxy.ashx"/>


For Featured Layer - how to use secure service


Standard way is this

  <esri:FeatureLayer ID="ID2"
                    Url="http://name/ArcGIS/rest/services/name/MapServer/0"
                    Where="Query > 0" Color="Orange" >
                </esri:FeatureLayer>

but this is not fetching my any layer?

I'm missing something??
0 Kudos
1 Reply
PaulLeedham
Deactivated User
Use the same proxy URL or submit the token value when defining your layer, for example:
<esri:FeatureLayer ID="ID2"
Url="http://name/ArcGIS/rest/services/name/MapServer/0"
Where="Query > 0" Color="Orange"
ProxyURL="../proxy.ashx"
</esri:FeatureLayer>

Thanks,
0 Kudos