422,023 Members | 1,004 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 422,023 IT Pros & Developers. It's quick & easy.

how to spin thru items in a listview from a posted form

P: 2
in .net 1.1 the listview had an ID property that could be set.
using that ID property, concatenated with 'n' (for the row num), we could spin thru the listview cell values.

in .net 4.0, the listview ID property is read-only.

trying to figure out how to still spin thru listview cell values (from Request.Form).

old code used: Request.Form.Item("id name_" & n)

1 Week Ago #1
Share this Question
Share on Google+
3 Replies

Expert Mod 5K+
P: 9,712
What type of application are you developing?
Web? Winforms????

What ListView control are you using?
3 Days Ago #2

P: 2
It is a web application, Frinavale.
3 Days Ago #3

Expert Mod 5K+
P: 9,712
Hi Eddie

According to the MSDN documentation for the ASP.NET ListView Properties, the ID property is not readonly in the current version of the .NET framework.

Seeing that you need to set the ID of ASP.NET controls in order to reference them in your server-side C# or VB.NET code, I cannot imagine that they would ever make this property readonly.

Can you please post the line of code that you are encountering the problem along with a description of when that code is being called during the ASP.NET life cycle.

2 Days Ago #4

Post your reply

Sign in to post your reply or Sign up for a free account.