Monday, August 18, 2008

SCRIPTSTER. East Java Baker: GridView Delete, with Confirmation

SCRIPTSTER. East Java Baker: GridView Delete, with Confirmation: "protected void GridView1_RowDataBound object sender,

GridViewRowEventArgs e

{

if e.Row.RowType DataControlRowType.DataRow

{

LinkButton l LinkButton e.Row.FindControl LinkButton1 ;

l.Attributes.Add onclick , javascript return +

CONFIRM Are you sure you want to delete this record +

DataBinder.Eval e.Row.DataItem, CategoryID + ;

}

}"