By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,563 Members | 1,066 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,563 IT Pros & Developers. It's quick & easy.

ASP.NET - DropDownList Get's First Select value

P: n/a
I have an ASP.NET website using C# that has a Web Control DropDownList. The
DropDownList is filled by a database call to SQL Server. The problem is
that when I click to change what is selected from the DropDownList, it only
select the 'first' value in the DropDownList no matter what I select.

Any idea? Thanks in advance
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
It sounds like you are populating your dropdown list every time the page
loads.

have a condition like this:

if not ispostback then
'fill the dropdown list
end if

-Mike
"Micheal" <fr****@sbcglobal.net> wrote in message
news:uV**************@TK2MSFTNGP12.phx.gbl...
I have an ASP.NET website using C# that has a Web Control DropDownList. The DropDownList is filled by a database call to SQL Server. The problem is
that when I click to change what is selected from the DropDownList, it only select the 'first' value in the DropDownList no matter what I select.

Any idea? Thanks in advance

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.