Hi pratikshir,
Add the below line of code to html page head section.
<script src="https://rawgithub.com/fabien-d/alertify.js/0.3.10/src/alertify.js" type="text/javascript"></script>
<link href="Script/alertify.core.css" rel="stylesheet" type="text/css" />
<link href="Script/alertify.default.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.alertify.popup1
{
background: Green;
}
.alertify.popup2
{
background: Red;
}
</style>
Then add the below to your cs page condition.
if (i > 0)
{
this.ClientScript.RegisterStartupScript(this.GetType(), "Saved", "alertify.alert('Record Saved Successfully', function() {}, 'popup1');", true);
}
else
{
this.ClientScript.RegisterStartupScript(this.GetType(), "Not Saved", "alertify.alert('Record Not Saved Successfully', function() {}, 'popup2');", true);
}