ASP.Net with ColdFusion

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • quest007
    New Member
    • Jul 2007
    • 11

    ASP.Net with ColdFusion

    Hi!
    I am an ASP.Net programmer. I have been assigned a task to make some modifications to an existing website that is entirely in ColdFusion. However I have no idea about ColdFusion. Is it possible to develop a part of the application in ASP.Net and have a link in the coldfusion page redirecting to this page. Will it have some functionality issues? Please help.
  • tagg3rx
    New Member
    • Jun 2007
    • 35

    #2
    It's possible - you will need to decide what application variables you want to pass to your new page and what you want to pass back.

    In coldfusion you would write the URL to your new page like

    <A href="something .aspx?username= #username#&othe rvar=#othervar# >link</a>

    Where the ##s surround the varables you want to pass then just read them in the asp page. You will have to dig through the CF pages to determin what varables you need to pass accross.

    Or you could pick up fortas book on coldfusion and spend a few days reading up I think you will find CF quite straight foreward.

    I'm currently going the other way from CF to .net and i have to say CF is much easier and intutiave.

    Good luck

    Comment

    • quest007
      New Member
      • Jul 2007
      • 11

      #3
      Thanks a lot for the detailed description. The syntax for link url would really help a lot.
      Originally posted by tagg3rx
      It's possible - you will need to decide what application variables you want to pass to your new page and what you want to pass back.

      In coldfusion you would write the URL to your new page like

      <A href="something .aspx?username= #username#&othe rvar=#othervar# >link</a>

      Where the ##s surround the varables you want to pass then just read them in the asp page. You will have to dig through the CF pages to determin what varables you need to pass accross.

      Or you could pick up fortas book on coldfusion and spend a few days reading up I think you will find CF quite straight foreward.

      I'm currently going the other way from CF to .net and i have to say CF is much easier and intutiave.

      Good luck

      Comment

      • tagg3rx
        New Member
        • Jun 2007
        • 35

        #4
        Not realy sure what you mean by detailed syntax since you havent specified what you want to pass from the CF app to your asp app, but here let me give a 10 line exapmle that passes the current username to your asp page.

        CF Code
        <cfoutput>
        <cfset username = "#getauthuser() #">
        <a href = "myasppageurl.a spx?username=#u sername">New Page</a>
        </cfoutput>


        ASPX code (C#)
        Label1.Text = Request.QuerySt ring("username" );



        Of course you have to determine what you want to pass from the CF application to the aspx application.

        They are completely diffrent appliations but that dosent mean you can't pass data between them.

        Comment

        • Shift4SMS
          New Member
          • Feb 2007
          • 14

          #5
          You may want to think more "long term." Mixing some ASP into a CF site may (or may not) be the quickest way to solve the current problem, long term this will most likely turn into a nightmare to maintain, code & test.

          My suggestion would be to learn CF and make the mods in CF or rewrite the site in ASP and make the mods in ASP. Mixing the two would be like putting Ferrari doors on a VW or visa-versa - it can be done but it would be pretty.

          If you are an intermediate to advanced ASP developer, learning CF should be a breeze.

          Comment

          • Shift4SMS
            New Member
            • Feb 2007
            • 14

            #6
            Originally posted by Shift4SMS
            ...Mixing the two would be like putting Ferrari doors on a VW or visa-versa - it can be done but it would be pretty...
            It can be done but it would NOT be pretty.

            Comment

            • quest007
              New Member
              • Jul 2007
              • 11

              #7
              Originally posted by Shift4SMS
              It can be done but it would NOT be pretty.
              Thanks for the suggestion. But time constriant prevents me from either learning coldfusion or converting whole of the existing code to ASP. Just trying to make both the techs work together in the best possible manner. If there are some known issues of conflict when using both together please let me know.
              Thanks

              Comment

              • Shift4SMS
                New Member
                • Feb 2007
                • 14

                #8
                Originally posted by quest007
                Thanks for the suggestion. But time constriant prevents me from either learning coldfusion or converting whole of the existing code to ASP. Just trying to make both the techs work together in the best possible manner. If there are some known issues of conflict when using both together please let me know.
                Thanks
                There is nothing preventing a mixed code site. The biggest issue is in sharing session scope variables between the two because the the two environments store and track them differently. If you don't need to share information, then no big deal. If you need to share information you will need to pass the information via form fields or url paramters or store the information in a database that both environments have access to.

                I don't know ASP well enough to help you much more. Maybe someone else...

                Comment

                Working...