Postback before Button Click Problem

AlphaStu

Member
Joined
Mar 4, 2005
Messages
8
Location
UK
Programming Experience
5-10
Hi,
My problem is this, I have a text box and a button on the page (keeping it simple). The text box has autopostback set to True as I want it to do something everytime it is edited. This works fine, however when I edit the text box and straight away click on the button (ie the post back has not been fired until I try to click the button), the code behind the button does not fire. I can then click on the button again to get it to do what I wanted at the second attempt. The only way I can get the button to work on the first attempt is to click somewhere else first so the post back on the text box gets fired, but that seems a bit daft to me.

I there a way around this where I can click on the button and the post back will run as well as the button code?

Many thanks in advance
Stuart
 
Back
Top