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
Solved

Passing values with ASP or DAP

Posted on 2002-05-08
14
274 Views
Last Modified: 2012-06-27
I am in dire need of help. I am wanting to do an on-line survey. The survey is to ask employees about
the level of service that out IT support team provided. When a support call is logged it is given a
unique ID#. When the call is completed, an email is sent out with a hyperlink to the survey page. The
survey pages rate the quality of service in several areas and the name and ID# are current required
to be manually entered. Is it possible to have the ID# passed through the hyperlink and be automaticly
filled when the survey page is loaded?

The only thing I could think of would be a cookie, but I am unsure about working with them. I really
need some help on this and any advise would be greatly appreciated.

Thanks,
Ty
0
Comment
Question by:tymallard
  • 6
  • 3
  • 3
  • +2
14 Comments
 
LVL 11

Accepted Solution

by:
thunderchicken earned 100 total points
ID: 6997427
You can do a querystring...

<form method = post action = there.asp?id=<%=yourid%>>
 ...
 ...
<input type = submit>
</form>



there.asp
<%=request("id")%>
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6997488
Or a Session Variable

Session("ID") = "yourID"

Response.Write "Yur ID is "&Session("ID")&"."

You can call it from any page as long as the session is active.
0
 
LVL 11

Expert Comment

by:thunderchicken
ID: 6997495
My only gripe with sessions is if you are using balenced or replicated web servers, your sessions might not stay between the 2 servers.
0
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.

 
LVL 18

Expert Comment

by:mgfranz
ID: 6997513
There is a way around that too... Remember Session Manager?  http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnmag00/html/stateless.asp

;-)
0
 

Expert Comment

by:drokliss
ID: 6997605
Or you could do it in .net with session state turned off ;)
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6997726
True... if .net is implemented.
0
 
LVL 4

Expert Comment

by:Zvika
ID: 6998366
The most simple thing is to send the ID with the link that is sent to the email somwething like:
http://yourSite/theSurveyPage.asp?id=theGeneratedID

then in the page that the user fill the survey do:
dim id
id = request("id")

<form method="post" name="form1" action=actionPage.asp>
<input name="yourSurveyItem1">
<input name="yourSurveyItem2">
<input name="yourSurveyItem3">
.
.
.
<input type="hidden" name="id" value=<% = id %>>
</form>

the question that left is how do you put the id in the link that is send to the user.
if you need any more help, add acomment

Good Luck
Zvika
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6998773
Zvika, I believe thunderchicken already posted a comment that mentioned the use of URL strings...

Please don't duplicate other experts work.
0
 
LVL 4

Expert Comment

by:Zvika
ID: 6998851
mgfranz
I guess that if you'll read both of our comments you'll see that thunderchicken had made a form that is submmited with a query string on the form action (which is, for my opinion bad asp style) while I suggested a querystring that links to the page with the form and the id as a hidden field in the form.
I don't think it the same solution.. do you?
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6998872
Yes I do... a querystring is a querystring regardless of it's concept.  Generalizing an idea is very prominent here, it helps to get a person to think...
0
 
LVL 4

Expert Comment

by:Zvika
ID: 6998889
Well, mgfranz, justice has been done! ;)
0
 
LVL 11

Expert Comment

by:thunderchicken
ID: 6999071
I dedicate my correct answer to the 40 year old programmers from southern california who drive low rider trucks and hit on underage strippers.

Thanks.
0
 

Author Comment

by:tymallard
ID: 6999096
Come on guys, I appreciate the help, but my inbox is filling up quick. :-)
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6999209
LOL!!!  

[Dave's jealous...]
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Add server behaviors to Dreamweaver CC 2015 2 183
Live mode in DW, need to creae Session 4 106
HTML in email body has extra  tick marks 3 87
Help with query 3 31
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

809 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