Sharing/passing Data between coldfusion and asp.net

Last post 08-25-2009 2:36 PM by Jighead. 14 replies.

Sort Posts:

  • Cool [cool] Sharing/passing Data between coldfusion and asp.net

    01-06-2006, 12:06 AM
    • Star
      9,462 point Star
    • kamii47
    • Member since 05-26-2005, 4:04 PM
    • Karachi, Pakistan
    • Posts 2,201
    Hello,
    I have to make a product detail page(as a demo) in asp.net for a coldfusion application.
    Is there a good example of passing/sharing session,cookies query string e.t.c data from coldfusion to asp.net and then asp.net to coldfusion.
    Please provide a lik for working example(not articles)
    Kamran Shahid
    Sr. Software Engineer
    (MCP,MCAD.net,MCSD.net,MCTS,MCPD.net[web])

    Remember to click "Mark as Answer" on the post that helps U
  • Re: Sharing/passing Data between coldfusion and asp.net

    01-06-2006, 9:23 AM
    • Member
      41 point Member
    • vinceb
    • Member since 11-23-2005, 4:27 AM
    • Alpharetta, GA
    • Posts 19
    The only way to share session variables between ASP.NET and ColdFusion (CFML) is to use BlueDragon.NET from New Atlanta:

    http://www.newatlanta.com/products/bluedragon/index.cfm

    Look at Chapter 3 of this document, entitled "Sharing Variables between CFML and ASP.NET" for example code:

    ftp://ftp.newatlanta.com/public/bluedragon/6_2_1/docs/BlueDragon_621_Integrating_CFML_with_ASPNET.pdf

    A copy of that document is also included when you install BlueDragon.NET.

    Vince Bonfanti
    New Atlanta Communications, LLC
    http://www.newatlanta.com

    Migrate from ColdFusion to ASP.NET with BlueDragon
  • Cool [cool] Re: Sharing/passing Data between coldfusion and asp.net

    01-06-2006, 10:30 AM
    • Star
      9,462 point Star
    • kamii47
    • Member since 05-26-2005, 4:04 PM
    • Karachi, Pakistan
    • Posts 2,201

    OK.

    Is there a working example way to pass session and cookies information from asp.net to coldfusion and then coldfusion to asp.net.(not sharing LIKE technique of passing information from asp to asp.net and then asp.net to asp).

    I can't install any other thing there is a live application in between which I have to put an asp.net page which depends on the information(that is cookies,session,e.t.c. data) values pass from coldfusion page to asp.net page then asp.net page to coldfusion.

    Kamran Shahid
    Sr. Software Engineer
    (MCP,MCAD.net,MCSD.net,MCTS,MCPD.net[web])

    Remember to click "Mark as Answer" on the post that helps U
  • Re: Sharing/passing Data between coldfusion and asp.net

    01-06-2006, 10:46 AM
    • Member
      41 point Member
    • vinceb
    • Member since 11-23-2005, 4:27 AM
    • Alpharetta, GA
    • Posts 19
    You might be able to use cookies, but that would limit you to simple string values and other limitations of cookies. I'm not aware of any code examples demonstrating this.
    Vince Bonfanti
    New Atlanta Communications, LLC
    http://www.newatlanta.com

    Migrate from ColdFusion to ASP.NET with BlueDragon
  • Re: Sharing/passing Data between coldfusion and asp.net

    01-06-2006, 1:32 PM
    • All-Star
      77,975 point All-Star
    • jeff@zina.com
    • Member since 09-26-2003, 10:43 AM
    • Naples, FL, USA
    • Posts 10,600
    • Moderator
      TrustedFriends-MVPs

    A cookie is a cookie, and provided it's the same domain you should be able to read or set a cookie from any of the technologies that use cookies.  It would be simple enough to test, set a cookie in a test ASPX page and see if you can read it in a Cold Fusion page.

    Jeff

    Blatant Self Promotion: ASP.NET 3.5 CMS Development
  • Cool [cool] Re: Sharing/passing Data between coldfusion and asp.net

    01-06-2006, 2:18 PM
    • Star
      9,462 point Star
    • kamii47
    • Member since 05-26-2005, 4:04 PM
    • Karachi, Pakistan
    • Posts 2,201

    Thanks for suggestion but I have already done that but I always get html character included in the cookie

    e.g my cookie in cold fusion page value is Kamran Shahid

    I get Kamran%20Shahid in asp.net page

    I have try all server.htmlencode,server.htmldecode,server.uRlencode e.t.c.

    I don't want to do like str.replace stuff.

    Also how could i transfer values in session collection from coldfusion to asp.net and then asp.net to coldfusion.I am sure it could be done But can't able to search it(as I know it is done in asp to asp.net and vice versaa)

    Please help

     

    Kamran Shahid
    Sr. Software Engineer
    (MCP,MCAD.net,MCSD.net,MCTS,MCPD.net[web])

    Remember to click "Mark as Answer" on the post that helps U
  • Re: Sharing/passing Data between coldfusion and asp.net

    01-06-2006, 2:59 PM
    • Member
      479 point Member
    • stephenzr
    • Member since 07-23-2004, 4:52 PM
    • Chicago, IL
    • Posts 105
    As far as I know you can not share session information between coldfusion and asp.net.  I can't imagine they would be able to easily access each others memory space, let alone decrypt it (depending on where it is stored).  Stick with either using cookies or sharing a database.  You'll get it.

    Stephen

  • Re: Sharing/passing Data between coldfusion and asp.net

    01-06-2006, 3:58 PM
    • Member
      72 point Member
    • carehart
    • Member since 05-15-2003, 10:58 AM
    • Atlanta, GA
    • Posts 15

    Stephen's right: you can't share sessions between CF and ASP.NET, but as Vince pointed out above, you can share sessions between your CFML code and ASP.NET if you run that CFML code using BlueDragon, an alternative CFML engine from New Atlanta. The BD.NET edition runs CFML natively on .NET and can not only share sessions but also permits includes back and forth between CFML and ASP.NET, the ability to call .NET classes from CFML using CFObject/CreateObject, the ability to call CFCs from ASP.NET (the latter two are NOT using web services), and much more.

    We just point these things out because the common conception (as Stephen noted) is that "CF can't integrate with .NET (other than via web services)". While CF (the engine) can't, CFML (your code) can, if you install BD.NET. It's a native extension to .NET (an httpHandler). More details at the site and in the associated docs.  

    /charlie

    /charlie
  • Re: Sharing/passing Data between coldfusion and asp.net

    03-20-2007, 12:53 PM
    • Member
      2 point Member
    • chaschas
    • Member since 03-20-2007, 4:49 PM
    • Posts 1

    Just to help anyone out who might be facing this problem, I recommend using URL encoded variables to pass the info...assuming you don't have to worry about security (ie, you're just passing an email address or whatever).  for instance, if I wanted to pass some URL variables to a ASP file, I might use something like this at the end of my coldfusion form

     
    <cflocation url="thankyou_m.asp?email=#form.email#&first=#form.first#" > 

     

    Then, on thankyou_m.asp I would request("email") and request("first") to grab the variables.  Not elegant, but it works.

     

     

     

  • Re: Sharing/passing Data between coldfusion and asp.net

    11-26-2008, 12:43 AM
    • Member
      2 point Member
    • nadhr_n
    • Member since 11-26-2008, 3:41 AM
    • Posts 1

     

    Is there any others idea how to sharing/passing data between coldfusion and asp.net without using BlueDragon? or not using URL encoded.

    Because i need to think about security.

  • Re: Sharing/passing Data between coldfusion and asp.net

    11-26-2008, 2:50 AM
    • Star
      9,462 point Star
    • kamii47
    • Member since 05-26-2005, 4:04 PM
    • Karachi, Pakistan
    • Posts 2,201

     You might try cookie.

    Kamran Shahid
    Sr. Software Engineer
    (MCP,MCAD.net,MCSD.net,MCTS,MCPD.net[web])

    Remember to click "Mark as Answer" on the post that helps U
  • Re: Sharing/passing Data between coldfusion and asp.net

    12-03-2008, 2:55 AM
    • All-Star
      63,185 point All-Star
    • TATWORTH
    • Member since 02-04-2003, 1:34 PM
    • England
    • Posts 12,333
    • TrustedFriends-MVPs

     If user arrives at a page in ASP.NET, it should be possible for the ASP.NET page to screen scrape the infromation from cold fusion and present it to the user.

    If you need screen scrape code, please go the the CommonData project at http://www.CodePlex.Com/CommonData

    Don't forget to click "Mark as Answer" on the post that helped you.
    This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
  • Re: Sharing/passing Data between coldfusion and asp.net

    03-30-2009, 10:54 AM

     Hi i m working on same application screen scrap in .NET of coldfusion website but some how i m getting an issue.. i try to use you link but it doesnt work..http://www.CodePlex.Com/CommonData

    Can you please send me a working URL link so i can review a code..

     

    Thanks..

  • Re: Sharing/passing Data between coldfusion and asp.net

    03-31-2009, 3:28 AM
    • All-Star
      63,185 point All-Star
    • TATWORTH
    • Member since 02-04-2003, 1:34 PM
    • England
    • Posts 12,333
    • TrustedFriends-MVPs

     

    sumit_upadhyaya:
    Can you please send me a working URL link so i can review a code..

    Arrrgh... the dreaded trailing space struck again - try http://www.codeplex.com/CommonData

    Don't forget to click "Mark as Answer" on the post that helped you.
    This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
  • Re: Sharing/passing Data between coldfusion and asp.net

    08-25-2009, 2:36 PM
    • Member
      2 point Member
    • Jighead
    • Member since 08-25-2009, 2:34 PM
    • Posts 1

    It can be done. Just as all-star said a cookie is a cookie.  We are doing it at TheJobFool.com

Page 1 of 1 (15 items)