D
darrel
Karl has helped me in the past in regards to communicating between controls
and pages:
http://www.openmymind.net/communication/index.html#3.1
I ended up going down the interfaces path and actually got that working
fairly well, but, then, in the end, decided that was overkill and that it
would perhaps make more sense to start over using a much more simpler
communication between pages.
So, this is what I have:
getVariables.ascx
otherControl.ascx
page.aspx
getVariables reads an xml file and sets a variety of strings. We'll use this
generic one:
public pagePropPageTitle as string
'logic to read xml and set the value
on page.aspx, I want to get the pagePropPageTitle value and then send that
onto otherControl.ascx
Is there a way to grab that value directly? I can't just go
getVariables.pagePropPageTitle because that isn't declared. Is there another
way to go about this?
Looking at the above tutorial, it talks about how to do this using
dynamically loaded controls. Is that the only way? If so, is there anything
wrong with dynamically loading all of your controls via the codebehind?
-Darrel
and pages:
http://www.openmymind.net/communication/index.html#3.1
I ended up going down the interfaces path and actually got that working
fairly well, but, then, in the end, decided that was overkill and that it
would perhaps make more sense to start over using a much more simpler
communication between pages.
So, this is what I have:
getVariables.ascx
otherControl.ascx
page.aspx
getVariables reads an xml file and sets a variety of strings. We'll use this
generic one:
public pagePropPageTitle as string
'logic to read xml and set the value
on page.aspx, I want to get the pagePropPageTitle value and then send that
onto otherControl.ascx
Is there a way to grab that value directly? I can't just go
getVariables.pagePropPageTitle because that isn't declared. Is there another
way to go about this?
Looking at the above tutorial, it talks about how to do this using
dynamically loaded controls. Is that the only way? If so, is there anything
wrong with dynamically loading all of your controls via the codebehind?
-Darrel