Click here to Skip to main content
Click here to Skip to main content

Simple Message Control to use throughout the website

, 17 Sep 2007
Rate this:
Please Sign up or sign in to vote.
Simple Message Control to use throughout the website


Download XVid codec to play the video

This is a simple message control you can use throughout the your site.

This is also a good exmple of how to use user control.

Message is displayed using asp BulletedList control.

Icons should be placed in: ~/Images/Icons

css file should be in: ~/css/

You can place MsgControl.ascx any where in your project.


Uses CSS and images.

Using the code

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    Msg.AddNewMsg("My new success message", ASP.MsgControl.MSG_TYPE.Success)

    Msg.AddNewMsg("My new error messAGE", ASP.MsgControl.MSG_TYPE.Err)

    Msg.AddNewMsg("My new inofrmation message", ASP.MsgControl.MSG_TYPE.Information)

    Msg.AddNewMsg("My new warning message", ASP.MsgControl.MSG_TYPE.Warning)

End Sub


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Amit K Bhagat
Web Developer
India India

Comments and Discussions

Generallooks fine Pinmemberbinabic17-Sep-07 13:07 
GeneralRe: looks fine PinmemberAmit K Bhagat17-Sep-07 16:53 
AnswerRe: looks fine Pinmemberbinabic17-Sep-07 22:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.141220.1 | Last Updated 17 Sep 2007
Article Copyright 2007 by Amit K Bhagat
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid