I have attached a sitemap datasource with treeview to display menu.
how to write code in the treeview .
for example
the menu in treeview is
as follows.
Home
- View books
- login
- Registration.
Who ever wants to view book first need to login first they cannot directly go and click the view books.
so i need to write a code as follows.
if session[user] != null
{
--> then proceed (which means logged in)
}
else
{
go to login page.
}