473,387 Members | 3,801 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,387 software developers and data experts.

Single-page apps and SiteMaps

I have a web app that consists of a single page. It works a lot like
starter kit examples of menu/content apps, and it has a sitemap associated
with it. However, my app doesn't go from page to page to show content;
selecting a menu item from the associated TreeView loads a usercontrol
associated with my content and displays it in a MultiView in the content
area. The SiteMap stuff itself works because it's in Select mode, and my
node urls are the usercontrols' local paths. Problem is that when I start
navigating deep within the app: the sitemap tries to synch up with the
current page, but the current page is always Index.aspx, so my SiteMapPath
only shows the "home" node, and "current node" indicator for my TreeView
returns to the same node when I start clicking around.
My question is: is this approach workable given that I need TreeViews and
SiteMapPaths to be less rigid in what it considers to be the user's position
in the sitemap (i.e. all reports are just user controls in the content
region rather than pages that look like the entire app shell)? I really
would prefer the app to programmatically behave like a single-window app
where a MultiView is the only thing getting flipped, but the default sitemap
behavior doesn't seem to like this method.
Nov 20 '05 #1
2 1593
Just to update things in case someone hits this during a search: I gave up
on getting this to work primarily because the one solution I had: handling
SiteMapProvider.SiteResolved (or whatever it's called), which returns a
SiteMapNode, is perfect for telling the provider what the current node is,
but it gets fired before the TreeView (or SiteMapPath)'s SelectedNodeChanged
event gets processed, so it can't be used to set the current node. I wound
up moving back to a navigational treeview model (with URLs representing
locations instead of commands in my treeview).
Nov 20 '05 #2
I've probably misunderstood your question, as I'm not entirely clear on what
you're trying to do, but could you not create a custom SiteMapProvider to do
what you want?

Jevon
"Keith Patrick" <ri*******************@nospam.hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
Just to update things in case someone hits this during a search: I gave up
on getting this to work primarily because the one solution I had: handling
SiteMapProvider.SiteResolved (or whatever it's called), which returns a
SiteMapNode, is perfect for telling the provider what the current node is,
but it gets fired before the TreeView (or SiteMapPath)'s
SelectedNodeChanged event gets processed, so it can't be used to set the
current node. I wound up moving back to a navigational treeview model
(with URLs representing locations instead of commands in my treeview).

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: sinister | last post by:
The examples in the online manual all seem to use double quotes, e.g. at http://us3.php.net/preg_replace Why? (The behavior is different with single quotes, and presumably simpler to...
12
by: Dennis Plöger | last post by:
Hi all! I'm currently having some problems parsing a char array in c++. (And yes, I'm a half-newbie ;-)) Perhaps you can help me with this: #include <iostream> using std::cout; void...
4
by: Venkat | last post by:
Hi All, I need to copy strings from a single dimensional array to a double dimensional array. Here is my program. #include <stdio.h> #include <stdlib.h>
5
by: Joel | last post by:
Hi, I incorporated a function in my code that whenever I use a string variable in an sql statement if the string contains a single quote it will encase it in double quotes else single quotes. ...
3
by: Jason | last post by:
I have several tables with quite a few fields and I'm getting errors when trying to insert records with single quotes in the data like: name = John O'Henry or a city name of O'Fallen So I went...
11
by: Thom Little | last post by:
I would like three states on an icon ... Left Click Right Click Double Click Left Click is fired at least once on a Double Click Is there a good example that shows how to determine if the...
2
by: John Dann | last post by:
I'm retrieving some columns from a database with numeric values that fall comfortably within the range of the Single type and I'm tempted to use Single for the relevant column type in the retrieved...
3
by: Eric Layman | last post by:
Hi, I've saved data into the db by doing a replace() on single quote. Right now on data display on a datagrid, it shows double single quote. How do I make changes during run time of datagrid...
2
by: Reporter | last post by:
I got the following example from http://www.evolt.org/article/User_Friendly_Forms_in_PHP/20/60144/index.html : echo '<tr><td>First name:</td><td><input type="text" name="first_name"...
0
by: Atos | last post by:
SINGLE-LINKED LIST Let's start with the simplest kind of linked list : the single-linked list which only has one link per node. That node except from the data it contains, which might be...
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.