473,395 Members | 1,341 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,395 software developers and data experts.

Setting the value fetched from the database in a Dropdownlist

I have an .aspx form with Microsoft Tab on it.There are about 4 Tabs
with each one having a Dropdown List.When the page is loaded it
fetches value from the database and Sets the value as selected using
FindByValue in the Dropdown combo.When i debug the application i saw
that it sets the correct value in all the respective dropdown but when
the page is loaded i came across a unique problem.It sets the same
value for all the Dropdown i.e. the dropdown whose value was set last
in the code is displayed as selected for all the dropdown.
Any clue to this problem.
Nov 18 '05 #1
0 1069

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

Similar topics

1
by: Steve | last post by:
I'm loading a dropdownlist control from values in a database.... after I load the drop down, I need to set the selecteditem to another database value... when I do this the drop down has an...
1
by: Maziar Aflatoun | last post by:
Hi everyone, I have the following code <asp:TemplateColumn HeaderText="Administator" Visible="True" ItemStyle-HorizontalAlign="Center"> <ItemTemplate> <asp:Label ID="IsAdministator"...
3
by: jez123456 | last post by:
Hi experts. I have an ASP.Net page with a DropDownList called cboYear. This gets filled with a c# method as follows. private void FillYearList() { SqlConnection cn = new SqlConnection(); cn...
5
by: DC Gringo | last post by:
I've got a command button to submit a value from a dropdown list that should then filter a SELECT query. I'm simply appending a WHERE colx = <variableSelectedFromDropdownList>. How do I pass this...
9
by: james.e.coleman | last post by:
Hello, I have created a custom dropdownlist that is used multiple times within a single page. When trying to set the values of the controls with the page in which they are being used, they all...
5
by: Mike | last post by:
In ASP.NET 2.0 I have a dropdownlist populated from a sqldatasource. The dropdownlist values are successfully populated from a database table. I would like to add the value "Select Company" which...
7
by: Brad Pears | last post by:
I have something strange going on - pretty sure it used to work before - and now it does not... Why does the following code not clear a combo box? Me.cboLocation.Text = String.Empty OR ...
1
by: =?Utf-8?B?R3JlZw==?= | last post by:
I have a page that displays a DropDownList control that allows a Manager Name to be selected from a listing of Managers for a User. So, on my main user.aspx page, I include a DropDownList control...
6
by: Ahmedhussain | last post by:
Hi there, I m doing work on a gridview and Im getting an error: A potentially dangerous Request.Form value was detected from the client (ctl00$Content$GridView1$ctl03$TextBox1="<span...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.