C
Coleen
Hi Jim Thanks for your help.
I changed the table from an ASP.Net table to an HTML table. I am till
having the problem of the control placed inside the table not triggering the
on SelectedIndexChanged event. To be honest, I don't have a clue what you
are talking about as to containers and panels - I'm sorry. Can you please
send me a link to an example on how to do this? So far, everything I've
tried has not worked.
What I have to have happen is the on the dropdown selection, I need a set of
labels and text boxes to appear to allow the user to enter data pertaining
to the payment type. I wanted to use a table for alignment purposes, but I
don't have to. I DO have to dynamically have the text in the labels change,
and I DO have to have the on SelectedItemChanged or SelectedIndexChanged
event be triggered. Do you have any suggestions, links to examples, etc.
that you could point me to? Thanks so very much for your help
Coleen
From: Jim Cheshire (e-mail address removed)
Coleen,
It doesn't matter. The panel is added during design-time and you can put
it anywhere. It's simply a placeholder for the dynamic controls that will
be added later.
[MSFT]
MCP+I, MCSE, MCSD, MCDBA
ASP.NET Developer Support
(e-mail address removed)
This post is provided "AS-IS" with no warranties and confers no rights.
--------------------
From: "Coleen" <[email protected]>
I guess I'm a little confused. Does the table get placed inside the
container? I've never used containers before, so I honestly don't have a
clue where to start coding..."just add the controls to the Controls
collection of pnlControls" is the control created and then the entire
table placed inside, or is the container placed inside the table?
Coleen,
A table is fine. The thing is that you need to add your dynamic
controls to a container other than the page. In other words, suppose you
were
adding them to a Panel control called pnlControls. You would just add
the controls to the Controls collection of pnlControls.
pnlControls.Controls.Add(myControl)
That will prevent the controls from getting added outside of the <form
tag and causing a problem.
Jim Cheshire [MSFT]
I changed the table from an ASP.Net table to an HTML table. I am till
having the problem of the control placed inside the table not triggering the
on SelectedIndexChanged event. To be honest, I don't have a clue what you
are talking about as to containers and panels - I'm sorry. Can you please
send me a link to an example on how to do this? So far, everything I've
tried has not worked.
What I have to have happen is the on the dropdown selection, I need a set of
labels and text boxes to appear to allow the user to enter data pertaining
to the payment type. I wanted to use a table for alignment purposes, but I
don't have to. I DO have to dynamically have the text in the labels change,
and I DO have to have the on SelectedItemChanged or SelectedIndexChanged
event be triggered. Do you have any suggestions, links to examples, etc.
that you could point me to? Thanks so very much for your help
Coleen
From: Jim Cheshire (e-mail address removed)
Coleen,
It doesn't matter. The panel is added during design-time and you can put
it anywhere. It's simply a placeholder for the dynamic controls that will
be added later.
[MSFT]
MCP+I, MCSE, MCSD, MCDBA
ASP.NET Developer Support
(e-mail address removed)
This post is provided "AS-IS" with no warranties and confers no rights.
--------------------
From: "Coleen" <[email protected]>
I guess I'm a little confused. Does the table get placed inside the
container? I've never used containers before, so I honestly don't have a
clue where to start coding..."just add the controls to the Controls
collection of pnlControls" is the control created and then the entire
table placed inside, or is the container placed inside the table?
Coleen,
A table is fine. The thing is that you need to add your dynamic
controls to a container other than the page. In other words, suppose you
were
adding them to a Panel control called pnlControls. You would just add
the controls to the Controls collection of pnlControls.
pnlControls.Controls.Add(myControl)
That will prevent the controls from getting added outside of the <form
tag and causing a problem.
Jim Cheshire [MSFT]