Short Description
|
Using variables for SS.AddInput area
|
Entered
|
By:
Antwanet
When: 2001-05-14 21:34:14 Build: 3.0.0K Bet
|
Categories
|
Type:
Question
Department: Product
Category:
Not Categorized
|
Description
|
How can I use variables that I declare in my application to
pass to my stml file in ASP. Ex. instead of using
SS.AddInput ("test", Request.querystring("test"),
request.form("test"), how can I change the request
variables to variables that I declare.
Thanks
|
|
Append
|
By: Big Kahuna When: 2001-05-14 22:13:20 New Status:
Pending Customer
|
Comment
|
You still need to use the AddInput method to pass
information to your Screensurfer transaction section that
you are executing via your ASP page.
If you want to pass "hard-coded" information you can code
an AddInput similar to the following:
SS.AddInput "test","this is hard-coded test info"
or if you have a session variable you want to pass in, you
would code the AddInput similar to the following:
SS.AddInput "test", Session("test")
Again, "test" is the variable passed in which the value is
referenced by "web.test" in your Screensurfer transaction
section.
|
|
Append
|
By: WindSurfer When: 2001-05-14 23:21:29 New Status:
Pending Customer
|
Comment
|
You can also use the undocumented method
SS.ForwardFormValues to forward all request.form
variables...this is used in the default.asp page to
implement passthrough, but somehow didn't make it into the
documentation.
The ForwardFormValues will copy all request.form variables
from the request object to the input web. variable in
Screensurfer...there isn't anything to copy all
request.querystring values, although this would be easy to
add if it is important to your application.
I believe you could also iterate through the request values
yourself in a loop to pass along the values through the
addinput, but the ForwardFormValues would be the most
efficient approach...
|