Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Tree View

Tree View

Scheduled Pinned Locked Moved ASP.NET
helpjavadata-structures
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sunil n cs
    wrote on last edited by
    #1

    I am filling tree view using dataset, The problem is when i click on expand or colapse control it is not working and in browser it troughs as java error has "contentplaceholder1 treeview1 data is undefined" and some stuff...Can any1 help me thanks in advance

    H 1 Reply Last reply
    0
    • S sunil n cs

      I am filling tree view using dataset, The problem is when i click on expand or colapse control it is not working and in browser it troughs as java error has "contentplaceholder1 treeview1 data is undefined" and some stuff...Can any1 help me thanks in advance

      H Offline
      H Offline
      hisrikanthreddy
      wrote on last edited by
      #2

      i am giving one example which i did..... i hope it will help's you..... ]]> Untitled Page

      Style="z-index: 101; left: 555px; position: absolute; top: 266px">

      using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Data.SqlClient; public partial class etc : System.Web.UI.Page { SqlConnection cn=new SqlConnection("User ID=sa; password=sa; Initial Catalog=sri; Data Source=TNLMSSRV"); string[] rolesArray; protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { rolesArray = Roles.GetAllRoles(); DropDownList1.DataSource = rolesArray; DropDownList1.DataBind(); } } protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { PopulateRootLevel(); } private void PopulateRootLevel() { SqlConnection objConn = new SqlConnection("Data Source=TNLMSSRV;Initial Catalog=sri;User ID=sa;Password=sa"); //SqlCommand objCommand=new SqlCommand("select a.groupid,d.featureid,a.name,b.featurename,b.featurepath from groups a,features b,aspnet_roles c,rolesfeatures d where a.groupid=b.groupid and b.featureid = d.featureid and c.roleid = d.roleid and c.roleid = (select roleid from aspnet_usersInRoles where userid=(select userid from aspnet_users where username='sri'))order by a.sorder,3", objConn); SqlCommand objCommand = new SqlCommand("select a.groupid, d.featureid, a.name, b.featurename, b.featurepat

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups