Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I have 2 sitemap ie administrator.sitemap and user.sitemap. When adminstrator login, I want to display administrator.sitemap and when user login wants to display user.sitemap.
I am not getting how to do it.
Plz help me.
Posted

Hello,

Please have a look at this[^] MSDN article. Other option is to write your own SiteMap provider.

Regards,
 
Share this answer
 
Comments
Shrikant09 30-Jan-14 4:58am    
How to Differentiate user and admin? i want one admin and multiple user.
in asp.net using C#.
Prasad Khandekar 30-Jan-14 6:35am    
You can use roles for that purpose.
Hi You need to check whether if user admin or user, write if statemnt in that u check,i think admin user only one ? if yes ,just do like

if txtuser.test="Admin"
{
show admin sitemap
}
else
{

show user sitemap
}



need to improve ur question first,nobody understand what u ask ? paste some code,
 
Share this answer
 
Hi,

First check the Role of the User Login

If it is Administrator then

Display the admin sitmap

If it is User then

Display the user sitmap

For Example

DataSet ds=new Dataset();

Bind data to dataset

if(ds.Table[0].Rows[0].itemArray[0].tostring()=="Administrator")
{
Display Admin sitmap
}
else if(ds.Table[0].Rows[0].itemArray[0].tostring()=="User")
{
Display User sitmap
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900