Dear--
Calling from client side to server side.
take one button and there onclick event and put server side function inside the click event.
function CallpageBasedonSelectFromChildPage() {
__doPostBack('<%=btn1.UniqueID %>', '');
}
Calling from server side to client side
e.Cell.Attributes.Add("onMouseOver", "javascript:ShowModalPopup('" + CS + "', '" + NC + "','" + CE + "','" + IP + "');");
e.Cell.Attributes.Add("onMouseOut", "javascript:HideModalPopup();");