In ASPR Pro I used to pass parameters to "Add" pages to set defaults for fields. I would create a query like this:
select
'table2_add.asp?pass=' + ID as AddLink
from Table1
On the list page of table1 I would make that field a hyperlink.
And then on the "Add" page of table2 I could set the default value of some field to "Request.QueryString("pass")".
How can I do this in ASPR .Net? Obviously I can setup the link via the select statement the same, but when I add "Request.QueryString["pass"]" as the default value of a field I get a compile error saying "The name 'Request' does not exist in the current context".
I have also tried putting it in a session variable like so:
Add page: Before process
XSession.Session["Type"] = Request.QueryString["type"];
and then using the session variable as the default value, but I get the same error.
From the help file it looks like maybe I can only access "request" data on list pages in BeforeProcessList. Is this true?
Thanks,
Tim