I need to disable refresh in a GridView when a particular row is selected as it is refreshing the whole page as I have bing map reloaded everytime.
I have tried
function showKeyCode(e)
{
var keycode = (window.event) ? event.keyCode : e.keyCode;
if (keycode == 116) {
event.keyCode = 0;
event.returnValue = false;
return false;
}
or
OnClientClick = "javascript:return false;"
but it does not help. Can you please guide me in this?
When you say “when a particular row is selected”, do you mean you click on a “Select” link in a column or something similar?
I think you should tell more about your GridView to know why there is a page
postback.EDIT: Here’s a sample (Checkout the ScriptManager and UpdatePanel)
Hope this helps