ASP.Net 4 TreeView Collapses on Node Click

I have an ASP.Net 4 TreeView that's being populated by a
SQLSiteMapProvider and sits on a MasterPage.  When I click a node the
tree collapses.

EnableViewState is set to True
ViewStateMode is set to Enabled

Am I missing something?  How do I keep the tree state as it is when I
click a link?
0
Dave
5/26/2010 8:45:00 PM
dotnet.framework.aspnet 1423 articles. 0 followers. Follow

2 Replies
1330 Views

Similar Articles

[PageSpeed] 32

"Dave" <Dave.Burkett@Jacobs.com> wrote in message 
news:2038c0ba-5328-4138-b615-777e02975478@c7g2000vbc.googlegroups.com...

> Am I missing something?  How do I keep the tree state as it is when I
> click a link?

This "feature" has always been there and I don't believe it's been addressed 
in v4, though I may be wrong about that...

Anyway, it's fairly easily fixed in code.

This article describes the process:
http://blog.apterainc.com/software/treeview-amnesia-and-you/


-- 
Mark Rae
ASP.NET MVP
http://www.markrae.net 

0
Mark
5/27/2010 10:13:35 AM
Nice, well written Article.  Thanks Mark!



On May 27, 5:13=A0am, "Mark Rae [MVP]" <m...@markrae.net> wrote:
> "Dave" <Dave.Burk...@Jacobs.com> wrote in message
>
> news:2038c0ba-5328-4138-b615-777e02975478@c7g2000vbc.googlegroups.com...
>
> > Am I missing something? =A0How do I keep the tree state as it is when I
> > click a link?
>
> This "feature" has always been there and I don't believe it's been addres=
sed
> in v4, though I may be wrong about that...
>
> Anyway, it's fairly easily fixed in code.
>
> This article describes the process:http://blog.apterainc.com/software/tre=
eview-amnesia-and-you/
>
> --
> Mark Rae
> ASP.NET MVPhttp://www.markrae.net

0
Dave
5/27/2010 10:47:44 AM
Reply:

Similar Artilces:

Exchange Delivery Delay (Error 4.4.7)
We recently installed SBS 2003 and are using Exchange 2003 for email. Everyone can log in and use exchange with no problems. All seems to be working ok. But some of the users are getting Non Delivery Reports. On some email messages. The reports are in the following formats: This is an automatically generated Delivery Status Notification. THIS IS A WARNING MESSAGE ONLY. YOU DO NOT NEED TO RESEND YOUR MESSAGE. Delivery to the following recipients has been delayed. carlos.caxias@dywid.pt Reporting-MTA: dns;maildywid.Dywid.co.uk Final-Recipient: rfc822;carlos.caxias@dywid.pt Action: d...

Print Preview #4
I would like to preview my worksheets that contains coloured cells as they will print on a BW printer so I know what my charts etc. will actually look like. How do I turn off the Print Preview in colour when printing to a BW printer? i.e. I want to see exactly what will print depending on what printer I go to (the BW or the Colour). Further, I am not asking about the Page Setup option of checkmarking Black and White as that will print in only Black and White and not scale my colours and patterns accordingly to the % they would actually print. Please advise and thank you. Deborah ...

how do i create 4 pie charts
Hi, Could I enquire if someone could show me the steps to create 4 pie charts in diagram (1 pie chart representing one calendar year)? How do I modify the different size of the pie chart? Thanks a lot. Hi, A chart can only contain a single Pie chart so you will need to create 4 charts. If you create chartobjects these can be embedded in a worksheet or a blank chart sheet. To adjust the size you can alter the plot area. You don't mention what you are using to determine the size of the pie but this page may be of use. http://www.andypope.info/charts/piesizer.htm Cheers Andy Mik...

Printing Checks #4
Do I have to buy checks that already have my account and routing number printed to use Money 2003 Standard? Yes. "Tom P" <anonymous@discussions.microsoft.com> wrote in message news:06b601c3aef9$dc7264c0$a301280a@phx.gbl... > Do I have to buy checks that already have my account and > routing number printed to use Money 2003 Standard? ...

CRM 4.0 Private/Public Views
How do I make a view private in CRM 4.0? There are a bunch of system views that we do not use and that we obviously cannot delete. I used to just make them private in CRM 3.0, but I cannot figure out where to do that in 4.0. We also have a lot of views that are private because they are shared between sales teams and it seems like the "private" option has disappeared for 4.0. If it is gone, what would I do to hide certain views? In CRM 4 public views can not be hidden, these pages give a way it can be done. http://mscrmuk.blogspot.com/2008/08/hiding-system-views-in-crm-40...

