N
nobody
Ok, I give in (not up yet... just in). Can someone *PLEASE* point me to a
good "how to" or tutorial on designing composite WebControls? I obviously
have no clue what I'm doing. I think my problem might be that I'm a
"windows forms" person and this ASP thing is a different creature when it
comes to state and when/how you must persist it.
I'm adding a RadioButtonList to my WebControl
(me.conrols.add(m_RadioButtonList). I have an event handler for the
SelectedIndexChanged to store the currently selected index in m_Answer and I
have a readonly property Answer to allow the aspx to get the answer from my
control at any time (like when the user clicks a submit button). On the
aspx page, I have a button that just sets a label on the page to my
control's .Answer property. It's blank, even when I've made a selection in
the RadioButtonList. My SelectedIndexChanged event handler is never being
called to set m_Answer. And also, when the button is clicked, it redraws
the page (with the blank "Answer" label) with all the options in the
RadioButtonList in my control gone.
good "how to" or tutorial on designing composite WebControls? I obviously
have no clue what I'm doing. I think my problem might be that I'm a
"windows forms" person and this ASP thing is a different creature when it
comes to state and when/how you must persist it.
I'm adding a RadioButtonList to my WebControl
(me.conrols.add(m_RadioButtonList). I have an event handler for the
SelectedIndexChanged to store the currently selected index in m_Answer and I
have a readonly property Answer to allow the aspx to get the answer from my
control at any time (like when the user clicks a submit button). On the
aspx page, I have a button that just sets a label on the page to my
control's .Answer property. It's blank, even when I've made a selection in
the RadioButtonList. My SelectedIndexChanged event handler is never being
called to set m_Answer. And also, when the button is clicked, it redraws
the page (with the blank "Answer" label) with all the options in the
RadioButtonList in my control gone.