Top Ad unit 728 × 90

recent

How To Use TreeView Navigation Control In Asp.Net

Today in this tutorial we will learn How To Use TreeView navigation Control using Sitemap data source in Asp.Net. Here I described step by step procedure to use this navigation control, I hope at the end of this tutorial you will be able to use TreeView navigation control. Okay so lets start the tutorial.


how-to-use-treeview-navigation-control-in-asp.net



How To Use TreeView in Asp.Net ?
Ok friends so lets start the step by step procedure to use TreeView navigation control :

 Step 1 ::


First create one new web application > Right click on application and select Add New Item Select Web Form > Give name as Home.aspx > Click OK
Similar way you can add two more pages and give names as UserLogin.aspx and Profile.aspx page

Once pages added to website > Right click on website and select Add New Item > Select SiteMap > Click Add 


add-tree-view-sitemap-to-website

Once SiteMAP added to website open SiteMAP and write the following code

how-to-use-tree-view-in-c#


If you observe above sitemap I added UserLogin.aspx page and Profile.aspx pages under Home.aspx page and I added Profile.aspx under UserLogin.aspx page.


 Step 2 ::


Now add this TreeView on evey page for doing this follow these steps on every pageof you website :

Explore Data Tab from toolbox > Select SiteMapDataSource

how-to-use-tree-view-using-site-map-data-source

after doing this fetch TreeView control from navigation tab that shown in the image given below after this follow these steps :
Goto Smart Menu of TreeView > Choose Data Source > Select SiteMapDataSource

how-to-use-tree-view-in-asp

now repeat the same steps on all the page of your website and save all the things.


 Step 3 ::


After following above steps just run the Profile Page you will find site TreeView navigation like this :

create-tree-view-in-asp.net-c#




From the Editor’s Desk
So friends this is all about How To Use TreeView Navigation Control in Asp.Net. I always tried my best to make every tutorial easily understandable to you. But still you have any problem regarding this tutorial then feel free to ask me via comments and you feel it is helpul then don't forget to share it.

Thankyou for giving your time.
How To Use TreeView Navigation Control In Asp.Net Reviewed by Team tt24 on 1:30 AM Rating: 5

No comments:

All Rights Reserved by Ask To Chimp © 2014 - 2015
Powered By Blogger, Designed by Sweetheme

Contact Form

Name

Email *

Message *

Powered by Blogger.