Solved

session variable to pass values

Posted on 2007-12-03
4
341 Views
Last Modified: 2010-04-25
I need to carry a value to a form on the next page using session variable. The value to be passed from page (A) will be <%=(Recordset1.Fields.Item("Project_ID").Value)%>. I would like to carry this using the binding method in Dreamweaver.  I have tried creating a session ON PAGE (A) like  
<% Session("Project_ID") = "<%=(Recordset1.Fields.Item("Project_ID").Value)%>" %>. I create a session in the bindings called Project_ID) and insert on page (b) ,what am I doing wrong or is there another way of doing this?
0
Comment
Question by:Camnoc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 11

Accepted Solution

by:
dodge20 earned 150 total points
ID: 20397812
What about something like this

<% Session("Project_ID") = (Recordset1.Fields.Item("Project_ID").Value)%>
0
 

Author Comment

by:Camnoc
ID: 20452746
Thanks for your response . OK  a session is probably not the correct way to achieve what I want?. What I need to do is pass a value when I submit my  insert form on  page Auth_Proj_Summary.asp  to  redirect page  Auth_ok.asp. Because Dreamweaver inserts <%=MM_editAction%> into form action I cant use Request.form variable on AUTH_OK.  I have tried using url Param's - Request .QueryString ie  MM_editRedirectUrl = "Auth_ok.asp?Job_No=" + (Recordset1.Fields.Item("Job_No").Value) + "" this gives me an error also?   How do I pass a value from the insert form to the redirect page via the submit button.
0
 
LVL 70

Assisted Solution

by:Jason C. Levine
Jason C. Levine earned 100 total points
ID: 20490120
>> Because Dreamweaver inserts <%=MM_editAction%> into form action I cant use Request.form variable on
>> AUTH_OK.

You can edit what DW puts in the form action.  So long as it points to the right page, it will work...
0
 

Author Comment

by:Camnoc
ID: 20491244
 Here's what I have  on page 1( Jobs.asp)      <form METHOD="POST" action="<%=MM_editAction & "?Job_No=" & Job_No%>" name="form1" id="form1">

This is what's on my redirect on insert page (Update_ok.asp)     <%= Request.QueryString("Job_No") %>

It dose,nt work. Can you help?
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question