How to pass data from one control (ascx) to another?

S

simon

Hello,
relatively new .net programmer. using vb.net (v2.0)

I have an aspx page that contains 2 user controls (ascx) on it.
the left control is basically navigation hyperlinks
the right control is basically content display depending on what was
clicked in the left control.
** trying it this way to avoid using frames **

I was hoping to get some help with was how to pass info to the right
control what was selected from the left control (IDs, etc). can you
specify a "target" like in frames in the URL of the nav link? not
sure how to "call" the right control with data to drive its display.
I'm looking to avoid using the main "page" as the URL in the nav
control and then read the query string variables in the content
control as I'm trying to avoid doing a full page read/refresh/reload,
which leads into my next question...

I'm also looking to have only the right control refresh itself and
leave the remainder of the page untouched (as to not disrupt the
current state of the nav links control, there is collapsible tree
like display there). the nav control is populated by data from a
database and fed into a label field (not generated in vb code). I'm
pretty sure the only answer to that question is to use AJAX. so if
you happened to know a good link to show how to do this I'd appreciate
that too.

thank you for reading this. simon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top