Here's the basic scenerio.
I have a search form that works perfectly 95% of the time.
If the user enters data into cityTB and stateTB,
(both are set to auto postback to an update panel)
that triggers an event to get the zipcode for that area. Woks great
Now the issue lies if the user decides to search for a second city
and just clicks straight from typing in cityTB to the button to find listings.
The postback is triggered, but it gets the new zip at the same time of retrieving listings.
Which displays the previous search, unless the button is clicked twice.
If you would like an actual demo, do a search for frisco in texas with a search radius of 10 miles.
Click Refine Search, you'll get your results, now change the city to dallas, and click the button without moving out of the cityTB.
You'll get the same results, unless you tabbed out, or clicked out of the cityTB.
Click the button again making no changes this time, and now you see your search for dallas.
www.detelli.com/results.aspx
So to fix this, I would like to make the button postback get the new zipcode, and then postback listings.
I'm thinking some sort of onclick event, but I don't know.
Or set a onhover postback should work, I just need a fraction of a second to process the new zip.
Any thoughts?
Please remember to click “Mark as Answer” on the post that helps you.
This can be beneficial to other community members reading the thread.