Solved

treeview, node value, javascript

Posted on 2012-03-28
2
680 Views
Last Modified: 2012-06-27
I'm using a treeview control.  I'm setting a string into the value of the node.  However, when I retrieve this value from Javascript, it's not the same.   See attached file.

looks like backslash comes out as "*|*".  Is this normal?  Why?

My node value is a URL.  From javascript, I want to call showModalDialog and pass the URL.  I supposed i just need to convert the "*|*" into a backslash?
nodevalue.png
nodevalue1.png
0
Comment
Question by:HLRosenberger
2 Comments
 
LVL 35

Accepted Solution

by:
Miguel Oz earned 500 total points
Comment Utility
You need to encode your url to show it as node value, check:
http://www.dotnetperls.com/encode-html-string

Alternative: Use the treenode navigateurl property to set your url and have a meaningful description in your node.
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.treenode.navigateurl.aspx#Y0
0
 
LVL 1

Author Closing Comment

by:HLRosenberger
Comment Utility
Thanks
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now