473,385 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

DropDownList not getting SelectedValue from browser

When using DropDownLists in ASP.NET VB 03 on Windows Server 2003 (IE 6)
the selected values for Databound dropDowns is always the first item in
the list, even after changing the selected item before submitting the
form to do its requested action. The html source does not say that it
is selected, and the binding code does not tell it to change the
selected value. how do I fix this problem?

Nov 19 '05 #1
3 1838
Shultz:
Check out if this helps:
http://openmymind.net/FAQ.aspx?documentId=2

Basically you need to wrap you DataBinding code in an if Not Page.IsPostBack
then...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Schultz" <sc*****@a2z4u.net> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
When using DropDownLists in ASP.NET VB 03 on Windows Server 2003 (IE 6)
the selected values for Databound dropDowns is always the first item in
the list, even after changing the selected item before submitting the
form to do its requested action. The html source does not say that it
is selected, and the binding code does not tell it to change the
selected value. how do I fix this problem?

Nov 19 '05 #2
JV
I have this same problem. I'm using VS.NET 2003 on XP.

I've been doing CSharp code since Beta 2 of first VS.NET, so I'm pretty
sure I've checked all the basics.

"Schultz" <sc*****@a2z4u.net> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
When using DropDownLists in ASP.NET VB 03 on Windows Server 2003 (IE 6)
the selected values for Databound dropDowns is always the first item in
the list, even after changing the selected item before submitting the
form to do its requested action. The html source does not say that it
is selected, and the binding code does not tell it to change the
selected value. how do I fix this problem?

Nov 19 '05 #3
Same Problem.
It's never being run at all.

"JV" <jo**********@goisc.com> wrote in message
news:e4**************@TK2MSFTNGP15.phx.gbl...
I have this same problem. I'm using VS.NET 2003 on XP.

I've been doing CSharp code since Beta 2 of first VS.NET, so I'm pretty
sure I've checked all the basics.

"Schultz" <sc*****@a2z4u.net> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
When using DropDownLists in ASP.NET VB 03 on Windows Server 2003 (IE 6)
the selected values for Databound dropDowns is always the first item in
the list, even after changing the selected item before submitting the
form to do its requested action. The html source does not say that it
is selected, and the binding code does not tell it to change the
selected value. how do I fix this problem?


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Benedict Teoh | last post by:
I created a dropdownlist containing day, month and year field and expose a property to assign a date. When I call from a aspx page and assign the value, the new date is not displayed until a submit...
1
by: Jeff | last post by:
Hi - I'm creating a web control library (using VB.NET), and I'm trying to add a modified asp:dropdownlist control to it. How do I add asp:ListItems to the dropdownlist (within the web control...
4
by: Joe Schmoe | last post by:
All I want to to be able to take a two-column DataReader (One column with the Item ID number, the other with Item Description text) and load it into a Windows Forms ComboBox (Set to DropDownList...
3
by: Carlos Lozano | last post by:
Hello, I am having a problem getting the selectedValue from a dropdownlist that is populated with a dataReader and just can't see the problem. I did the following: dim dr as DataReader dr...
3
by: Sridhar | last post by:
Hi, I am having some problems with dropdownlist in .NET 2.0. When I drag a drop down list on to the webform and if I try to set the SelectedValue property for the dropdown list, I am getting...
1
by: clickon | last post by:
Forget about the controlParameter for the moment, for testing purposes i have created the following Markup: <asp:Table ID="tblSelectRoute" runat="server" CssClass="asp-table"> <asp:TableRow>...
1
by: mitchman10 | last post by:
My Time table has TimeID,Employee,PayPeriod,ChargeCodeID,Hours My Chargecode table has ChargecodeID,c_Text I need an Editable datagrid that will show the TimeID,Employee,PayPeriod,C_Text in a...
2
by: sree reddy | last post by:
..cs using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls;
1
by: Brett | last post by:
I have a DropDownList in an ASP.NET web form that is populated with items from a lookup table by binding that DropDownList to a SqlDataSource. However, the items in the lookup table can change over...
3
by: =?Utf-8?B?Y21lZWsxXzE5OTk=?= | last post by:
Hello, On a webpage, create an UpdatePanel with two DropDownLists. Set AutoPostBack of DropDownList1 to true. In the SelectedIndexChanged method, refill DropDownList2 and set the focus to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.