471,343 Members | 1,330 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

strange problem in Listview eventhandler - please help - strugglingalready a week

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 listview and the problem is I won't get the values from
the server controls in 1-ListView_Itemcommand and/or 2-
listview_ItemUpdating events for all Server controls Except for
TEXTBOX controls.
I'm not using an object Datasource...

protected void lvSalesOrderInquiry_ItemUpdating(object sender,
ListViewUpdateEventArgs e)
ListView item = (ListView)sender;

// this works fine I get the .Text Property = 550 ->works
((TextBox)e.Item.FindControl("TextBoxQuantity")).T ext

// The .SelectedValue property is empty = "" - I should get
normally "ABC"

((DropDownList)e.Item.FindControl("DropDownListHol dCode")).SelectedValue

// The .Text property is empty = "" - I should get normally

So what is the problem in 2 and 3. I get the changed value for
Textbox but not for the other controls like Dropdownlist, label

what is the reason?

thans for any any help,


ps: I also tried ItemCommand eventhandler... the same results.
Sep 8 '08 #1
0 1125

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Simon Middlemiss | last post: by
reply views Thread by Martin Streller | last post: by
6 posts views Thread by Vanessa | last post: by
4 posts views Thread by Paddy | last post: by
reply views Thread by willow1480 | last post: by
4 posts views Thread by Bill2k | last post: by
5 posts views Thread by Jure Bogataj | last post: by

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.