Im using VS 2005 for web application.Im using message boxes but they are not working.i dont know what's the problem with my code.
if (drff.Read())
{
Button_Assign.Attributes.Add("onclick", "javscript:alert('Data saved successfully.')");
}
/*else
{
//Button_Assign.Attributes.Add("onclick", "javscript:alert('Data not saved.')");
}
my data is saved successfully but im not getting the alert.same is the case with cancel/exit button.Please help me.