I want to display messagebox asp page while clicking on some controls...how can i get this?

You can try this function.

public static void Message(String message, Control cntrl)
 {
    ScriptManager.RegisterStartupScript(cntrl, cntrl.GetType(), "alert", "alert('" + message + "');", true);
 }
//NOW FROM YOUR CLICK EVENT YOU CAN DO THIS
protected void ClickEvent(Object sender, EventArgs e)
{
   Message("This is my message", this);
}

regards

you can call the javascript alert() funtion to show the message box in asp

You can also try the ajaxcontroltoolkit for alert boxes

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.