GridView问题 [英] GridView Problems

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

问题描述

大家好,


你能解决我的问题吗?


我有2个网页表格,主页webform和Admin webform。

每个webform都有1个gridview,grdHome和grdAdmin。


我还有1个表,其中包含field1,field2,field3,field4,field5,field6

grdHome有3列:field1,field2& field3。

grdAdmin还有3列field4,field5,field6

我已成功在grdHome的field1中创建了一个超链接。它在Admin webform中有超链接。


我想要做的是:


1.)当我点击field1中的一条记录时, Admin webform中的grdAdmin应该只显示字段4,字段5和字段6中的特定记录...



谢谢,


请帮助我..

Hi guys,

Can you help me with my problem?

I have 2 web forms, Home webform and Admin webform.
Each webform has 1 gridview, grdHome and grdAdmin.

I also have 1 table which has field1,field2,field3,field4,field5,field6
grdHome has 3 columns: field1, field2 & field3.
grdAdmin has also 3 columns field4,field5,field6
I have successfully created a hyperlink in grdHome''s field1. It is hyperlinked in the Admin webform.

What I want to do is:

1.) when i click one record in field1, the grdAdmin in the Admin webform should only display the specific record from field 4,field 5 and field 6...


Thanks,

Please help me..

推荐答案

这与传递参数然后查询数据库并将gridview数据绑定到数据源有关。 />

你在哪里遇到问题?
this is something to do with passing parameters and then querying the database and databinding the gridview to the data source.

Where are you facing problems?


我真的不知道该怎么做..我只是新的.ASP但我很漂亮熟悉VB脚本..你能告诉我一些代码吗?在哪里放一些代码?
I really don''t know how to do it.. I am only new in .ASP but im pretty familiar with VB script..can you show me some codes?and where to put it?


你如何将数据填入你的网格视图(特别是管理员)?


您需要的是根据特定值重新填充管理网格。

因此您只需稍微修改您的SQL查询以适应那个。


一旦你开始工作,你可以在点击链接时转到管理页面时使用查询字符串或会话变量。


但是我不确定如果打开2个浏览器窗口并且你想根据你在第一个浏览器中点击的内容有效地改变第二个浏览器中的数据
How are you filling data into your grid view (especially for the admin)?

What you would need is to refill the admin grid depending upon a certain value.
So you would only need to modify your sql query a bit to accomodate that.

Once you get that working you can use query strings, or session variable when moving to the admin page when the link is clicked.

However im not sure how this is to be done if 2 browser windows are open and you want to effectively change the data in the second browser based on what you clicked in the first one


这篇关于GridView问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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