?
Solved

treeview, node value, javascript

Posted on 2012-03-28
2
Medium Priority
?
767 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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

764 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