Search This Blog

Tuesday, April 19, 2011

Call Java Script function on cs page

<script language="javascript" type="text/javascript">
function ConfirmDeletion()
{
return confirm('Are you sure you want to delete this record?');
}
</script>


if (e.Row.RowType == DataControlRowType.DataRow)
        {
            e.Row.Cells[7].Attributes.Add("onclick", "return ConfirmDeletion();");
        }

1 comment :

Anonymous said...

I want change of row color on mouse over. I need there should be a default row color then I want to change ths on mouse over. How to do that.?