473,503 Members | 1,691 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need to show a popup window on checkboxlist item selection

34 New Member
I have a checkboxlist which will be populated on page_load. I am binding the 'description' values from database by adding it to "Title" attribute of the checkboxlist to show it is a tool tiop. Now when click a list item in the checkbox list, I want to show a popup window with the tooltip value of the selected list item.

Here is the source which I have done as sample.

In the code I am using a Link button to show a DIV using Animation extender. Now I want show a DIV when I click on list item in a checkboxlist. While clicking I want to send the Title attribute value of the checkboxlist list item to the DIV content.

Expand|Select|Wrap|Line Numbers
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="AjaxSample.WebForm1" %>
  2.  
  3. <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml">
  6. <head runat="server">
  7.     <title></title>
  8.  
  9.     <script type="text/javascript">
  10.  
  11.         function pageLoad() {
  12.         }
  13.  
  14.     </script>
  15.  
  16.     <style>
  17.         .flyOutDiv
  18.         {
  19.             display: none;
  20.             position: absolute;
  21.             width: 400px;
  22.             z-index: 3;
  23.             opacity: 0;
  24.             filter: (progid:DXImageTransform.Microsoft.Alpha(opacity=0));
  25.             font-size: 14px;
  26.             border: solid 1px #CCCCCC;
  27.             background-color: #FFFFFF;
  28.             padding: 5px;
  29.         }
  30.         .flyOutDivCloseX
  31.         {
  32.             background-color: #666666;
  33.             color: #FFFFFF;
  34.             text-align: center;
  35.             font-weight: bold;
  36.             text-decoration: none;
  37.             border: outset thin #FFFFFF;
  38.             padding: 5px;
  39.         }
  40.     </style>
  41.  
  42. </head>
  43. <body>
  44.     <form id="form1" runat="server">
  45.     <asp:ScriptManager ID="ScriptManager1" runat="server">
  46.     </asp:ScriptManager>
  47.     <asp:LinkButton ID="lnkBtnColHelp" runat="server" Text="Click Here" OnClientClick="return false;" />
  48.     <div id="moveMe" class="flyOutDiv">
  49.         <div style="float: right;">
  50.             <asp:LinkButton ID="lnkBtnCloseColHelp" runat="server" Text="X" OnClientClick="return false;"
  51.                 CssClass="flyOutDivCloseX" />
  52.         </div>
  53.         <br />
  54.         <p>
  55.             some content here for whatever text
  56.             <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
  57.         </p>
  58.     </div>
  59.     <cc1:AnimationExtender ID="AnimationExtender1" runat="server" TargetControlID="lnkBtnColHelp">
  60.         <Animations>  
  61. <OnClick>  
  62. <Sequence>  
  63. <EnableAction Enabled="false"></EnableAction>  
  64. <StyleAction AnimationTarget="moveMe" Attribute="display" Value="block"/>  
  65. <Parallel AnimationTarget="moveMe" Duration=".5" Fps="30">  
  66. <%--<Move Horizontal="150" Vertical="50"></Move> --%> 
  67. <FadeIn Duration=".5"/>  
  68. </Parallel>  
  69. <Parallel AnimationTarget="moveMe" Duration=".5">  
  70. <Color PropertyKey="color" StartValue="#666666" EndValue="#FF0000" />  
  71. <Color PropertyKey="borderColor" StartValue="#666666" EndValue="#FF0000" />  
  72. </Parallel>  
  73. </Sequence>  
  74. </OnClick>  
  75.         </Animations>
  76.     </cc1:AnimationExtender>
  77.     <cc1:AnimationExtender ID="AnimationExtender2" runat="server" TargetControlID="lnkBtnCloseColHelp">
  78.         <Animations>  
  79. <OnClick>  
  80. <Sequence AnimationTarget="moveMe">  
  81. <Parallel AnimationTarget="moveMe" Duration=".7" Fps="20">  
  82. <%--<Move Horizontal="150" Vertical="50"></Move>  --%>
  83. <Scale ScaleFactor="0.05" FontUnit="px" />  
  84. <Color PropertyKey="color" StartValue="#FF0000" EndValue="#666666" />  
  85. <Color PropertyKey="borderColor" StartValue="#FF0000" EndValue="#666666" />  
  86. <FadeOut />  
  87. </Parallel>  
  88. <StyleAction Attribute="display" Value="none"/>  
  89. <StyleAction Attribute="height" Value=""/>  
  90. <StyleAction Attribute="width" Value="400px"/>  
  91. <StyleAction Attribute="fontSize" Value="14px"/>  
  92. <EnableAction AnimationTarget="lnkBtnColHelp" Enabled="true" />  
  93. </Sequence>  
  94. </OnClick>  
  95.         </Animations>
  96.     </cc1:AnimationExtender>
  97.  
  98.     </form>
  99. </body>
  100. </html>
  101.  
May 5 '10 #1
0 1573

Sign in to post your reply or Sign up for a free account.

Similar topics

2
3743
by: Moist | last post by:
Hi, first I must admit this is one of the most active group I have ever seen. For my question: is it possible to create a small popup window that remain in focus until it is closed. That is,...
0
435
by: ChrisB | last post by:
I'm attempting to open a new window from a LinkButton in a DataGrid. I can set a session variable in the ItemCommand event for the LinkButton like so: // this is used to handle the ItemCommand...
4
12562
by: neena | last post by:
Hi I am uing C#.net & using javacript for a popup window. I've a form and there is a button named Categories. When it is clicked, it will open a new window for the selection of categories. When...
6
1494
subashini Thiyagarajan
by: subashini Thiyagarajan | last post by:
whenever any update in a access table, i need a popup window to be opened automatically without clicking anything.At the same time that pop up window should contain a last record details.. Any...
0
1464
by: prakash2kr | last post by:
i am using the following code to show popup window window.showModalDialog("WebForm2.aspx","","height=200px;width=300px"); how can i pass the value from WebForm2.aspx to parent window... i...
5
1187
by: shalini166 | last post by:
Hi Anyone help me.I need a popup window when i click button. When i click button it show the popup window with employee code from database table. I used ASP.net(C#) with sqlserver
8
3383
by: ismailc | last post by:
Good day, I need help. I have an html button that calls & open another browser window on the onMouseUp event, but once I close the popup new browser window my button has focus & is like selected....
1
2712
by: mukeshrasm | last post by:
Hi For one of my project I have used Calendar Popup of this site http://www.mattkruse.com/javascript/calendarpopup/simple.html. I want to show the popup in the center of the window or even below...
1
3493
by: azie | last post by:
hi.. Can someone help me, how to populate textbox value from popup window into gridview at parent page. I use modal popup window (window.showModalDialog). At parent page have button add where will...
2
1372
by: Blacky | last post by:
I have a main application window,from this we have one link(UUU) ,clicking on this will open a popup window. When I do a logout in main window and refresh the pop up window will lead to session...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7084
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7278
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.