Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. Transferring Control from ASP to ASP.NET and back

Transferring Control from ASP to ASP.NET and back

Scheduled Pinned Locked Moved Web Development
csharpasp-netquestion
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Serge Lobko Lobanovsky
    wrote on last edited by
    #1

    Hi everyone! Does anybody know what will happen if I do Response.Redirect from an ASP page (having ASP session) to an ASPX page that will perform some stuff and then Response.Redirect to another ASP page. Will my ASP session be lost? Note that I don't need to pass values between these sessions - I can pass what I need using Request. Thanx in advance. Regards, Serge (Logic Software)

    N O 2 Replies Last reply
    0
    • S Serge Lobko Lobanovsky

      Hi everyone! Does anybody know what will happen if I do Response.Redirect from an ASP page (having ASP session) to an ASPX page that will perform some stuff and then Response.Redirect to another ASP page. Will my ASP session be lost? Note that I don't need to pass values between these sessions - I can pass what I need using Request. Thanx in advance. Regards, Serge (Logic Software)

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      I haven't tried this but I would expect the session to be lost since they are handled by seperate processes.

      1 Reply Last reply
      0
      • S Serge Lobko Lobanovsky

        Hi everyone! Does anybody know what will happen if I do Response.Redirect from an ASP page (having ASP session) to an ASPX page that will perform some stuff and then Response.Redirect to another ASP page. Will my ASP session be lost? Note that I don't need to pass values between these sessions - I can pass what I need using Request. Thanx in advance. Regards, Serge (Logic Software)

        O Offline
        O Offline
        OMalleyW
        wrote on last edited by
        #3

        You would like to launch an ASP page from an ASPX page? This ASP page what will it change? Why cant it be done with the ASPX page? More info please William O'Malley

        S 1 Reply Last reply
        0
        • O OMalleyW

          You would like to launch an ASP page from an ASPX page? This ASP page what will it change? Why cant it be done with the ASPX page? More info please William O'Malley

          S Offline
          S Offline
          Serge Lobko Lobanovsky
          wrote on last edited by
          #4

          You see, we already have an elaborate system written in ASP, and now we need to expand its functionality beyound the level that can be achieved with pure ASP, e.g. on one page it sends an e-mail to a user, and this operation takes about 1 minute. We decided that sending a message in a different thread is the solution we need. Firstly we tried to create a .NET component that will handle this task, and to call it via COM, we followed the steps described in MSDN to use COM wrappers, but failed. Being pressed for time we had invent another solution, and the obvious thing that came to mind was to redirect from the ASP page to an ASPX page that will facilitate e-mail send, and bring control to another ASP page that is in the chain. Now we have the following problem: control passes from ASP to ASPX, and there it stops. We used Response.Redirect in ASPX page, but it seems that it kills all threads that start in it, and Server.Transfer doesn't work as well. In the HTML output of the ASPX page we notice that it doesn't contain any HTML output that should be there. Could you suggest something? Regards, Serge (Logic Software)

          L 1 Reply Last reply
          0
          • S Serge Lobko Lobanovsky

            You see, we already have an elaborate system written in ASP, and now we need to expand its functionality beyound the level that can be achieved with pure ASP, e.g. on one page it sends an e-mail to a user, and this operation takes about 1 minute. We decided that sending a message in a different thread is the solution we need. Firstly we tried to create a .NET component that will handle this task, and to call it via COM, we followed the steps described in MSDN to use COM wrappers, but failed. Being pressed for time we had invent another solution, and the obvious thing that came to mind was to redirect from the ASP page to an ASPX page that will facilitate e-mail send, and bring control to another ASP page that is in the chain. Now we have the following problem: control passes from ASP to ASPX, and there it stops. We used Response.Redirect in ASPX page, but it seems that it kills all threads that start in it, and Server.Transfer doesn't work as well. In the HTML output of the ASPX page we notice that it doesn't contain any HTML output that should be there. Could you suggest something? Regards, Serge (Logic Software)

            L Offline
            L Offline
            l a u r e n
            wrote on last edited by
            #5

            ummmmm optimize ur email sending code? a minute to send an email is somewhat ridiculous no?


            "there is no spoon"
            biz stuff   about me

            S 1 Reply Last reply
            0
            • L l a u r e n

              ummmmm optimize ur email sending code? a minute to send an email is somewhat ridiculous no?


              "there is no spoon"
              biz stuff   about me

              S Offline
              S Offline
              Serge Lobko Lobanovsky
              wrote on last edited by
              #6

              l a u r e n wrote: a minute to send an email is somewhat ridiculous no? the email code has already been optimized :) anyway, we solved it - ASP session IS preserved when sending control to an ASPX page, and then back to another ASP page. Email is sent in a new thread. Regards, Serge (Logic Software)

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups