This topic is locked

Pass record ID to session

7/5/2006 1:41:33 AM
ASPRunnerPro General questions
customcode author

Hi, I am trying to add a Select_Vendor in front of Edit on the Vendors List. I would like to pass the VendorID to Session("myPrefvendor"). This will allow the user to select the vendor and it will redirect them to Maintenance_Add.

thank you

J
Jane 7/6/2006

I'm not sure that I understand you correctly.

Please give me more detailed description of what you need to achieve.

customcode author 7/6/2006

I'm not sure that I understand you correctly.

Please give me more detailed description of what you need to achieve.



I set up the Add_Maintenace so it uses the session to fill in the correct Vendor. This saves the user from having to look up 1500 vendors to find one vendor. When the user clicks Select Vendor, I want the Vendors list page to assign the VendorId to the session value and redirect to add_maintenance.asp

Alexey admin 7/7/2006

Hi,
I see what you saying.

Pass the VendorID thru the query string then assign it to the session.
Use the URL of the following form in your Select_Vendor link:

Maintenance_add.asp?vendor=111


Then put this line into your Maintenance_add.asp file

Session("myPrefvendor")=Request("vendor")