• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Transfering a CFML session variable to an ASP.Net Page

New Here ,
Oct 25, 2007 Oct 25, 2007

Copy link to clipboard

Copied

I have a login page that was created with coldfusion. This page links to an ASPX page what i would like to happen is when the client logs in the userID is carried over to the Asp.net page.

the variable in CFML is a Session Variable.

any ideas??
TOPICS
Advanced techniques

Views

538

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , Nov 02, 2007 Nov 02, 2007
Look into asp's Request.QueryString

Votes

Translate

Translate
Guest
Oct 25, 2007 Oct 25, 2007

Copy link to clipboard

Copied

Not guaranteed, but you can try passing it in the URL: abc.aspx?userId=#session.userId#

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 02, 2007 Nov 02, 2007

Copy link to clipboard

Copied

I tried however the # get lost in the transfer over to the aspx page :S

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 02, 2007 Nov 02, 2007

Copy link to clipboard

Copied

quote:

Originally posted by: mactech999
I tried however the # get lost in the transfer over to the aspx page :S

Sounds like you forgot a cfoutput tag in your cold fusion page.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 02, 2007 Nov 02, 2007

Copy link to clipboard

Copied

here is my code

<a href=" http://localhost/Online1/Default.aspx?recordid=#Recordset1.CustNo#"><font color="#0000FF">Online Ordering</font></a></strong></td>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 02, 2007 Nov 02, 2007

Copy link to clipboard

Copied

Dan was right, looks like you're missing <cfoutput> tags around your variable. Try this:

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Nov 02, 2007 Nov 02, 2007

Copy link to clipboard

Copied

> I tried however the # get lost in the transfer over to the aspx page

There shouldn't be # signs. You want to transfer the value of #Recordset1.CustNo# not the literal string itself. So yes, use <cfoutput> tags around the variable.

> what i would like to happen is when the client logs in the userID is carried over to the Asp.net page.

I probably wouldn't use it for an auto-login mechanism, but yes, you can pass userID value to the .net page in the url.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 02, 2007 Nov 02, 2007

Copy link to clipboard

Copied

would you guys know how to call the value from the URL once i have it in aspx page?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Nov 02, 2007 Nov 02, 2007

Copy link to clipboard

Copied

Look into asp's Request.QueryString

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 02, 2007 Nov 02, 2007

Copy link to clipboard

Copied

LATEST
k thanks for all your help 🙂

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation