Hi Loren,
First of all some background information. For any server side code to be called, you will have to go back to the server, usually through a post back. So "i need to update a Database table without having to do a post back" is not possible. However post back and full page reload are two different things. Post back means to a request being send to to the server; full page reload means the new page contents is regenerated by the server, transferred to the client and reloaded by the browser. These two almost always occur together (a request sent to the server -> server regenerates page contents -> new contents sent to the client -> client browser load the new contents, AKA "roundtrip") with the exception of AJAX. When AJAX is involved, the last step (client browser load the new contents) is different. Instead of loading the full page, it loads a part of it. thus the name of "partial update". In another word, you do not try to avoid a postback, you try to avoid a "full page reload".
When it comes to the Grid, when you want to call server side code, you would do it inside your ClientSideOnItemCommand handler (the JavaScript function called by the Grid when you click the button), instead of poping up a new window with Google, you would do something like this:
Code: JavaScript
function your_itemcommand_handler(grid, itemIndex, colIndex, commandName)
{
//I assume that you were poping up window at here. You will
//need to remove that code and add the following code
grid.raiseItemCommandEvent(itemIndex, commandName);
}
raiseItemCommandEvent "raises ItemCommand event", which means:
1. It post backs the page;
2. It calls the Grid's ItemCommand event on the server side;
3. The Grid is regenerated and transfered to the client side;
4. The Browser reload the Grid;
As you can see, a full post back does occur. But this is the first step that must be taken if you need any server side code to be called. Once you are there, you can look into AJAX solutions (either Callback mode natively supported by the Grid, or CallbackPanel control, or ASP.NET AJAX) to reach your final goal.
Hope this helps.
Thanks