Solved

treeview, node value, javascript

Posted on 2012-03-28
2
729 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
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how i fix Remove render-blocking JavaScript 3 48
javascript comparing two dates 3 17
cannot connect to sqlserver 8 25
Question about JQuery and asp.net 3 23
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
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…

816 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

12 Experts available now in Live!

Get 1:1 Help Now