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

2.0: DropDownList incorrectly filled

RAM
Hi,

Please help in the following problem with asp:DropDownList.

I have written in .aspx:

<asp:SqlDataSource ID="ListOfMaterials" runat="server" ConnectionString="<%$
ConnectionStrings:MIMStockDemo %>" SelectCommand="SELECT Name FROM Materials
ORDER BY Name" />

<asp:DataList ID="PositionsDataList" runat="server"...

<EditItemTemplate>

<td><asp:DropDownList ID="MaterialsEdit" runat="server"
DataSourceID="ListOfMaterials" /></td...

(SQL Server table Materials is fillled with some data)

I don't understand why in a browser my DropDownList contains sequence of
entries "System.Data.DataRowView" instead of values from Name column.
Connection string is correct (it works fine in other places.)

/RAM/
Oct 4 '06 #1
1 1105
RAM
I solved. Missing attributes of DropDownList.

Użytkownik "RAM" <r_********@poczta.onet.plnapisał w wiadomo¶ci
news:u2**************@TK2MSFTNGP03.phx.gbl...
Hi,

Please help in the following problem with asp:DropDownList.

I have written in .aspx:

<asp:SqlDataSource ID="ListOfMaterials" runat="server"
ConnectionString="<%$ ConnectionStrings:MIMStockDemo %>"
SelectCommand="SELECT Name FROM Materials ORDER BY Name" />

<asp:DataList ID="PositionsDataList" runat="server"...

<EditItemTemplate>

<td><asp:DropDownList ID="MaterialsEdit" runat="server"
DataSourceID="ListOfMaterials" /></td...

(SQL Server table Materials is fillled with some data)

I don't understand why in a browser my DropDownList contains sequence of
entries "System.Data.DataRowView" instead of values from Name column.
Connection string is correct (it works fine in other places.)

/RAM/


Oct 10 '06 #2

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

Similar topics

1
by: Stephen | last post by:
I am trying to use the following script to see determine whether a dropdownlist has a value in it or to see whether a checkbox has been checked. I don't want the user to be able to do both. In...
1
by: Antonio D'Ottavio | last post by:
Good morning, I've a problem with a dropdownlist located inside any row of a datalist, I fill both datalist and dropdownlist at runtime, the problem is with the dropdownlist infact using the event...
4
by: theo | last post by:
Program flow...load file,then extract the xml text tags from the file,then the number of Xml tags retrieved from the file determines the number of dropdownlist controls instanciated in the...
3
by: Tim::.. | last post by:
Can someone tell me how I get the correct selected office in my drop down list when I enter edit mode. At the moment it just defaults to the office at the top of the drop down list rather than...
10
by: dhnriverside | last post by:
Hi guys Still having a problem with this dropdownlist. Basically, I've got 4. The first 2 work fine, then my code crashes on the 3rd. ddlEndTimeHour.Items.FindByValue(endTime).Selected =...
1
by: Miguel Dias Moura | last post by:
Hello, I have two questions concerning Asp:DropDownList 1. How to fill a DropDownList from runtime and set its default item? 2. How do use a DropDownList in each datagrid record? All...
1
by: samuelberthelot | last post by:
Hi, Hi I have a dropdownlist (dpl) filled in page.Load event. If I select a value, I'm redirected to a page. I browse back to the page using the back button (obvisously the dpl is not filled again...
1
by: Jeremy | last post by:
Hello All, I have a Repeater which contains a Dynamic DropDownList within its itemtemplate. I know I have struggled with this before and I am pretty sure I had to save a bunch of crap manually...
5
by: =?Utf-8?B?Q2hyaXMgRy4=?= | last post by:
I'm trying to put conditional code in a dropdown that would check the value of the current ListItem and set Selected=true depending on that value, and Selected=false if it's any other value. Due...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.