I want to display messagebox asp page while clicking on some controls...how can i get this?
desired
0
Newbie Poster
Recommended Answers
Jump to PostYou 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
All 3 Replies
Reply to this topic
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.