PROBLEM IN DISPLAYING ALERT BOX IN ASP.NET

yash Singh

Total Post:15

Points:105
Posted by  yash Singh
 1775  View(s)
Ratings:
Rate this:
how we show the alert box in code behind of asp.net

  1. Amit Singh

    Post:103

    Points:721
    Re: Problem in displaying alert box in asp.net

    we display the alert box in asp.net by using Registerscript function.
    Example:
    Syntax:
    Void ClientScriptManager.RegisterStartupScript(Type type,string key, string script)

    Example:
    Page.ClientScript.RegisterStartupScript(GetType(), @"startup", @"<script>alert('" + Hello + "');</script>");
           

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!