Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > OnCheckedChanged event as an Confirm(".....")

Thread Tools

OnCheckedChanged event as an Confirm(".....")

Klaus E. Frederiksen
Posts: n/a

I'm trying to find a way to show an Confirmation box when the
OnCheckedChange event on a CheckBox fires. Somthing like this:
chkShipped.Attributes.Add("OnCheckedChanged", "return confirm('Are You sure
You want to select this ?');").

The Confirmation box shows OK, but what I actually want is that a
CheckChanged event handler gets called depended on the result of the
Confirm. So I tried to add an eventhandler like the this:
AddHandler chkShipped.CheckedChanged, AddressOf ShippedCheckChanged
but I can't get it to work.

Is there any way to show a Confirmation box from within an event handler ?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DataGrid with Checkbox: Need both OnCheckedChanged and onclick client script Homa ASP .Net 3 07-23-2009 09:53 AM
asp checkbox checking for OnCheckedChanged value Maziar Aflatoun ASP .Net 3 12-29-2008 09:42 PM
OnCheckedChanged event does not seem to execute (checkbox ingridview) Danielle ASP .Net 1 06-08-2008 06:42 AM
Radiobutton oncheckedchanged event.... Mufasa ASP .Net 2 10-27-2007 11:57 AM
oncheckedchanged event is not firing everytime on checkbox Hitesh Jain ASP .Net Web Controls 4 10-15-2004 11:09 AM