Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Checkbox Checked?

Author  Topic 

ninel
Posting Yak Master

141 Posts

Posted - 2006-04-12 : 15:47:57
I have a checkbox on a web form. As soon as a user checks it I would like to execute a stored procedure. I do not want to put the checkbox checked code behind a submit button.

Is there any way I can find out in vb.net if a checkbox was checked as soon as the user checks it?

Thanks,
Ninel

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2006-04-12 : 16:00:00
set AutoPostback="true" for the checkbox, and it will post back to the server as soon as a user checks it off. From there, you can caption the Check() event and call your stored procedure.
Go to Top of Page

ninel
Posting Yak Master

141 Posts

Posted - 2006-04-12 : 16:03:58
Thank you, I just did that and it worked.
Go to Top of Page
   

- Advertisement -