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

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

hi,
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)

thanks.
Feb 12 '18 #1
3 1491
Frinavale
9,735 Expert Mod 8TB
What type of application are you developing?
Web? Winforms????

What ListView control are you using?
Feb 21 '18 #2
It is a web application, Frinavale.
Feb 21 '18 #3
Frinavale
9,735 Expert Mod 8TB
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.

Thanks
Feb 22 '18 #4

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

Similar topics

9
by: Brian Burgess | last post by:
Hi all, Anyone know of any issues with setting the value of a Session object to the value of a submitted form item via 'Session("mySessionObj")=Request.Form("myFrmElem")' ? In my case the...
18
by: Choxio | last post by:
Using ASP you can access posted form elements. Is it possible to access them from JavaScript? myHTML.htm <form action=myASP.asp> <input type=hidden id=f1 value=val1> <input type=hidden...
15
by: Paul T. Rong | last post by:
Hi everybody, This time a very very difficult case: I have a table "tblStudent", there are 50 students, I also made a form "frmStudent" based on "tblStudent", now if I don't want to show all...
10
by: Kathy Burke | last post by:
HI. in asp.net app, I have an xmlDocument that I transform to the client html. Using xsl I create a few textboxes to capture user input. Each of these are related to <data> elements in the xmlDoc....
4
by: VB Programmer | last post by:
How can I loop thru all textboxes on a form? I want to remove any single quotes in the data entry. I was thinking something like this: For Each c As Control In Me.Controls Dim t As TextBox =...
1
by: Daniel Gormley | last post by:
What I have is a form that is dynamically generated based on which database table its calling. Therefore, the number of category.name.count can be different. So I have this form generated and...
6
by: tmb | last post by:
I have a page with many dynamically created HtmlSelect controls which i create in the Page_Load function. Sometimes upon a post i need to change the selected items in some of the controls depending...
2
by: Waldy | last post by:
Hi there, I have a pure HTML form that is submitting data back to an ..ASPX form. However, when I try to read the field values from the Request object, the values are not there. The Form has...
2
by: Brandon | last post by:
What I'm trying to do is essentially force a user to fill in required items in a form, which will be saved to a database. How can I get it so that once the user clicks "OK" on the dialog box, it...
4
by: libish | last post by:
hi all... can any one help me by suggesting a way to get items in dynamic form? here what i'm doing is , i'm displaying a dynamic form. in that form i have a main menu and this main menu contains...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.