Blank page after selection

C

Chris Zopers

Hello,

I've developed an ASP.NET page with a dropdownlist and several
textboxes. When the user selects an item from the dropdownlist, some
data is retrieved from a database and displayed in the textboxes.

The items that are in the dropdownlist are also retrieved from the
database in the Page_Load event (only the first time, not in postbacks).

Everything works fine, except when the user selects an item from the
dropdownlist and immediately clicks the dropdownlist again (before the
data is fully retrieved from the database). In that case, the whole page
turns blank. All controls are gone, nothing is shown except for a blank
white page.

Does anyone know what causes this problem and how to solve this?

Greetings,
Chris
 
C

Christopher Reed

It sounds like you have a AutoPostBack set to true for your dropdownlist.
You might consider setting it to false and use an additional button to
submit the form. This way, if your user selects something in the
dropdownlist before the page has completely finished, it won't postback on
itself too soon.

Hope this helps!
 
C

Chris Zopers

Hello,

I use an autopostback on the dropdownlist indeed. I'll try your
solution, that should work!

Thanks en greetings,
Chris.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top