Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > AJAX 101 -- event not firing

Reply
Thread Tools

AJAX 101 -- event not firing

 
 
John Mott
Guest
Posts: n/a
 
      09-14-2007
This is a total ID-10T error, but since its my first attempt I'm missing the
obvious.

I downloaded the framework, create an AJAX enabled app, added a page, and
added an update panel with this:

<asp:UpdatePanel ID="updateCategory" runat="server">
<ContentTemplate>
<asp:CheckBox runat="server" ID="chkCategory"
OnCheckedChanged="chkCategory_OnCheck" />
</ContentTemplate>
</asp:UpdatePanel>

However, the event isn't firing on click, the events are queued until the
next page refresh. Is there a 'hey dummy' checklist? No errors, just no
events.

thanks,

john


 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      09-14-2007
if you want the checkbox to post to the server when chcecked, set
AutoPostBack = true

-- bruce (sqlwork.com)

John Mott wrote:
> This is a total ID-10T error, but since its my first attempt I'm missing the
> obvious.
>
> I downloaded the framework, create an AJAX enabled app, added a page, and
> added an update panel with this:
>
> <asp:UpdatePanel ID="updateCategory" runat="server">
> <ContentTemplate>
> <asp:CheckBox runat="server" ID="chkCategory"
> OnCheckedChanged="chkCategory_OnCheck" />
> </ContentTemplate>
> </asp:UpdatePanel>
>
> However, the event isn't firing on click, the events are queued until the
> next page refresh. Is there a 'hey dummy' checklist? No errors, just no
> events.
>
> thanks,
>
> john
>
>

 
Reply With Quote
 
 
 
 
John Mott
Guest
Posts: n/a
 
      09-14-2007

Thank you, that was it. I guess I assumed that putting it in a panel implied
a server hit, but it makes more sense to have the controls do what they
normally do.

John

> "bruce barker" wrote:
> if you want the checkbox to post to the server when chcecked, set
> AutoPostBack = true



>
> -- bruce (sqlwork.com)
>
> John Mott wrote:
>> This is a total ID-10T error, but since its my first attempt I'm missing
>> the obvious.
>>
>> I downloaded the framework, create an AJAX enabled app, added a page, and
>> added an update panel with this:
>>
>> <asp:UpdatePanel ID="updateCategory" runat="server">
>> <ContentTemplate>
>> <asp:CheckBox runat="server" ID="chkCategory"
>> OnCheckedChanged="chkCategory_OnCheck" />
>> </ContentTemplate>
>> </asp:UpdatePanel>
>>
>> However, the event isn't firing on click, the events are queued until the
>> next page refresh. Is there a 'hey dummy' checklist? No errors, just no
>> events.
>>
>> thanks,
>>
>> john



 
Reply With Quote
 
John Mott
Guest
Posts: n/a
 
      09-14-2007

Thank you again. The next thing i found was that I can't figure out how to
pass a value back in through a checkbox. It never occurred to me before that
the <asp:checkbox> didn't have a "value" attribute, so how do you use a
checkbox to send a value (like a key value to set or clear in a collection)
back into the server?

absent this ability i'll have to implement a button and some sort of
mark/not marked state, which the checkbox is perfect for.

thanks again

john

"bruce barker" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> if you want the checkbox to post to the server when chcecked, set
> AutoPostBack = true
>
> -- bruce (sqlwork.com)
>
> John Mott wrote:
>> This is a total ID-10T error, but since its my first attempt I'm missing
>> the obvious.
>>
>> I downloaded the framework, create an AJAX enabled app, added a page, and
>> added an update panel with this:
>>
>> <asp:UpdatePanel ID="updateCategory" runat="server">
>> <ContentTemplate>
>> <asp:CheckBox runat="server" ID="chkCategory"
>> OnCheckedChanged="chkCategory_OnCheck" />
>> </ContentTemplate>
>> </asp:UpdatePanel>
>>
>> However, the event isn't firing on click, the events are queued until the
>> next page refresh. Is there a 'hey dummy' checklist? No errors, just no
>> events.
>>
>> thanks,
>>
>> john



 
Reply With Quote
 
 
 
Reply

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
firing button click event before page load event.....???? GauravGupta ASP .Net 4 01-19-2012 06:52 AM
TkInter bind() event is not firing event trigger Anthony Papillion Python 3 06-23-2010 12:55 AM
AJAX User Control Event's not firing... Dan Bass ASP .Net 1 07-09-2008 07:57 PM
Google AutoFill prevents text_changed event from firing in ajax updatepanel Rissoman@gmail.com ASP .Net 1 05-17-2007 08:05 PM
AJAX IDE and AJAX TOOL--The Release of JoyiStar AJAX WebShop 3 Beta minnie Java 1 12-13-2006 06:29 AM



Advertisments