Drop Down List and selectedIndexChanged - newbie

Joined
Jul 1, 2008
Messages
1
Reaction score
0
I've got an asp.net page and I added a drop down box to it. When the user changes the selected index I want a 2nd control to either appear or not. I thought this would be straightforward, but it does not appear so.

In order to do this I do I really have to have AutoPostBack set to true? This means the page reloads each time the user moves through the drop down list! Worse than that though, in the Page_Load proc I have:

if (IsPostBack)
{
SubmitPageToTheDatabase();
}


So, each time the user changes the drop down list the page gets submitted! this is definitely not what I want to happen. What am I doing wrong?
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top