|
 |
asp_web_howto thread: Dynamically build form, submit via form.submit()
Message #1 by "Calvin Goldring" <cgoldring@c...> on Thu, 19 Apr 2001 22:33:07
|
|
Hello.
I have built a custom COM object which creates a paged table through an
ADO recordset. At the bottom of this table are links allowing the user to
page through the table.
These links are dynamically created through the COM object.
They were originally using the href attribute to pass all the necessary
variables to the form processing page via the query string.
One of the variables, however, is the SQL string needed to page through.
For certain queries, this string becomes too long to be held in the query
string. I now want to send everything through a form's post method.
I have built a form, with a hidden input for the SQL string.
The page to go to in the database, however, changes per link and so I
cannot hard code this from the COM.
How can I add elements to an existing form to passed via POST?
Any suggestions? Thanks.
-Cal
Message #2 by "jonas jerndin" <jonas.jerndin@o...> on Mon, 23 Apr 2001 18:59:02
|
|
<form action="next.asp?q1=somevalue&q2=somevalue&q3=somevalue"
method="post">
This way you can get values both thru Request.Form() and
Request.QueryString()
Pretty nee, huh?
|
|
 |