ThinkGeo.com    |     Documentation    |     Premium Support

NotSupportedException error shape

in client side i want edit shapefile 



ShapeFileFeatureLayer statesLayer = new
ShapeFileFeatureLayer("test.shp",
ShapeFileReadWriteMode.ReadWrite);

            
((ShapeFileFeatureSource)statesLayer.FeatureSource).StreamLoading += new
EventHandler<streamloadingeventargs>(StatesLoadAShapeFile_StreamLoading);

          
  feature.ColumnValues.Add("id", "1");

            
feature.ColumnValues.Add("name",
"test");

            
statesLayer.Open();

            
statesLayer.FeatureSource.BeginTransaction();

            
statesLayer.FeatureSource.AddFeature(feature);

            
TransactionResult tr = statesLayer.FeatureSource.CommitTransaction();    throw Exception  System.NotSupportedException
?

             statesLayer.Close();  </streamloadingeventargs>

can client side edit shapefile ?

Hi Zhang, 
  
 We are sorry to say the SilverLight Edition don’t support that feature as we can’t save the modifications back from client to the shape file in the server side. 
  
 Thanks, 
 Johnny

 Hello Johnny


   Thanks for your reply



Zhang, 
  
 You are welcome. 
 Sorry for any inconvenience. 
  
 Regards, 
 Johnny