Hello Amod,
Thanks for your post, your code is no problem if you just want to refresh the overlay, openlayer should work well. What's the problem have you met?The map does not refresh?
But if you want to do some work in the server side just before refresh, you can use Ajax to do this job.
First, let your class inherit the ICallbackEventHandler, then implement the RaiseCallbackEvent and GetCallbackResult function.
public string GetCallbackResult()
{
return "returnvalue";
}
public void RaiseCallbackEvent(string eventArgument)
{
////do sever side processing here
}
Then in the client side you call server and pass the parameters, it will raise the RaiseCallbackEvent and return value to js function by GetCallbackResult
function test() {
callServer('parameters');
}
function callServer(param){
<%= ClientScript.GetCallbackEventReference(this, "param", "receiveServerData", null)%>;
}
function receiveServerData(columnValue){
alert(columnValue);
}
I hope this can help, if I misunderstanding something, please feel free to let us know.
Regards,
Gary