Server Side message box using Ajax/ASP.NET

Posted on 2009-02-23
Last Modified: 2012-05-06
Hi there

I was wo!ndering if anyone knows of a way to display a messagebox from server-side code. I've recently installed the ajaxcontroltoolkit for VS2008 and was wondering if i could populate the popup control extender with text from server-side code. Eg: "Record not found".  

Many thanks
Question by:Springbok37
    LVL 16

    Expert Comment

    you can with the modal popup extender.  just use a panel, inside the panel put an update panel and the controls you want on the popup.  change the message from serverside call the updatepanel.Update(); and then the modalpopupextender.Show();
    LVL 16

    Accepted Solution


    Author Closing Comment

    Thanks that worked!

    Many thanks!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    This video discusses moving either the default database or any database to a new volume.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now