Click here to Skip to main content
15,896,372 members
Articles / Web Development / ASP.NET

ASP.NET Server Side Messages & Client Validation Message Handling.

Rate me:
Please Sign up or sign in to vote.
4.67/5 (30 votes)
25 May 2011CPOL5 min read 110.2K   3.5K   73  
Show different type of Client Side and Server side messages in a Modal box.
using System;

namespace ValidationMessage
{
    public partial class ValidationSummary : BasePage
    {
        protected void Button1_Click(object sender, EventArgs e)
        {
            if(IsValid)
            {
             ShowSuccessMessage("All validation passed.");  
            }
            else
            {
                ShowErrorMessage("Validation failed.");
            }
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
India India
Its me Smile | :)

Comments and Discussions