Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MTS and ASP
Message
From
07/06/2001 10:28:30
 
 
To
07/06/2001 07:58:57
Kenneth Downs
Secure Data Software, Inc.
New York, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00516220
Message ID:
00516330
Views:
10
>Folks,
>
>OK, so now I've got a simple ASP page that calls and destroys an object that I've made stateless in MTS by using stuff like oContext.SetComplete().
>
>Now, my next silly question centers around the syntax for accessing the ASP intrinsic objects, most notably Form variables and QueryString variables. The articles I've read on MSDN suggest something like:
>
>
>oMTX = CREATEOBJECT(MTX_CLASS)
>oContext = oMTX.GetObjectContext
>
>
>The syntax to obtain form parameters does not seem that difficult, but I actually got stuck on trying to obtain QueryString variables. I would try a simple call like "localhost/MTSTest.asp?Q=Hello" and then try to grab:
>
>
>lcField1 = oContext.Items("Request").Querystring("Q")
>
>
>and it just aint'a workin. I get type mismatches. I am very comfortable with the ASP intrinsic objects and with making up web pages that have parameters, forms, and both. I just seem to be stuck on the syntax on accessing them through a COM+ controlled object.
>
>As always,
>TIA...

You would get those from the request object itself like so:

lcField1 = Request.QueryString("Q")
Previous
Reply
Map
View

Click here to load this message in the networking platform