使用JQuery在弹出框中显示DataList项目详细信息 [英] Show DataList item details in popup box using JQuery
本文介绍了使用JQuery在弹出框中显示DataList项目详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
我有一个DataList控件.我用图像填充了客户详细信息.对于每个客户,都有客户的简短详细信息.现在,当查看者单击任何客户的名称时,我希望在淡入的弹出框中显示该客户的完整详细信息.
我猜想JQuery就是适合的,但是不知道该怎么做.请帮忙.
Hello
I have a DataList control. I populated it with customer details with images. For each customer there are brief details of the customer. Now when the viewer clicks the name of any customer, I want the full details to be shown for that customer in a faded in pop-up box.
I guess JQuery is suitable for that, but don''t know how to do it. Please help.
推荐答案
我可能会从被称为阅读文档"的活动开始:http://api.jquery.com/fadeIn/ [ ^ ]
还可以在文档中找到: http://msdn.microsoft. com/en-us/library/system.web.ui.webcontrols.datalist.itemtemplate.aspx [
I would probably start with an activity refereed to as "read the documentation" : http://api.jquery.com/fadeIn/[^]
Also found in the documentation: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.datalist.itemtemplate.aspx[^]
<itemtemplate>
<itemtemplate>
<span önclick="foo(<%# Eval(" id=") )%>"><%# Eval("Name") %></span>
</itemtemplate>
function foo(id)
{
show dialog...
}
这篇关于使用JQuery在弹出框中显示DataList项目详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文