ASP.NET is explicitly sent to the server from checking the OnCheckChanged Event checkbox

I have an asp: checkbox control and I want to change the visibility of the checkbox after it is checked or unchecked. For this, I'm trying to use the OnCheckChanged event, which apparently only fires after a message to the server. This means my Label's visibility doesn't change immediately. How can I send a message to the server (and save the state of my form) so that when I click on the electroogram, the label Label appears immediately?

0


source to share


2 answers


Set AutoPostBack = true for the checkbox.



0


source


Well, do you need a checkbox control to send to the server on click?



If the answer is no, you can use an html control and use javascript to handle the onclick event. This way the action is immediate and you save the message back to the server.

0


source







All Articles