K
KK
Hello,
I´m new to ASP.NET and I'm trying to solve this problem:
I want to have two checkboxes and a submit button in my user control. This
user control will also have one public read-only propery (called e.g.
"Number") which will be "1" if both checkboxes will be checked and "0"
otherwise. This user control will be included in some webpage, that will
have one additional Label and nothing else.
Is it possible to write "1" or "0" to the Label depending on what user
checked in user control? I tried to "calculate" my property "Number" in
SubmitButton.Clicked event and read this property in Page.Load event but it
looks like this event executes before UserControl.SubmitButton.Clicked.
The only solution that I can see now is to move the button from the user
control to the page - than it should work. Is there any other solution?
Thanks Borek.
I´m new to ASP.NET and I'm trying to solve this problem:
I want to have two checkboxes and a submit button in my user control. This
user control will also have one public read-only propery (called e.g.
"Number") which will be "1" if both checkboxes will be checked and "0"
otherwise. This user control will be included in some webpage, that will
have one additional Label and nothing else.
Is it possible to write "1" or "0" to the Label depending on what user
checked in user control? I tried to "calculate" my property "Number" in
SubmitButton.Clicked event and read this property in Page.Load event but it
looks like this event executes before UserControl.SubmitButton.Clicked.
The only solution that I can see now is to move the button from the user
control to the page - than it should work. Is there any other solution?
Thanks Borek.