同一页面上的多个gridview [英] Mutiple gridview on same page

查看:81
本文介绍了同一页面上的多个gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在一个页面上制作所有这些网格 - 即当我点击link1时,页面上只会出现与该链接对应的网格,当我点击link2时,只会出现link2的网格吗?只有激活链接的网格应该是可见的,所有其他网格都是隐藏的。我不想使用母版页。还有另一种方法吗?

Can I make all these grids on one page - i.e. when I click on link1, then only the grid corresponding to that link will appear on the page and when I click on link2, then only the grid for link2 appears? Only the grid for the activated link should be visible and all other grids are hidden.I dont want to use master Page. Is there is another way of doing it??

推荐答案

是的,你可以做到,但有很多方法可以做到这一点。您可以简单地将网格包装在单独的div中,并使用jQuery隐藏/显示您需要的内容。您还可以使用按需加载并以这种方式控制它们的第三方网格控件。这一切都取决于你想做什么。
Yes you can do it but there are many ways to do it. You can simply wrap the grids in individual divs and use jQuery to hide/show what you need. You can also use 3rd party grid controls that load on demand and control them that way. It all depends on what you want to do.


利用手风琴控制

参考下面的链接



http://forums.asp.net/t/1387237.aspx?Accordion+GridView [ ^ ]
Make use of accordion control
refer below link

http://forums.asp.net/t/1387237.aspx?Accordion+GridView[^]


这篇关于同一页面上的多个gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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