使用弹出窗口在“已检查的下拉列表"中显示有关禁用选项的信息 [英] Using popup to display info about disabled option in Checked Drop Down List

查看:64
本文介绍了使用弹出窗口在“已检查的下拉列表"中显示有关禁用选项的信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在asp.net中创建一个下拉列表,其中包含从数据库中获取的记录.记录是我创建的作者"表中的作者名称".一些记录已启用,而另一些则被禁用.因此,在网上搜索了几个小时后,我使用了jQuery并创建了一个选中的下拉列表并使用中继器显示记录(启用和禁用)来实现此目的.

现在,如果用户将鼠标移到弹出窗口上,我需要在弹出窗口中显示有关那些禁用选项(作者名称)的信息.要显示的信息是他从我的数据库中的书"表中写的书的名称.

我找不到解决此问题的任何方法.请帮忙.

I needed to create a dropdown list in asp.net with records fetched from database. The records are ''Author Names'' from ''Author'' table that i created. Some records were enabled and others disabled. So, after searching for hours on net i achieved this using jquery and creating a checked dropdown list and using repeater to show records(enabled and disabled).

Now, i need to display information about those disabled options (Author Name) in a popup window if a user moves his mouse over it. The information to be displayed being the names of Books he has written from the table ''Book'' in my database.

I cannot find any solution to this problem. Please help.

推荐答案

检查此博客
http://code.google.com/p/dropdown-check-list/ [ ^ ]
--NDK
check this blog
http://code.google.com/p/dropdown-check-list/[^]
--NDK


1)下拉列表中显示的记录,在某些情况下,您将其设置为启用/禁用? 2)除了在弹出窗口中显示书名之外,您还可以使用title:
您还可以在同一数据集(ddlList)中获得图书详细信息.然后
1) the records that are shown in dropdownlist, on some condition you are making it as enabled/disable???
2) Instead of showing the books name in popup window u can use title :
You can get the book details also in the same dataset(ddlList) & then
foreach (ListItem item in ddlList.Items)
           {
               item.Attributes.Add("title", item["BookName"].Text);
           }


使用Jquery实现此目的,
步骤1:阅读下拉选项
步骤2:将CSS类分配给禁用的选项
步骤3:阅读禁用的CSS类文本
并在jquery中以对话框选项结束,您可以显示这些选项.
Using Jquery for achieve this,
Step 1: Read the dropdown options
Step 2: assign the css class for the disabled options
Step 3: read the disabled css class text
and finish with dialog option in jquery you can display those options.


这篇关于使用弹出窗口在“已检查的下拉列表"中显示有关禁用选项的信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