How to access public method of user control?

G

Guest

I have a default.aspx page. Default.aspx has placeholders. ASCX user controls
are loaded into these placeholders at Page_Load.

Each user control has a MultiView, within that there are two views for each
user control. One view is the “readonly†view and the other is the “Edit†view

The key is that I only want one user control to be in EDIT mode at a given
time. If the user tries to change the ActiveViewIndex of control A to be in
EDIT mode, then I want to reset the ActiveViewIndex of all other controls =
0; for all other user controls’ MultiView objects (B,C,D). . Likewise, if
they go into “edit mode†on user control B, then A,C,D need to reset their
ActiveViewIndex = 0;

How do I access the ActiveViewIndex of the other user controls outside the
current control I’m processing? (given that each control is defined within
its own .ASCX page? ). I did change the cancel buttons on each of the user
controls from protected to public, but Im stuck from there.

Any help appreciated. I hope this made sense.
 
K

Kevin Spencer

The Controls are all part of the same Page. So, you access them via the
Page.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
Networking Components, Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 

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