根据点击的网址填充网格视图 [英] populate gride view based on the url clicked

查看:73
本文介绍了根据点击的网址填充网格视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在页面上具有树视图和网格视图.我从sql数据库中填充树视图.现在,我想基于单击树视图的子节点来填充网格视图.
我的数据库结构如下
带有SID和名称列的表子猫:-这是从中获取子节点的表.
带有SID列PID名称的表产品:-这是我需要从中填充表格的表格,具体取决于SID,即.树视图中的子节点.
请告诉我如何实现此目标...

have a tree view and a grid view on a page. Im populating the tree view from sql data base.Now I want to populate the grid view based on the child node clicked of the tree view.
My data base structure is as below
table child cat with columns SID & name :- this is the table from where im getting child nodes.
Table Product with columns SID PID name :- this is the table from where i need to populate grid view depending on the SID ie. child node from tree view.
Plz tell how to achive this...

推荐答案

您将进行回发,计算出被单击的值,从数据库中加载数据并绑定
You''d do a postback, work out the value that was clicked, load the data from the DB and bind it to the grid.


我已经编写了代码以在页面加载事件中填充网格视图.
我是点网的新手,请详细说明.
I have written the code to populate the grid view in page load event.
Im new to dot net can you plz elaborate.


这篇关于根据点击的网址填充网格视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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