是否可以从Webpart网格在共享点页面中显示数据 [英] Is it possible to Display data in sharepoint page from Webpart grid

查看:100
本文介绍了是否可以从Webpart网格在共享点页面中显示数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在可视化webpart中有网格.我已经在sharepoint UI中导入了webpart,并且当我在sharepoint 2010中单击网格数据时.整个详细信息应显示在另一个共享点页面中,例如

标题名称年龄(当我单击网格中的C#数据时)
C#XXX 10

这些详细信息应显示在这样的其他页面中

标题C#
名称XXX
10岁以下

在Advance中致谢

Hi
I have grid in visual webpart.I have imported webpart in sharepoint UI and When i click on grid data in sharepoint 2010.Entire detail should be shown in another sharepoint page like

Title Name Age (when i click on C# data in the Grid)
C# XXX 10

These details should be shown in another page like this

Title C#
Name XXX
Age 10

Thanks in Advance

推荐答案

使用SPGrid的SelectedIndexChanged事件,并使用事件处理程序中的查询字符串将所需的值发送到下一页Response.Redirect方法.


在新页面中,使用另一个自定义Webpart通过以编程方式将查询字符串值检索到Webpart代码中来显示值.


如果您无法满足要求,那么这将是一项艰巨的任务.
Use SelectedIndexChanged Event of SPGrid and send the required values using query string in the event handler to the next page Response.Redirect method.



In the new page use another custom webpart to display the values by retrieving the query string values into the webpart code programmatically.


It is little bit a tough job if the requirement is not escapable you can do.


这篇关于是否可以从Webpart网格在共享点页面中显示数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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