tree
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngwebcontrols' list.


Enki
-- Moved from [aspngibuyspy] to [aspngwebcontrols] by Yannick Smits <Click here to reveal e-mail address> --

Hi,
is there some working tree control for IBuySpy? I have problem with tree
control from MS, I think because it's inherited from different control.
Problem is in server events, when I set autopostback to true and want to set
session variable on SelectedIndexChange, this part of code does not work
(probably because link redirects before executes).
All I need is to make tree, which stays expanded on last selected value (on
differend pages), but it looks like unhuman target.
Or, other way: is possible to redirect to NavigateUrl by code after storing
session?
Adam

Reply to this message...
 
    
Vladimir Chernetsky
Hmm..I have no problem with keeping last selected
index in the session. Just place it in the Page_Load handler. Look:

private void Page_Load(object sender, System.EventArgs e)
        {
            if(!Page.IsPostBack)
            {
                ...
                Session["SelectedTreeCompanyID"] TreeCtrl.Nodes[0].NavigateUrl.Substring(TreeCtrl.Nodes[0].NavigateUrl.IndexO
f                    ("=")+1);
            }
        }

-----Original Message-----
From: Enki [mailto:Click here to reveal e-mail address]
Sent: Monday, June 17, 2002 6:45 PM
To: aspngwebcontrols
Subject: [aspngwebcontrols] tree

-- Moved from [aspngibuyspy] to [aspngwebcontrols] by Yannick Smits
<Click here to reveal e-mail address> --

Hi,
is there some working tree control for IBuySpy? I have problem with tree
control from MS, I think because it's inherited from different control.
Problem is in server events, when I set autopostback to true and want to set
session variable on SelectedIndexChange, this part of code does not work
(probably because link redirects before executes).
All I need is to make tree, which stays expanded on last selected value (on
differend pages), but it looks like unhuman target.
Or, other way: is possible to redirect to NavigateUrl by code after storing
session?
Adam

| [aspngwebcontrols] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebcontrols.asp = JOIN/QUIT
Reply to this message...
 
 
System.EventArgs
System.Web.UI.Page




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com