Click here to Skip to main content
15,897,518 members
Articles / Web Development / IIS

OverLibWrapper -- C# wrapper of the overLIB DHTML popup JavaScript library

Rate me:
Please Sign up or sign in to vote.
4.67/5 (12 votes)
15 Feb 2005CPOL12 min read 114.8K   1.1K   53  
An article on the use of the OverlibPageControl and OverlibPopupAnchor for extended manipulation of the overLIB popup JavaScript library.
<%@ Register TagPrefix="olwc" Namespace="OverLibWrapper" Assembly="OverLibWrapper" %>
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="OverlibDemo.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>WebForm1</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<asp:textbox id="TextBox1" style="Z-INDEX: 101; LEFT: 368px; POSITION: absolute; TOP: 88px" runat="server"></asp:textbox><asp:imagebutton id="ImageButton1" style="Z-INDEX: 102; LEFT: 400px; POSITION: absolute; TOP: 168px"
				runat="server"></asp:imagebutton><asp:label id="Label1" style="Z-INDEX: 103; LEFT: 264px; POSITION: absolute; TOP: 88px" runat="server">Label</asp:label><asp:panel id="Panel1" style="Z-INDEX: 104; LEFT: 16px; POSITION: absolute; TOP: 392px" runat="server"
				Height="128px" Width="378px">Panel 
<asp:ListBox id="ListBox1" runat="server"></asp:ListBox>
<asp:LinkButton id="LinkButton1" runat="server">LinkButton</asp:LinkButton></asp:panel><olwc:overlibpopupanchor id="OverlibPopupAnchor1" title="Overlib Popup Title" style="Z-INDEX: 105; LEFT: 80px; POSITION: absolute; TOP: 144px"
				runat="server" PopupText="This is the popup text" OverlibCommands="STICKY,CENTER,CAPTION,'This is caption for the popup anchor',WRAP"></olwc:overlibpopupanchor>
			<olwc:OverlibPageControl id="OverlibPageControl1" runat="server" PageDefaults="STICKY,MOUSEOFF,LEFT,HAUTO,FGCOLOR,'#0000FF'">
				<OverlibPopup ControlLink="LinkButton1" Text="<table border=\'1\'><tr><td>This is inside some html table</td></tr></table>"
					Commands="LEFT,VAUTO" EventType="OnMouseOver" />
			</olwc:OverlibPageControl></form>
	</body>
</HTML>

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
Technical Lead Avanade, Inc
United States United States
A software developer for a medium sized company with a Microsoft product core development strategy.

Comments and Discussions