如何在同一位置点击链接标签时显示多个网格视图? [英] How to display multiple Gridviews when clicked on link tag at the same position?

查看:72
本文介绍了如何在同一位置点击链接标签时显示多个网格视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个页面,左边有4个链接标签

报告1

报告2

报告3&

报告4



当用户点击报告1时,将显示特定的Gridview 1 ...其他报告也应该这样。我如何在ASP.NET中实现此功能?当用户点击链接标签报告2时,它应显示Gridview 2代替Gridview 1





有人可以帮我解决这些问题。





谢谢。

Hi,
I have a page in which the left section has 4 link tags
Report 1
Report 2
Report 3 &
Report 4

When user clicks on Report 1 that particular Gridview 1 will be displayed...The same should happen with other Reports..How do I achieve this functionality in ASP.NET ? When user clicks on link tag Reports 2 it should display Gridview 2 in place of Gridview 1


Can someone please help me with the code.


Thanks.

推荐答案

简单方法是单独使用每个标签的 Gridview 。页面加载时所有gridview的显示为false。



当用户点击标签然后绑定适当的 Gridview 并使其可见
The easy way is use separate Gridview for each tag.Make visible false for all gridview in page load.

when user click the tag then bind the appropriate Gridview and make it visible


你可以通过使gridview visible = false和true来实现它



report1点击然后发表report1gridview.visible = true其他虚假
you can achieve it by making gridview visible = false and true

report1 click then make report1gridview.visible = true others false


这篇关于如何在同一位置点击链接标签时显示多个网格视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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