- Where Developers Learn, Share, & Build Careers


"After the text" itemprop = "text">

I have the following hierarchy

  Season 1 Farm 1 Field a tree with 1 Field-Scene 2 Crop 1 Crop 2 Farm 2 Field 1 field 2 crop 1 crop 2  

to display a GridView data using against treeview node selected value.I SQLDataSource show data in gridview with the following code and query

  as dim cmd OleDbCommand = new OleDbCommand () TreeView1.SelectedNode.Depth = 0 then select the SqlDataSource1.SelectCommand = ( "V_FARMS * where SSN_id = '' if & amp; TreeView1.SelectedNode. price & Amp; " '") elseif TreeView1.SelectedNode.Depth = 1 then choose SqlDataSource1.SelectCommand = ( "V_FARMS * where FRM_id =' '& amp; TreeView1.SelectedNode.Value & amp;"' ") elseif TreeView1.SelectedNode .Depth = 2 then SqlDataSource1.SelectCommand = ( "Choose V_FARMS where FLD_id = '" & amp; & Tree View 1. selected node. value and amp; "'") Elesef Tree VI 1. Selected node. Deepy & gt; 2 Then select the SqlDataSource1.SelectCommand = ( "V_FARMS * where CRP_id = '' & amp; TreeView1.SelectedNode.Value & amp;" ' ") End If  

The problem now is that When I select Season 1 then it shows the data against Season 1 Ok. But when I choose Farm1 then this form is not 1 form 1 against Season 1 and also Field values ​​are same. How are the behaviors Together I can show the data of each node against my top parant node and root node etc. All data against all data

I suspect you are not using a diphout property. Each node Try to identify different values ​​of or maybe try to write the SQL statement in the tag of each node, when you try things.


Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -