CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 3/30/2006 4:43:52 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 52 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
xStrongTowerx
Asp.Net User
OnClick events in TreeView controls3/30/2006 4:43:52 PM

0/0

Hi all,

I'm trying to add a manual onclick event for certain elements in my treeview control, but it's not working.

Here's how I tried it:

tndLevel2.Text = "<a href=""javascript:void(0);"" " & _
"onclick=""alert('bob');"">" & tndLevel2.Text.ToString & "</a>"


So... that didn't work.  And now I'm even having a hard time getting rid of the Select action

tndLevel2.SelectAction = TreeNodeSelectAction.None

It still posts back when I click on a node, which is not what I want because this particular treeview is being used inside an Ajax application, so any postback isn't going to go where ASP.NET thinks it's going to go.

Thanks.

 


_lord_design
xStrongTowerx
Asp.Net User
Re: OnClick events in TreeView controls3/30/2006 7:06:06 PM

0/0

Never mind!  I have IE set to check for new pages every visit, but it wasn't working.  Closing the window and opening a new one allowed my changes to show up, along with the onclick.

_lord_design
xStrongTowerx
Asp.Net User
Re: OnClick events in TreeView controls3/30/2006 8:18:51 PM

0/0

Okay, I have a new question.  I'm using ASP.NET for the server-side code in an Ajax application.  My problem is that I have so much client-side code that when I load new content into the document which includes script within its own <script> tags, the functions within those tags cannot be found.  The only way to get them to work is to put the js functions within the main page's <head> tags.

Unfortunately, this means my ASP.NET treeview doesn't work.

I'll try to diagram this out:

Main Window looks kinda like this:

<head>
...various scripts, included in the page as well as referencing external .js
files via src attribute...
</head>
<body>
    <div>
    Main content here...  Clicking on something empties the HTML of this
    div, creates a new div using JavaScript, and uses XMLHttpRequest object
    to replace what you see here.  Never able to add new functions to the
    JavaScript this way, unless it's all included inline...
    </div>
<iframe>There's one of these in there too.</iframe>
<body>


Any ideas?

_lord_design
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Rapid Application Development with Mozilla Authors: Nigel McFarlane, Pages: 770, Published: 2003
Professional ASP.NET 2.0 Server Control and Component Development Authors: Shahram Khosravi, Pages: 1186, Published: 2006
Programming Visual Basic 2005 Authors: Jesse Liberty, Pages: 548, Published: 2005
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Pro ASP.NET Web Forms Techniques Authors: Alex Homer, Pages: 580, Published: 2003
Visual Basic.Net by Example Authors: Gabriel Oancea, Robert P. Donald, Pages: 976, Published: 2002
Access 2007 VBA Programmer's Reference Authors: Teresa Hennig, Robert G. Cooper, Rob Cooper, Geoffrey L. Griffith, Armen Stein, Pages: 1110, Published: 2007
Visual Basic.NET Black Book Authors: Steven Holzner, Pages: 1144, Published: 2002
ASP. NET V. 2. 0-the Beta Version: The Beta Version Authors: Alex Homer, Dave Sussman, Rob Howard, Pages: 620, Published: 2004
Inside Delphi 2006 Authors: Ivan Hladni, Pages: 742, Published: 2006

Web:
OnClick events in TreeView controls - ASP.NET Forums Re: OnClick events in TreeView controls. 03-30-2006, 3:06 PM. Contact ... Re: OnClick events in TreeView controls. 03-30-2006, 4:18 PM. Contact ...
OnClick events in TreeView controls - ASP.NET Forums I'm trying to add a manual onclick event for certain elements in my treeview control, but it's not working. Here's how I tried it: ...
Tree View Control - SLX 6.1 - ITtoolbox Groups Treeview control. Most of the Treeview's functionality is available through these objects and the OnExpanding and OnClick events. ...
Sharepoint and ASP.NET: Custom TreeView with a Select (onclick) event Jan 25, 2008 ... Custom TreeView with a Select (onclick) event. One thing that disturbs me a bit is that the TreeView control does not have an event that is ...
ACC97: Migrating from Data Outline Control to TreeView Control The following table compares the events in the two controls and identifies where no corresponding event is available. Data Outline Control Event TreeView ...
Onclick event for Treeview node - telerik Forum I can get the Treeview to update another control using a RadAjaxPanel, ... Is the Treeview control supposed to work with an AjaxManager? ...
Adam Semel's ASPNET Blog : Tree Huggin! This time we are looking for an ASPNET TreeView control, but we need to be ... and again for the code that we added to the OnClick method (__doPostback). ...
CodeProject: Enhancing TreeView: Customizing LabelEdit. Free ... What we have found is that BeforeLabelEdit and AfterLabelEdit events of TreeView give you no control over the LabelEdit process, except the possibility to ...
Points to share: Extending the ASP.NET TreeView control The scenario we had was we were using a TreeView control to create a menu ... Add("onclick", "TreeNodeCheck()") somewhere in your c# code (I put it in the ...
Firing javascript events using webbrowser control Tree View, List View (postings sorted by date) ... onclick events from VB.NET? ( eventually will also need to execute other ...




Search This Site:










serious newbie question

problem with avalon and vs.net 2005

cls-compliant warning message

how to change custom module version ?

formatting date of an rss feed using exslt

how to use grpups with membership, roles, profile provider

enterprise library and web hosting

how do i restrict a webpart to a particular webpartzone only

login status and return url

dnn 3.0.10 bug - module upload

unselecting root node after filling up the treeview

could not connect to database: access dataprovider

unable to view site off the server

error message doesn't appear

changing the default language of the dataset designer class code

dnn 3.08 and 3.08 slow response

pulling out the users dotnetnuke password

my big headache about session sharing.

reference c# module

stopping the back button

desactivate the password rules in asp membership

portal (c#) want to create a new custom module definition

mozzila firefox

on-line documentation (.chm)

dnn installation problem

werid install problems!! v3.0.13 please help...

membership credential verification failed.

looking for good dnn hosting

newbie: masterpage and loginstatus control

no admin tab

 
All Times Are GMT