473,395 Members | 1,616 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.

listview doesn't show the values for Dropdownlist and Label controlsbut it shows for TextBox yes

Hi colleagues,

I've a very strange problem here. I have no clue whyt it happens.

I have a listview. The Listview populates well. I have an Update
Button in the listview and a Listview_ItemUpdating(object sender,
ListViewUpdateEventArgs e).

The problem is : I'm able to retrieve the TextBox values. But not for
the Labels and for the Dropdownlistbox????

So below the the field :
- Location type TEXTBOX shows the data ( property Text) I get the data
value
- Lot type LABEL and LineType DROPDOWNLISTBOX (property: .text
and .SelectedValue) shows empty. I won't get the data. It shows empty.

why???????? I'm confused, because why am I able to get the values from
TEXTBOXES but not for other controls like DROPDOWNLISTBOX,
LABELS?????? etc.

returns:
location = "abcdef"
Lot = ""
LineType = ""

protected void lvSalesOrderInquiry_ItemUpdating(object sender,
ListViewUpdateEventArgs e)
{
ListView me = (ListView)sender;
// I get some value
Location =
((TextBox)me.Items[e.ItemIndex].FindControl("TextBoxProductNumber")).Text;

//I get empty string.... no value is returned.
Lot =
((Label)me.Items[e.ItemIndex].FindControl("LabelLot")).Text;
LineType =
((DropDownList)me.Items[e.ItemIndex].FindControl("((DropDownListLineType")).SelectedVa lue;
thanks for the help,
mesut
Sep 5 '08 #1
0 1097

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

Similar topics

2
by: John Lauwers | last post by:
I know you can edit the first column of the listview control, is there a way to edit the second and/or the other columns? greets John
4
by: Todd Perkins | last post by:
Hello all, surprisingly enough, this is my first newsgroup post, I usually rely on google. So I hope I have enough info contained. Thank you in advance for any help! Problem: I am getting...
3
by: robboll | last post by:
I am building an ASP.NET data entry form and when I change the values per the dropdowns and click "save", the old values remain. Are there any suggestions on how to update the variables to the...
2
by: Ned Balzer | last post by:
Hi, Apologies if this is a newbie question, I haven't found the answer in any faqs. I have an asp.net 2.0 page that sets session variables and then redirects to another page. For the page...
0
by: sgtmarcjones | last post by:
How do I access a dropdownlist that is nested within a Formview ItemTemplate Gridview Template? I want to see a label (lgbTimeKeep ! TextValue of ddlName dropdownlist) instead of a dropdownlist...
9
by: Bob Malcoprs | last post by:
Hi, I want to get all the selected values of a listbox in several labels.. With this code here below, when i click on e.g. "option 2", i get '2' in label2. That's ok. But if i then click on...
3
by: mwalts | last post by:
I'm fairly new to ASP.NET, although I have a fair amount of C# experience. I'm creating a SharePoint Web Part, but I'm doing the development for it locally in ASP.NET 1.1 I'm using a...
2
by: =?Utf-8?B?UGhpbGlw?= | last post by:
I am attempting to insert a simple record with LinqDataSource from a ListView, however I always get a message saying "....LinqDataSource 'dataSource' has no values to insert. Check that the...
0
by: mesut | last post by:
Hi colleagues, I know this group is not related to ASPX directly, but I'm struggling with this already a week and can't get/find any answer from other groups or internet site... I'm using a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.