469,925 Members | 1,531 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,925 developers. It's quick & easy.

setting an ASPX variable from ASCX

I've figured out how to read a variable in one ASCX file from another. Works
great.

I now would like to have one ASCX file set a variable in its parent ASPX or
another ASCX file. Can that be done? I can't read the variable from the ASCX
or ASPX file, because the control that is setting the variable is being
loaded dynamically, so I can't reference it directly (as the other control
wouldn't necessary know it is there.)

Google returns lots of the opposite...setting a variable in an ASCX file
from ASPX, but not the other way around.

-Darrel
Nov 18 '05 #1
1 2322
You could raise an event...

"Darrel" <no*****@nospam.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I've figured out how to read a variable in one ASCX file from another.
Works great.

I now would like to have one ASCX file set a variable in its parent ASPX
or another ASCX file. Can that be done? I can't read the variable from the
ASCX or ASPX file, because the control that is setting the variable is
being loaded dynamically, so I can't reference it directly (as the other
control wouldn't necessary know it is there.)

Google returns lots of the opposite...setting a variable in an ASCX file
from ASPX, but not the other way around.

-Darrel

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Tom | last post: by
6 posts views Thread by Martin Eyles | last post: by
5 posts views Thread by Fernando Chilvarguer | last post: by
2 posts views Thread by John Haycock | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.