Using below code , you can show the Alert Popups like in javascript. In the code you can see the use of RegisterStartupScript
Page.ClientScript.RegisterStartupScript(typeof(string), "alertScript", "alert('Username/Password is incorrect!!');", true);
Page.ClientScript.RegisterStartupScript(typeof(string), "alertScript", "alert('Username/Password is incorrect!!');", true);