473,385 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Different sitemap for different user

Hi there,
I am using sqlsitemap provider for showing tree. i am using tree view control.I have to show different tree for different user. so for that I have to use different sitemap.
I think if I create inmemory sitemap file for each user and use it.
How can I create inmemory sitemap file? or How can I solve this problem?

I am new for .Net. Please help....
Jun 13 '08 #1
9 1811
kenobewan
4,871 Expert 4TB
Sounds like your homework assignment. What have you done so far?

MODERATOR
Jun 13 '08 #2
Sounds like your homework assignment. What have you done so far?

MODERATOR
Now my system is working for one user. right now I am fetching data from database and store in a user.sitemap file. So treeview reads user.sitemap and create tree.
This file is physically located on disk.
Now, for different user tree is different.If more than two user login so how can I maintain user.sitemap file so each user can see different tree.How can I maintain user.sitemap ?
Jun 16 '08 #3
Plater
7,872 Expert 4TB
Well I don't know why you write it to disk, but you could save it as user<SessionID>.sitemap ?
Jun 16 '08 #4
But there would be multiple user and each user have huge data , si I can't store data in session.
I am interesting in to create in memory user.sitemap file so each user can access it. but asp treeview control checks file is present while running the project. How can I achive this?
Jun 16 '08 #5
Plater
7,872 Expert 4TB
If the file is createsd "in memory" it's the same as using the session.
If you want to write the file to disk, append a unique string to it's filename. I recomended using the SessionID, since they're unique and already associated with the user.
Jun 16 '08 #6
Ok, suppose file is created in session but, treeview control is reffering physical user.sitemap file path. what should I do?

<div id="SampleTreeView">
<div id="Sample-Control">
<asp:TreeView ID="TreeView1" runat="server" DataSourceID="ExampleSiteMapDS" SkinID="SampleTreeView" CssSelectorClass="PrettyTree" />
</div>
<asp:SiteMapDataSource runat="server" ID="ExampleSiteMapDS" SiteMapProvider="ExampleSiteMapProvider1" ShowStartingNode="false" />
</div>


and in web.config physical file path is provided using 'ExampleSiteMapProvider1'..
Jun 16 '08 #7
Plater
7,872 Expert 4TB
I keep telling you that you don't NEED to create it in the session if you want to keep them as files, just change the filenames so they are unique to the user.
Jun 16 '08 #8
But if I create different file for different user then there would be multiple file for user on disk.
then this application would be heavy. That's why I am trying to use inmemory file. so that after expire of session that file will be removed..

In web.config i am giving file name for treeview . for multiple user, how can I do this?
dynamically how can I do?
Jun 17 '08 #9
Plater
7,872 Expert 4TB
Well if you want to use "in memory file", just put it in a sesssion object. Problem solved.
Jun 17 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: chris.rust | last post by:
Has anyone else had any trouble setting up a sitemap view to be filtered by roles? We've put a cust role provider in place, and we can verify that it's only being called once for each...
5
by: JJ | last post by:
Although this question involves Flash, I suspect the actual issue is an asp one.. I am trying to open the web.sitemap file in an .swf file enbedded in an asp page (I'm working in VS 2005). I...
0
by: Chris | last post by:
Hi, i have a problem with the visibility of my sitemap. There is one role defined: "manager" There are two users: 'user1' (member of role manager) and 'user2' (not member). The login.aspx...
0
by: Andy B | last post by:
I am using the default XML provider for the sitemap. I need the sitemap to display in different lists seperated based on node. Here is an example sitemap that I have. in web.sitemap (the list of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.