Web Site

 Server-Side Event

Keep ASTreeView free, keep ASTreeView update. Please make a donation to support the development.
  • English
  • 中文
Common Assembly Version: 1.1.5.0
Server-side events are available in ASTreeView. ASTreeView is able to AutoPostBack like DropDownList.
CONSOLE
cs code
//bind data from data table
string path = System.AppDomain.CurrentDomain.BaseDirectory;
string connStr = string.Format( "Provider=Microsoft.Jet.OLEDB.4.0;Data source={0}db\\NorthWind.mdb", path );

DataSet ds = OleDbHelper.ExecuteDataset( connStr, CommandType.Text, "select * from [Products]" );

ASTreeViewDataTableColumnDescriptor descripter = new ASTreeViewDataTableColumnDescriptor( "ProductName"
    , "ProductID"
    , "ParentID" );

this.astvMyTree.DataTableColumnDescriptor = descripter;
this.astvMyTree.DataSource = ds.Tables[0];
this.astvMyTree.DataBind();
 


Dear friend,

    ASTreeView license has been updated, please visit the License & Pricing page for detial. Thank you.