Solved

session variable to pass values

Posted on 2007-12-03
4
320 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
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

806 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