CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 10/11/2005 5:45:57 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 24 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
Yelnoc
Asp.Net User
Can't get imagurl from TreeView node10/11/2005 5:45:57 PM

0/0

Hello - I'm trying to GET the ImageUrl from a treeview node. I can set it OK, but get an empty string when I fetch it. It's also empty to the Locals window.

I wan't the ImageUrl as a poor man's way to determine the type (parent can contain 2 different "types" of nodes ) of node that was expanded. Perhaps there's a better way.

Can anyone confirm that this is a problem with 2005 RC?

Thanks!


protected
void ExpandTreeNode(object sender, TreeNodeEventArgs e)

{

string sImage = e.Node.ImageUrl;

// event - add forms

if (sImage.IndexOf("Event") > 0)

{

int iEventID = Convert.ToInt32(e.Node.Value.ToString());

//fetch forms

DataSet ds = Evt.DB_DAL.evt_reg_tree_forms_select(iEventID);

//add level 1 relationship nodes

foreach (DataRow row in ds.Tables[0].Rows)

{

string sNodeText = "&nbsp;&nbsp;" +

row["caption"].ToString() +  " (" +

row["reg_count"].ToString() + ")";

addTreeNode(e.Node, sNodeText, sNodeText, "Form.gif", true);

}

}

}

1 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Can't get imagurl from TreeView node - ASP.NET Forums Re: Can't get imagurl from TreeView node. 10-11-2005, 5:01 PM. Contact ... Re: Can't get imagurl from TreeView node. 10-12-2005, 12:35 PM ...
Master Pages, Themes and Navigation Controls - ASP.NET Forums Is there a way I can put treeview in a scrollable box and make it... by wyx2000 ... Can't get imagurl from TreeView node by Yelnoc. Not Resolved ...
Can't get imagurl from TreeView node - ASP.NET Forums Re: Can't get imagurl from TreeView node. 10-11-2005, 5:01 PM. Contact ... Re: Can't get imagurl from TreeView node. 10-12-2005, 12:35 PM ...
Master Pages, Themes and Navigation Controls - ASP.NET Forums Is there a way I can put treeview in a scrollable box and make it... by wyx2000 ... Can't get imagurl from TreeView node by Yelnoc. Not Resolved ...
Can't get imagurl from TreeView node - ASP.NET Forums Re: Can't get imagurl from TreeView node. 10-11-2005, 5:01 PM. Contact ... Re: Can't get imagurl from TreeView node. 10-12-2005, 12:35 PM ...
Master Pages, Themes and Navigation Controls - ASP.NET Forums Is there a way I can put treeview in a scrollable box and make it... by wyx2000 ... Can't get imagurl from TreeView node by Yelnoc. Not Resolved ...
Can't get imagurl from TreeView node - ASP.NET Forums Re: Can't get imagurl from TreeView node. 10-11-2005, 5:01 PM. Contact ... Re: Can't get imagurl from TreeView node. 10-12-2005, 12:35 PM ...
Master Pages, Themes and Navigation Controls - ASP.NET Forums Is there a way I can put treeview in a scrollable box and make it... by wyx2000 ... Can't get imagurl from TreeView node by Yelnoc. Not Resolved ...
Can't get imagurl from TreeView node - ASP.NET Forums Re: Can't get imagurl from TreeView node. 10-11-2005, 5:01 PM. Contact ... Re: Can't get imagurl from TreeView node. 10-12-2005, 12:35 PM ...
Master Pages, Themes and Navigation Controls - ASP.NET Forums Is there a way I can put treeview in a scrollable box and make it... by wyx2000 ... Can't get imagurl from TreeView node by Yelnoc. Not Resolved ...




Search This Site:










masterpage "enableviewstate=false" breaks dropdownlist_selectedindexchanged event

how to include the javascript in master page when .js is specified seperate in the project

two web forms with masterpage, should be moved to master page

menu control problem in ie 7

login control and themes query

about menu control

stylesheettheme cannot be set programatically?

sitemappath and rewriter problems

how to change the header falsh programmatically?

dynamic theme and master page

help! 2 sitemap nodes with same url = error!

the file web.sitemap required by xmlsitemapprovider does not exist

menuitem and securitytrimming

size of content place holder

asp.net themes skin

vertical aligning problems again

using masterpage without design time feature..

sitemapnode denying users (not allow) - security trimming

master page postback result with gridview rowcommand

weird asp:menu problem.

any insights into controlling treeview checkbox state via javascript?

menu control doesn't support target="_blank"?????

difficult to control the style of the menu in asp.net 2.0

css

how to call form elements?

selecting a selected treeview-node ?

double post back on tree view control

is it possible to set border property for contentplaceholder?

can't run website using template

master page in vb.net using web matrix

  Privacy | Contact Us
All Times Are GMT