CRM 4.0 Email Router Mailbox not deleting items
We are using the Email Router for Dynamics 4.0. An account and mailbox has been setup called CRM Mail. This accounts mailbox has grown to 9 Gig. Upon further inspection it looks like there are "forwards" of individuals emails in the Inbox of this account, that have been sent from our CRM Users. Do these messages need to remain in the Inbox or can we safely delete them? Are they supposed to be automatically deleted? Also, why are all these emails showing up? Thanks all! The emails in the forward mailbox should be deleted automatically after being processed by the router. ...

Money 2004(and higher)and Windows Mobile 2003 Second Edition 4.21.
Do any of the versions of of Money sync scheduled transactions with pocket pc? If so, please advise your configuration/version that does this. Thank you, -- Dick Velting See http://money.mvps.org/downloads/pocketpc/default.aspx -- Regards Bob Peel, Microsoft MVP - Money For UK tips & fixes see http://support.microsoft.com/default.aspx?scid=fh;EN-GB;mny. I do not respond to any emails that I have not specifically asked for. "R Velting" <RVelting@discussions.microsoft.com> wrote in message news:0218FE95-1178-4962-9B1F-663F1C681E63@microsoft.com... > Do any of t...

Outlook shortcut bar #4
I add items to the shortcut bar and delete others. The next time I open Outlook, those I added are gone and those I deleted are back. ...

Rounding Problem #4
I'm performing a golf handicapping sheet and within that sheet I'm using an average of previous scores such as; In cell AM33 I have =average(q33,w33,ac33,ai33)-35 This value ends up as 11.5... My rounding goes up to 12 which is what I desire but... when I utilize that cell value to subtract 2 other values the sheet does not round properly..? Example: In cell AO33 I insert 48 In cell AP33 I insert =sum(AO33-AM33) Looking at AM33 as a 12 and looking at AO33 as 48, I expected the result to be 36 but it shows 37..! How can I make sure that the rounding carries into the new formula ...

Headers #4
How can I copy a picture in the header from a buissness from from work? ...

