var message = "<script type=text/javascript>alert('At least 1 image is required');</script>";
System.Web.UI.ClientScriptManager clientScriptManager = Page.ClientScript;
clientScriptManager.RegisterStartupScript(this.GetType(), "Message", message);
System.Web.UI.ClientScriptManager clientScriptManager = Page.ClientScript;
clientScriptManager.RegisterStartupScript(this.GetType(), "Message", message);