html controls with same ID

S

steven scaife

I am porting an ASP application to ASP.net, in my ASP application i have 4
columns of text boxes, each column of textboxes have the same ID thus
becoming an array when i use the split on them.

In ASP.net however i cannot get the value of the textboxes through the
request.form object. Is there a way to emulate this in asp.net

The reason is because its an electronic purchase order system so i have
boxes for quantity, price, description and code. I have a javascript that
works out the VAT, sub total and the grand total of subtotal + VATtotal.

thanks in advance for any help
 
S

Steve Goodyear

Each control ID is suppose to be unique, the name attribute may be the same
and produce the array you seek.

You can still use Request.Form in ASP.NET - the proper way to use the
Request.Form index is to access posted elements by their name attribute.

- Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top