473,387 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Button click event not firing

I have a page with bunch of user controls and standard controls on the page.
And then I have a Button control on the page which is used to save the data
on server side. All was working fine and dandy till yesterday. Today the
button click event started showing some weired behavior. Some time the code
will not get into that handler. And I have tracked down the pattern when it
is not working.
I have 2 combo box controls on the page which trigger AJAX requests when
selection is changed in them. And these AJAX calls propulate few other
controls when response comes back. When any of these AJAX calls get
triggered, after that if page initiates a post back, then the button's click
handler never gets called.

Any idea what could be going wrong?
Feb 14 '06 #1
4 3447
Sounds like your "AJAX" is foaming a bit much, and clobbering the
__doPostback javascript code in the page.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Winista" wrote:
I have a page with bunch of user controls and standard controls on the page.
And then I have a Button control on the page which is used to save the data
on server side. All was working fine and dandy till yesterday. Today the
button click event started showing some weired behavior. Some time the code
will not get into that handler. And I have tracked down the pattern when it
is not working.
I have 2 combo box controls on the page which trigger AJAX requests when
selection is changed in them. And these AJAX calls propulate few other
controls when response comes back. When any of these AJAX calls get
triggered, after that if page initiates a post back, then the button's click
handler never gets called.

Any idea what could be going wrong?

Feb 14 '06 #2
I have already gone thorugh that process of debugging __doPostBack. That
method is fine. I have infact tried to force a __doPostBack call onClick
handler on button, even that does not work. __EVENTTARGET value is set
correctly to ID of that button but it seems that button's event handler has
disappeared from the control tree.
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:F6**********************************@microsof t.com...
Sounds like your "AJAX" is foaming a bit much, and clobbering the
__doPostback javascript code in the page.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Winista" wrote:
I have a page with bunch of user controls and standard controls on the
page.
And then I have a Button control on the page which is used to save the
data
on server side. All was working fine and dandy till yesterday. Today the
button click event started showing some weired behavior. Some time the
code
will not get into that handler. And I have tracked down the pattern when
it
is not working.
I have 2 combo box controls on the page which trigger AJAX requests when
selection is changed in them. And these AJAX calls propulate few other
controls when response comes back. When any of these AJAX calls get
triggered, after that if page initiates a post back, then the button's
click
handler never gets called.

Any idea what could be going wrong?

Feb 14 '06 #3
OK. Well you didn't say which "AJAX" framework you are using, but maybe you
might want to check with the author(s).
I've used Anthem.net which is very light and scalable (Sourceforge.net) and
have never seen any posts to that effect.
Anthem.net is one of the few (like Atlas) that preserves the stateful
ASP.NET page and does not rely on external handlers.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Winista" wrote:
I have already gone thorugh that process of debugging __doPostBack. That
method is fine. I have infact tried to force a __doPostBack call onClick
handler on button, even that does not work. __EVENTTARGET value is set
correctly to ID of that button but it seems that button's event handler has
disappeared from the control tree.
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:F6**********************************@microsof t.com...
Sounds like your "AJAX" is foaming a bit much, and clobbering the
__doPostback javascript code in the page.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Winista" wrote:
I have a page with bunch of user controls and standard controls on the
page.
And then I have a Button control on the page which is used to save the
data
on server side. All was working fine and dandy till yesterday. Today the
button click event started showing some weired behavior. Some time the
code
will not get into that handler. And I have tracked down the pattern when
it
is not working.
I have 2 combo box controls on the page which trigger AJAX requests when
selection is changed in them. And these AJAX calls propulate few other
controls when response comes back. When any of these AJAX calls get
triggered, after that if page initiates a post back, then the button's
click
handler never gets called.

Any idea what could be going wrong?


Feb 14 '06 #4
I don't use any third party fraeworks. I have built our own that we have
been using for quite some time without any issues.
And the framework does not POST to the same page. The request is sent to
separate handler pages.
I guess I will have to little bit more diging into the state of the page and
see where the event is getting lost.

thanks

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:8C**********************************@microsof t.com...
OK. Well you didn't say which "AJAX" framework you are using, but maybe
you
might want to check with the author(s).
I've used Anthem.net which is very light and scalable (Sourceforge.net)
and
have never seen any posts to that effect.
Anthem.net is one of the few (like Atlas) that preserves the stateful
ASP.NET page and does not rely on external handlers.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Winista" wrote:
I have already gone thorugh that process of debugging __doPostBack. That
method is fine. I have infact tried to force a __doPostBack call onClick
handler on button, even that does not work. __EVENTTARGET value is set
correctly to ID of that button but it seems that button's event handler
has
disappeared from the control tree.
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in
message
news:F6**********************************@microsof t.com...
> Sounds like your "AJAX" is foaming a bit much, and clobbering the
> __doPostback javascript code in the page.
>
> Peter
>
> --
> Co-founder, Eggheadcafe.com developer portal:
> http://www.eggheadcafe.com
> UnBlog:
> http://petesbloggerama.blogspot.com
>
>
>
>
> "Winista" wrote:
>
>> I have a page with bunch of user controls and standard controls on the
>> page.
>> And then I have a Button control on the page which is used to save the
>> data
>> on server side. All was working fine and dandy till yesterday. Today
>> the
>> button click event started showing some weired behavior. Some time the
>> code
>> will not get into that handler. And I have tracked down the pattern
>> when
>> it
>> is not working.
>> I have 2 combo box controls on the page which trigger AJAX requests
>> when
>> selection is changed in them. And these AJAX calls propulate few other
>> controls when response comes back. When any of these AJAX calls get
>> triggered, after that if page initiates a post back, then the button's
>> click
>> handler never gets called.
>>
>> Any idea what could be going wrong?
>>
>>
>>


Feb 14 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Big_Stu | last post by:
Hi all, I have an <asp:button> inside an <asp:table> and I am finding that the button click event doesn't fire at all! I have added the button to the initialize component event, and the table. ...
6
by: Michael Johnson Jr. | last post by:
I am trying to handle a button click event, which updates a web control table with data. The button is dynamically created in the table itself. When I call updateTable() in the Page_Load the new...
2
by: adolf garlic | last post by:
I'm having a problem with a button click event being fired erroneously. My login.aspx page has the usual username/password boxes. There is also a link to click when you have filled these, plus a...
1
by: bradw2k | last post by:
I have one frame that needs to cause a button click event on another frame. I was trying to do this by putting a display:none LinkButton on the target frame, and having a javascript on that page...
0
by: nraji | last post by:
hi, I have designed a web part using VS 2003 (Web control library template). I need to publish that in share point. Its not like drag and drop the things from toolbar. Every thing I need to do in...
7
by: =?Utf-8?B?bWFydGluMQ==?= | last post by:
Hi, All, I create button in the code ( Dim Button as new Button), not using button web component (means not drap button and drop it ont he webform), after that I try to use button_click event,...
3
by: GauravGupta | last post by:
i want to know that is it posible to call button click event before page load event on post back.... please help me....
1
by: =?Utf-8?B?QXNhZg==?= | last post by:
Hello, I have a Default.aspx page with several controls in a Master Page. When pressing on a Button control Page_Load event is fired on the Default.aspx page and after that the Page_Load event...
0
by: ADN | last post by:
Hi, I am currently extending the GridView control and would like to add a button to the GridView so that it will automatically render one button at the top of the grid. I have a click event for...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.