Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Session Variable blank after Insert Page

Status
Not open for further replies.

sinistapenguin

Technical User
Jan 21, 2004
31
GB
Hi All

A wierd one this. I have a page where I want to submit a 'Quote Reference' from an insert page to a redirect page.

I have searched the internet and found out that you have to use session variables because of the way DMX does the insert.

I also found where you should put the code:

If (CStr(Request("MM_insert")) <> "") Then
Session("QuoteRef") = Request.Form("QuoteRef")

But when I get to the detail page, (where I have dragged the session variable onto the page) nothing has displayed.

If I remove the insert statement and use a straight forward POST form, the Session gets set properly and displays on the next page.

Does anyone know how to overcome this?

Thanks

Ben
 
Why not just set the session variable on the page that does the insert? If you are creating "QuoteRef" dynamically when a user loads the page then just set it then.

[Peace][Pipe]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top