[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

treeview, node value, javascript

Posted on 2012-03-28
2
Medium Priority
?
778 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 36

Accepted Solution

by:
Miguel Oz earned 2000 total points
ID: 37779165
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
ID: 37780157
Thanks
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…
Suggested Courses

649 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