CheckBox

  • Thread starter Thread starter Jim Heavey
  • Start date Start date
J

Jim Heavey

I have two checkboxes on a form. I changed the Autopostback to "true". I
code for the check change event. When I click one of the checkboxes, it
does perform the Page load event, but does not perform the Check Change
event.

I do not see in the windows generated code (C#) that it generated the code
"register" of the event. Should I? I am using VS.Net, and I would have
thought it would of registered the event. How do I get the event
registered, or is that even my problem?

Thanks in advance for your assistance!!!!!!!!!
 
Jim said:
I have two checkboxes on a form. I changed the Autopostback to "true". I
code for the check change event. When I click one of the checkboxes, it
does perform the Page load event, but does not perform the Check Change
event.

I do not see in the windows generated code (C#) that it generated the code
"register" of the event. Should I? I am using VS.Net, and I would have
thought it would of registered the event. How do I get the event
registered, or is that even my problem?

Jim, how did you create the Check Chnage event? Did you double-click
the checkbox in the VS.NET Designer? Or did you just go straight to the
code-behind class and add the method yourself?

--

Scott Mitchell
(e-mail address removed)
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

* When you think ASP, think 4GuysFromRolla.com!
 
I first Double click on the Event and that created the "method pattern". I
then changed the name of this method, as I was going to call it from
several places. I then went back in the IDE and pasted the new name there
in all of the controls that I needed the method for...

Does this help?
 
Back
Top