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.
Author |
Topic |
jhermiz
3564 Posts |
Posted - 2004-10-02 : 13:51:16
|
In asp.net ? You've got to be kidding me :(.I see a CheckChanged event but nothing for a click event.And I noticed when I clicked the check box it doesnt fire the CheckChanged event...How do I fire an event when a user clicks a check box on my web site?For instance I have three check boxes:chkOpen (Open Issues)chkClosed (Closed Issues)chkOverdue (Overdue Issues)When a user clicks one of these I want to be able to pulloff specific records and load them in a grid...But the problem is this is not happening right now...I put a break point but the CheckChanged event doesnt fire when you click the check box.Anyone ? |
|
gpl
Posting Yak Master
195 Posts |
Posted - 2004-10-02 : 17:31:39
|
I have an idea you have to use the Click event, but I have no docs or examples here in front of me.Graham |
 |
|
jhermiz
3564 Posts |
Posted - 2004-10-02 : 17:41:03
|
quote: Originally posted by gpl I have an idea you have to use the Click event, but I have no docs or examples here in front of me.Graham
Huh ?I just stated there is NO click event for this asp.net checkbox.Where is Mike P when you need him!I want to run code behind the click of a check box...but there is no click event. The click change event doesnt fire. Do I have to use jscripot for this?What about the postback property?ARRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR :( |
 |
|
gpl
Posting Yak Master
195 Posts |
Posted - 2004-10-02 : 19:28:08
|
oops, got my .net and jscript mixed up, I actually meant to say onClickCheckChanged ought to work, according to the book I just dug out, but see this link, seems to say you have to add the event handling code manually.http://www.dotnet247.com/247reference/msgs/43/219274.aspxGraham |
 |
|
jhermiz
3564 Posts |
Posted - 2004-10-02 : 22:13:31
|
That didnt help since it was C#.Anyone else ?Thanks, |
 |
|
graz
Chief SQLTeam Crack Dealer
4149 Posts |
Posted - 2004-10-03 : 09:56:56
|
I use the CheckChanged event to capture clicks on a checkbox. There is not Click event that I know of. Do you have AutoPostBack set to true for the CheckBox?===============================================Creating tomorrow's legacy systems today.One crisis at a time. |
 |
|
MichaelP
Jedi Yak
2489 Posts |
Posted - 2004-10-03 : 18:38:01
|
Remember the Attributes.Add() think we talked about for your image button problem? Maybe that would work here, or change them to Radio buttons. Might make more sense as radio buttons anyway. Also, LinkButtons might work as well.Michael<Yoda>Use the Search page you must. Find the answer you will.</Yoda> |
 |
|
jhermiz
3564 Posts |
Posted - 2004-10-04 : 07:14:04
|
hmm radio buttons...do those have a click event ?Thanks,Jon |
 |
|
jhermiz
3564 Posts |
Posted - 2004-10-04 : 07:38:44
|
arfhhhhhhhhhhhhhhgraz was right...stupid autopostback = true :-dThanks Man,Much appreciated! |
 |
|
|
|
|
|
|