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

ASP.Net User Controls as Static or Movable PopUps

Rate me:
Please Sign up or sign in to vote.
4.63/5 (21 votes)
2 Feb 2007CPOL2 min read 110.6K   2.8K   103  
Use form controls as static informational popups or movable control windows.
* {margin:0;padding:0;}  /* zero out everything */

html.waitCursor * { cursor:wait; }

body
{
	padding-bottom: 40px;
	background-color: #4D6EA7;
	font-family: Verdana;
	font-size: x-small;
}

.label110
{
	float: left;
	width: 110px;
}

.label150
{
	float: left;
	width: 150px;
}

#MainContainer
{
	background-color: White;
	width: 840;
	height: auto;
	margin-top: 4px;
	margin-bottom: 40px;
	margin-left: 5%;
	margin-right: 5%;
	padding-left: 2%;
	padding-top: 2%;
	padding-bottom: 4%;
	border: 1px solid black;
}

#StaticPops
{
	margin: 1%;
	padding: 2%;
	border: solid 1px black;
}

.popInfoLabels
{
	margin-left: 15px;
   FONT-SIZE: 9pt;
    FONT-FAMILY: Arial, Helvetica, Geneva, sans-serif;
}
.popButtonLabels
{
	margin-left: 35px;
	FONT-SIZE: 11pt;
    FONT-FAMILY: Arial, Helvetica, Geneva, sans-serif;
}

.closeButton
{
	margin-left: 96%;
	border-right: 1px solid black;
	border-bottom: 1px solid black;
	border-top: 1px solid #D0D0D0;
	border-left: 1px solid #D0D0D0;
}


#infoBW
{
	background-color: White;
	color: Black;
}

.ipopuptxt 
{
	width: 400;
	padding: 8px 8px 8px 8px;
    FONT-SIZE: 9pt;
    FONT-FAMILY: Arial, Helvetica, Geneva, sans-serif;
	background-color:#EDF3F8;
	z-index: 11;
}

.collapsePop
{
	width: 520px;
	height: auto;
	background-color:#EDF3F8;
}

#CollapseContainer
{
	width: 100%;
}
#CollapseBorder
{
	width: 100%;
	border: 1px solid black;
}
#CollapseHeader
{
	width: 100%;
	margin-bottom: 2px;
	background-color: Navy;
	color: White;
	border-bottom: 1px solid black;
	font-size: 8pt;
	font-weight: bold;
    FONT-FAMILY: Arial, Helvetica, Geneva, sans-serif;
}
#CollapseTitle
{
	padding-top: 2px;
	position: absolute;
	float: left;
}
#CollapseClose
{
	padding-top: 2px;
}
#CollapseBody
{
	width: 100%;
	margin: 4px 4px 0px 4px;
}
.collapseItemList
{
	font-size: 8pt;
    FONT-FAMILY: Arial, Helvetica, Geneva, sans-serif;
}
#CollapseItemListScroll
{
	border: 1px solid black;
	background-color: #FFFAFA;
	height: 150px;
	margin-left: 4%;
	margin-right: 4%;
	margin-top: 4px;
	margin-bottom: 20px;
	padding-left: 4px;
	overflow: auto;
}
#CollapseGroupList
{
	margin-left: 4%;
	margin-right: 4%;
	margin-top: 10px;
	margin-bottom: 4px;
	border: 1px solid black;
	background-color: #FFFAFA;
}
#CollapseGroupListHeader
{
	padding-left: 4px;
	background-color: Navy;
	color: White;
	border-bottom: 1px solid black;
	font-size: 8pt;
    FONT-FAMILY: Arial, Helvetica, Geneva, sans-serif;
}
#CollapseGroupListNames
{
}
#CollapseButtons
{
	margin-bottom: 15px;
}

.popButton
{
	position: absolute;
	margin-left: 2px;
	width: 25;
	height: 25;
	background: url(images/btn_small_go.gif) no-repeat;
}
.popButtonHvr
{
	position: absolute;
	margin-left: 2px;
	width: 25;
	height: 25;
	background: url(images/btn_small_go_hvr.gif) no-repeat;
}

.infoButton
{
	position: absolute;
	margin-left: 2px;
	margin-top: 5px;
	width: 10;
	height: 10;
	background: url(images/blue-info-button.gif) no-repeat;
}
html>body .infoButton
{
	margin-top: 1px;
}
.infoButtonHvr
{
	position: absolute;
	margin-left: 2px;
	margin-top: 5px;
	width: 10;
	height: 10;
	background: url(images/blue-info-button_hvr.gif) no-repeat;
}
html>body .infoButtonHvr
{
	margin-top: 1px;
}

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
Web Developer
United States United States
Software architect and developer with over 20 years of experience, specializing in GUI designs and intranet systems in MFC/C++ and ASP.Net using C#.

Comments and Discussions