Add this function in Search Page or View All items page..

function ShowPopUp(Id)
{
$get(”).src=”AssignTool.aspx?ID=”+Id;
$find(”).show();
document.getElementById(“”).innerHTML = “Assign Tool”;
return false;
}

—————– View All Items page ———–

 

——————— view All cs page coding —————

Gridview Row DataBound Event

if (e.Row.RowType == DataControlRowType.DataRow)
{
Button btnAccept = (Button)e.Row.Cells[16].Controls[0];
btnAccept.Attributes.Add(“onclick”, “return ShowPopUpAccept(” + rowView[“AssignToolId”].ToString() + “)”);
}