Groups | Blog | Home
all groups > inetserver asp general > november 2006 >

inetserver asp general : Adding Form?


Rolf Rosenquist
11/30/2006 7:09:57 PM
I have an ASP page with a table that fills with records from a loop. Every
row gets a link to another ASP page with data from the row. The link is
written as <a href=newpage.asp?value1=xx&value2=yy .... and so on.

Now I try to let the user specify a number that should be sent to the other
page. But I do not want to clutter up every row with each an input field,
so I thought instead I would place it above all the data rows. When the user
clicks on the link, I want to include the input field to the querysting. The
problem here is that I cannot figure out how to refer to the name of the
input field.

Any ideas?
/ Rolf

Mike Brind
12/1/2006 2:37:47 PM

[quoted text, click to view]

Instead of writing <a href> links for each row, you should try creating
<input type="submit"> elements, giving them the same value as your link.
Make the whole page a form, so when one of the submit buttons is clicked,
you can get its value, and also the value of the input field.

--
Mike Brind

Rolf Rosenquist
12/2/2006 12:24:57 AM
Sounds fine to me, I'll try that. Thanks for the idea!
/ Rolf




"Mike Brind" <discussions@microsoft.com> skrev i meddelandet
news:ejDHMZVFHHA.3668@TK2MSFTNGP02.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button