471,092 Members | 1,429 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Button Click Event fired on second press?

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 on the Master Page is
fired but it does not go to the Button event in the first button press but
only on the second press on the button.

I can't find out why Button Click event is firing only on the second press
and not on the first press where there are not JavaScript involved from my
side and there are no application errors.

Thanks in advanced for any help,
Asaf

Apr 8 '08 #1
1 2233
Hi,

Problem solved.
One of the TextBoxes involved was on AutoPostBack = True.

Thanks,
Asaf
"Asaf" wrote:
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 on the Master Page is
fired but it does not go to the Button event in the first button press but
only on the second press on the button.

I can't find out why Button Click event is firing only on the second press
and not on the first press where there are not JavaScript involved from my
side and there are no application errors.

Thanks in advanced for any help,
Asaf
Apr 8 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Liqun Xu | last post: by
reply views Thread by Stuart Whiteford | last post: by
3 posts views Thread by Robert W. | last post: by
3 posts views Thread by David Lozzi | last post: by

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.