Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capturing a postback that doesn't fire Page_Load

Status
Not open for further replies.

deb18

Programmer
May 19, 2003
40
US
I'm using a third party TreeView control (from a company called "Visual ASP"). When the user clicks on a child node, it does what seems to be a postback: you hear the little "click" and the URL (in the address bar of the browser) changes. But the Page_Load eventhandler doesn't fire - i.e. execution doesn't stop at a breakpoint in Page_Load. How can I handle that event?

Thanks very much!

 
If the URL changes, then are you going to a different page? If so, then your Page_Load wouldn't fire for that same page.

That's assuming that the click is wired to a client side redirect. Is that the case? What is being called when you click the node? Is it a javascript function from Visual ASP? What's it do?

-paul

penny.gif
penny.gif

The answer to getting answered -- faq855-2992
 
Paul,

No, I'm not going to a different page - it's the same page.

I don't know what's being called when I clicked the node - it's a third party control. It may be a JS function - I don't know.

What it's supposed to do is take you to the URL which you specified in code. In my case, I have the code appending a pound-sign with a value onto the URL. What I want to do now (my problem/question) is to grab that "#"/value from the URL-string - which I know how to do, but I just can't find an event-handler to handle it...

Thanks,
Rick
 
Have a look at "View Source" on the page that is created and for the node that is created, it sounds like there will be a javascrpt event attached to the "onclick" event. If there is, hae a look at which javascript function is caled and what it does.

----------------------------------------------------------------------

Need help finding an answer?

Try the search facilty ( or read FAQ222-2244 on how to get better results.
 
Ca8msm, nope - no "onclick" event or any function that seems to be called with clicking of a child node...

:-?
Rick
 
What event does it have? Could you post some example code that is generated for a node?

----------------------------------------------------------------------

Need help finding an answer?

Try the search facilty ( or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top