[mapguide-users] cannot insert feature,give a favor
knife
ldk114 at gmail.com
Sun Sep 16 21:32:44 EDT 2007
private void set_ResourceWriteAble(MgResourceIdentifier resoureId,
MgResourceService resourceService)
{
//-----------------------------------------------------------------------------
String buffer;
MgByteReader reader = resourceService.GetResourceContent(resoureId);
buffer = reader.ToString();
if (buffer.Contains("<Value>TRUE</Value>"))
{
buffer = buffer.Replace("<Value>TRUE</Value>",
"<Value>FALSE</Value>");
Byte[] buf_Byte = System.Text.Encoding.Default.GetBytes(buffer);
MgByteSource byteSource = new MgByteSource(buf_Byte,
buf_Byte.Length);
resourceService.SetResource(resoureId, byteSource.GetReader(),
null);
}
//-----------------------------------------------------------------------------
}
--
View this message in context: http://www.nabble.com/cannot-insert-feature%2Cgive-a-favor-tf4227545s16610.html#a12728107
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list