By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,966 Members | 2,054 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,966 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)

Feb 12 '18 #1
Share this Question
Share on Google+
3 Replies

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

What ListView control are you using?
Feb 21 '18 #2

P: 2
It is a web application, Frinavale.
Feb 21 '18 #3

Expert Mod 5K+
P: 9,731
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.

Feb 22 '18 #4

Post your reply

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