Message Script………..2008 0r 2005
stringsIssuerBankInoutMessage = "<script type
=\"text/javascript\">alert(\"Please enter your
name\");</script> ";ClientScript.RegisterStartupScript(typeof(Page), "", sIssuerBankInoutMessage);
Message Script……….2010.
DataSet ds1 = newDataSet();
ds1.Tables.Add(dt);
long i;
i = obj.AddNewRecord(ds1);
if (i == 1)
{
ScriptManager.RegisterStartupScript(this, this.GetType(),
"Success", "alert('Your Records should be Saved !');", true);
}
else
{
ScriptManager.RegisterStartupScript(this, this.GetType(),
"Success", "alert('Your Records should be Not saved !');", true);
}
No comments:
Post a Comment