Click here to Skip to main content
6,595,444 members and growing! (18,749 online)
Email Password   helpLost your password?
Web Development » ASP.NET » General     Intermediate License: The Code Project Open License (CPOL)

Notes: A MSDN Websites style Custom Notes control in ASP.NET and C#

By Abhijit Jana

A Microsoft Website Style notes control using a Webusercontrol in ASP.NET and C#
C# 2.0, Windows, .NET 2.0, ASP.NET, VS2005, Dev
Posted:26 Oct 2007
Updated:25 Jan 2008
Views:14,116
Bookmarked:22 times
Unedited contribution
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
21 votes for this article.
Popularity: 5.75 Rating: 4.35 out of 5
1 vote, 4.8%
1
2 votes, 9.5%
2
1 vote, 4.8%
3
1 vote, 4.8%
4
16 votes, 76.2%
5

Screenshot - MainImage.jpg

Introduction

This is a simple custom notes control like Microsoft website Check . In MSDN web site we can see there is a special control that contain some Simple Notes, Important Point, Security Tips etc. This Custom control will help you design that control into your websites with custom color and message and icon.

Background

This custom control is a Webusercontrol designed in ASP.NET and C#. We can use it in our web sites . Which increase the looks and fill of Our sites. Very simple to use. Just drag and drop the control inside and panel and set some property of it that are define on control . we can use custom Length messaage like

Screenshot - Abtcodeproject.jpg.

and also we can use link on a notes

Screenshot - visitlink.jpg

Designing

This is a custom web user control . It contain some Properties which have to be set for use the control.

Main Properties are

Screenshot - Property.jpg

Notes Size :

This control has there fixed size like Short , Medium and Long. By default "Medium". We can set the size at runtime as well as Design time also and based on our requirement.

It can be accessible by

Screenshot - NoteSize.jpg

Header Text :

The we can say as caption , just give the header text like "Notes", "Tips", "Security" etc. This can be set as runtime as well as design time also.

It can be accessible by

Screenshot - HeaderText.jpg

Description:

This property will set the description of your notes, like you set header text as "Notes" and description as "You Description". And It can also set at runtime and design time also.

It can be accessible by

Screenshot - ImagePath.jpg

ImagePath:

This will set the image of your notes you can use your custom image, and it should be 16*16 size other wise it will overlap. And set the path depends upon you and can set at runtime as well as design time.

It can be accessible by

Screenshot - ImagePathold.jpg

BackColor:

You can set custom color for you notes. Try to use Light Color which will look good. And you can use System.Drawaing.Color.ColorName or you can use, Using System.Drawaing and set the color as Color.ColorName at runtime or Desing Timr

It can be accessible by

Screenshot - backcolor.jpg

Using The Code

A brief description of how to use the article or code. The class names, the methods and properties, any tricks or tips.

Blocks of code should be set as style "Formatted" like this:

//
// Any source code blocks look like this
//
//Code To Desing the Property 
#region PropertySet
//Property for Set Notes Size
//It either Short, Long or Medium
public String NotesSize
{
get
{
return notesSize; 
}
set
{
notesSize = value;
}
}
//Property For Header Text
public string HeaderText
{
get
{
return Txt; 
}
set
{
Txt = value;
}
}
//Property For Description
public string Description
{
get
{
return Desc ;
}
set
{
Desc = value;
}
}
//Property For Backcolor
public Color BackColor
{
get
{
return backColor; 
}
set
{
backColor = value; 
}
}
//Property For ImagePath
public string imagePath
{
get
{
return iPath;
}
set
{
iPath = value;
}
}
#endregion

//In main Webpage you can access by
//
protected void Page_Load(object sender, EventArgs e)
{
# region Notes1
//Creating one Notes
// Specify the Size of Notes
Notes1.NotesSize = "Short";
// Image and it should be 16*16 
Notes1.imagePath = "Notes.gif";
//Give the Title of Notes
Notes1.HeaderText = "About Developer";
//Write Your Description
Notes1.Description = "Developed By : Abhijit Jana ";
// Set the Color 
Notes1.BackColor = System.Drawing.Color.LightCyan; 
#endregion
}

Points of Interest

We can use Custom color for it. So we can change the color based on our website color. I have provide the source code with it , You can customize in your own way.

and Finaly we can also use

Screenshot - About.jpg

License

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

About the Author

Abhijit Jana


Member
Abhijit has done Master Degree in Computer Application from Heritage Institute of Technology (HIT-K) ,Kolkata, West Bengal, India . He is an interested, committed, creative Software professional having more than 2.8 years of solid experience in web-based and windows based solutions in Microsoft Technologies using .NET 2.0, .NET 3.0 , .NET 3.5, ASP.NET 2.0, ASP.NET 3.5 C# 2.0, AJAX, Silverlight, Web Services, MS SQL Server 2005, Exchange Server, Active Directory, and Dot Net Nuke (DNN),Win Forms, WinServices, WSS (Windows Sharepoint Server 3.0 ), WPF, WWF. He is also an MCP (Microsoft Certified Professional) and MCTS (Microsoft Certified Technology Specialist) on Web Development. He has good knowledge of Object Oriented Programming, 3-Tier Architecture and Design Patterns as well as good command over IIS (IIS 5.1,IIS 6.0, IIS 7.0) and deployment of Application on Live Production Environment . His hobbies, listing to music and Developing Own small Tools Utilities and Knowledge sharing.


Awards
CodeProject MVP 2009
Prize winner "Best ASP.NET article of Sep 2009
Prize winner "Best ASP.NET article of July 2009
Prize winner "Best ASP.NET article of June 2009"
Prize winner "Best ASP.NET article of January 2009"
Prize winner "Best ASP.NET article of November 2008"

Prize winner "Best ASP.NET article of October 2008"

Abhijit's CodeProject Guru :

Occupation: Software Developer
Location: India India

Other popular ASP.NET articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 7 of 7 (Total in Forum: 7) (Refresh)FirstPrevNext
GeneralVery Nice Pinmembermerlin9814:23 29 Oct '07  
GeneralRe: Very Nice PinmemberAbhijit Jana23:22 29 Oct '07  
GeneralRe: Very Nice PinmemberDaniel Vaughan5:00 6 Dec '07  
GeneralRe: Very Nice PinmemberAbhijit Jana4:29 7 Dec '07  
GeneralRe: Very Nice PinmemberBrij2:04 2 Jan '09  
GeneralSuggestion And FeedBack PinmemberAbhijit Jana8:23 26 Oct '07  
GeneralRe: Suggestion And FeedBack PinmemberThanks for all the fish9:58 26 Oct '07  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 25 Jan 2008
Editor:
Copyright 2007 by Abhijit Jana
Everything else Copyright © CodeProject, 1999-2009
Web22 | Advertise on the Code Project