?
Solved

treeview, node value, javascript

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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
Course of the Month14 days, 13 hours left to enroll

840 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