Blank page after dropdownlist selection??

C

Chris Zopers

Hello,

I have developed an ASP.NET page, with a dropdownlist and some
textboxes. When a selection is made in the dropdownlist, some data is
retrieved from a database and displayed in the textboxes.

To to this, I've written some code in the selectedIndexChanged event of
the dropdownlist.

When a selection is made, it takes a few seconds for ASP.NET to retrieve
the data and display it. When I expand the dropdownlist again in those
few seconds, a blank white screen is displayed and I can't return to the
page anymore.

Does anyone know how to solve this problem?

Greetings,
Chris.
 
P

Paul Henderson

When a selection is made, it takes a few seconds for ASP.NET to retrieve
the data and display it. When I expand the dropdownlist again in those
few seconds, a blank white screen is displayed and I can't return to the
page anymore.

The easiest solution would be to write a Javascript function that is
run when the dropdown selection is changed (i.e. before the postback
occurs), which hides/disables the dropdowns, so the user cannot change
the value until the page is redisplayed with the data.
 
Joined
Sep 21, 2006
Messages
1
Reaction score
0
I have the same problem. The suggested solution doesn't work because if you disable the dropdown on the client side (using "onchange") before the postback, the server side SelectedIndexChanged event isn't triggered when the postback happens. It must detect that the dropdown is disabled and cancel the event.
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top