8 bytes vs. 4 bytes Struct member alignment
Hi, I have an VC++ application which I have to compile on **4 bytes Struct member alignment** in order to read correctly a binary file and pass the data to a complex structure. (As default, VC++ Struct member alignment compilation is 8 bytes. But if I compile as 8 bytes, the element of structure are not correctly interpreted). Part of this project (compiled as 4 bytes) should be integrated into a master application compiled as 8 bytes as default. Which is the way to deal with this 4 bytes and 8 bytes simultaneous? (I would prefer NOT to change the structure members and I would like to keep th...

switch identity #4
Need to recover my 2nd identity (Outlook Express) in Outlook 2003. Main identity works fine. Are there identities in Outlook 03. No, only profiles. What do you mean that you need to "recover" your identity? Outlook has no need for identities. --� Milly Staples [MVP - Outlook] Post all replies to the group to keep the discussion intact. Due to the (insert latest virus name here) virus, all mail sent to my personal account will be deleted without reading. After furious head scratching, Stu Kilgour asked: | Need to recover my 2nd identity (Outlook Express) in Outlook 2003. | M...

Click on link problems #2
When I click on a url link in email---a box opens saying "Open Link Browser". And also a browser window. How do I get rid of the smaller link browser? Read your reply on your post of the 17th? -- Robert Sparnaaij [MVP-Outlook] www.howto-outlook.com Tips of the month: -What do the Outlook Icons Mean? -Create an Office 2003 CD slipstreamed with Service Pack 1 ----- "Robin" <robinhood2@juno.com> wrote in message news:atmnk0pgs4m272iunkegt0rvq4ssjqisig@4ax.com... > When I click on a url link in email---a box opens saying "Open Link > Browser". A...

Set form field on double click
I am using MS Access 2003. I have a continuous form that is run off of a query "srbScientific Review". The query's criteria is set to [Enter Last Name] in the LastName field. That part works fine. I get my continuous form that shows LastName, DocID, and Title of Document. I would like to double click on the DocID and have the following happen: 1. Open another form "publications" 2. Set the SRBId field to the DocId field that I double clicked on. PLEASE help. I think I need to bookmark, clone.... I'm very confused. As a kick in the right ...

Copied tasks show as collapsed
I have two projects, one of which i copied some tasks from and copied into the other. Once i save the project and reopen it the copied tasks don't display and the id number shows a gap (60, 61, 62, 70, 71, 71). I have to collapse the entire project and then expand it to see the tasks. Any idea what would cause this behavior? Thanks. This is a multi-part message in MIME format. ------=_NextPart_000_00D5_01CA79B8.6C708FE0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi Jan, Welcome to this Microsoft Projec...

XML #4
How does one generate a XML code? If you have data in a dataset, you can have the dataset do it automatically: Dim x as string = DataSet.GetXML "Raj" <Raj@discussions.microsoft.com> wrote in message news:BC61AFF2-84EE-425E-8F05-1B02D2A9F317@microsoft.com... > How does one generate a XML code? ...

Can't click through on links in e-mail
Ever since one of those "critical upgrades" we have been unable to click through to a web page from links in e-mail. This is a real pain for links that say "click here" rather than the URL. A blank, white Explorer session opens along with an error window that says "Locate Browser Link" with a cursor blinking in the "file name" field. Any help? TIA Bob Should have mentioned that we are running XP Home edition V5.1 and Outlook 2002 (not Outlook Express) SP-2. "Bob" <usenetsp_mtrap@hotmail.com> wrote in message news:#TpOgKQyDHA.246...

Can you expand/collapse columns based on a reportitem/field values
I have a report that is driven by accounting periods. The columns are 1, 2, 3, Q1, 4, 5, 6, Q2...YTD. Currently when the report opens all that is shown is Q1, Q2, Q3, Q4, and YTD and the user can expand from there. What I want to happen is, if we are in Q2, I want columns 4,5,6, Q2 to be expanded. So the report should read Q1, 4,5,6, Q2, Q3, Q4, YTD. Is this possible? Thanks in advance Original Stealth, Certainly can. I created the following dataset: SELECT 'Q1' AS Expr1, 1 AS Expr2, 500 AS Expr3 UNION ALL SELECT 'Q1' AS Expr1, 2 AS Expr...

Mailbox Rights #4
On Exchange 5.5, I can log in to any user's mailbox using an account with the "Service Account Admin." permission. On Exchange 2003, what permissions do I need on a mailbox in order to do the same thing? When I use that same Service Account Admin. account (my Exchange 2003 joined my Exchange 5.5 site) to log in to a user's mailbox, I get an error in Outlook that I am unable to open the folders and Outlook quits. Thank you. Hello, This KB article will help you out: http://support.microsoft.com/default.aspx?scid=kb;[LN];821897 Hope that helps, Russ Maxwell This post...

To MS Support: Budget report bug in Money 2005 (and 2003,4)
Part of our income comes from investments and we have several brokerage accounts which are setup in Money 2002 as investment accounts with a linked cash account. Dividend, interest and capital gains income comes into these accounts and is then transferred to a separate checking account to pay our living expenses. Thus the investment accounts must be included in our budget. Money's budget feature is outstanding and crucial to our financial health. I have tried to upgrade from Money 2002 but am unable to because Money 2003, 2004 and 2005 have a show stopper bug that destroys al...

Tennessee Frist Sales Tax Holiday 8/4/06 to 8/6/06?
Hello, Today I got a memo from the Tennessee Department of Revenue for a Back-to-School Supplies, Clothing, and Computers Tax-Exempt During Tennessee's First Sales Tax Holiday. In August of this year, Tennessee will hold its first annual sales tax holiday, giving shoppers the opportunity to purchase certian school suppliers, computers and clothing tax-free for a specific period of time beginning at 12:01am on Friday, Aug 4 and ending at 11:59pl on Sunday, Aug 6. We have stores on all different parts of Tennessee with different items sales tax base on their location. I saw two opt...

ASP.NET vs SharePoint
Hi all in my work environment talking about the fact that ASP.NET pages are destined to die in the near future since superseded by SharePoint, allowing you to create even complex sites with just a few clicks and with the minimum code development. You what do you think about? Luigi On Feb 2, 9:47=A0am, Luigi <Lu...@discussions.microsoft.com> wrote: > Hi all > in my work environment talking about the fact that ASP.NET pages are > destined to die in the near future since superseded by SharePoint, allowi= ng > you to create even complex sites with just a few...

Forgotten Password #4
I need to gain access to my Money 2001 that I have on an old computer but have forgotten the password that I used back then. Is there any way I can find out what my password was? Does anyone know what file the password is kept in and if it's readable? Any help will be appreciated since it's very important that I retrieve some information from that year which I did not carry forward to the more current years. Thank you! You might be able to find a company which provides software to get the password out for you. I know of three, but there are probably others. http://money.mvps.org/faq...

More than 4 gigs - PAE
Am trying to figure out if. . . I have a server with more than 4 gigs of memory (We'll just say 5 gigs) running Windows Enterprise, and I throw the PAE switch, will the OS take the remaining 2 gigs of memory (After Exchange gets it's 3?) See http://blogs.technet.com/exchange/archive/2005/07/05/407330.aspx With Windows 2003 SP1, we can now throw the PAE switch without harm to the databases, I'm just wondering if it's worth having the extra memory to the OS available. On Fri, 26 Aug 2005 09:02:01 -0400, "Pat DiPersia" <pat@dipersia.com> wrote: >Am trying...

Re: How to remove xmlns attribute from XML document (.net)
Here is an updated link: Prevent Namespace Prefixes from Being Copied to the Output http://www.braintrove.com/Xslt/Articles/8/Prevent-Namespace-Prefixes-from= -Being-Copied-to-the-Output --=20 Greg Collins [Microsoft MVP] Visit Brain Trove ( http://www.BrainTrove.com ) ...