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
  1. Home
  2. Web Development
  3. ASP.NET
  4. Passing values from ASP to ASP.NET

Passing values from ASP to ASP.NET

Scheduled Pinned Locked Moved ASP.NET
csharpquestionjavascripthtmlasp-net
4 Posts 3 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.
  • E Offline
    E Offline
    Ekjon
    wrote on last edited by
    #1

    I have an application built using classic asp. I built a page using asp .net (C#) and need to retrieve parameter values passed from the asp page. Some of them are working - when I use code like MyControl = Request.Form["cmbDepartmentID"]; But for unknown reason - the others are not working. So, I tried to create a Session object in the asp page, and retrieve it in the asp.net. In the asp for example - Session("Param") = value And in the asp.net - MyParam = Session["Param"].ToStrng(); But it doesn't recognize the session object. What is the way to do it? The asp page is a huge mumbo-jumbo of vbscript, javascript, html etc. that I don't follow the flow clearly. But I know querystring is not an option here. Thanks.

    T L 2 Replies Last reply
    0
    • E Ekjon

      I have an application built using classic asp. I built a page using asp .net (C#) and need to retrieve parameter values passed from the asp page. Some of them are working - when I use code like MyControl = Request.Form["cmbDepartmentID"]; But for unknown reason - the others are not working. So, I tried to create a Session object in the asp page, and retrieve it in the asp.net. In the asp for example - Session("Param") = value And in the asp.net - MyParam = Session["Param"].ToStrng(); But it doesn't recognize the session object. What is the way to do it? The asp page is a huge mumbo-jumbo of vbscript, javascript, html etc. that I don't follow the flow clearly. But I know querystring is not an option here. Thanks.

      T Offline
      T Offline
      T M Gray
      wrote on last edited by
      #2

      ASP and ASP.Net do not share the same session on the same server by default. Microsoft has a way to implement session sharing[^] but I don't think a lot of people have had good experiences with it. Have you done any debugging to output all of the Request.Form items to see if they are being posted? I can't remember if Request.Form in ASP.Net is case sensitive or not.

      E 1 Reply Last reply
      0
      • T T M Gray

        ASP and ASP.Net do not share the same session on the same server by default. Microsoft has a way to implement session sharing[^] but I don't think a lot of people have had good experiences with it. Have you done any debugging to output all of the Request.Form items to see if they are being posted? I can't remember if Request.Form in ASP.Net is case sensitive or not.

        E Offline
        E Offline
        Ekjon
        wrote on last edited by
        #3

        Hi Gray, Yes I tried outputting all of them, and some are not being passed to the asp.net. Thats why I can't retrieve them. When I did that - I used the same case wording. I could try the Session sharing technique you pointed to, but it looks like overkill. I'll go back and dig further - and let you know. Thanks.

        1 Reply Last reply
        0
        • E Ekjon

          I have an application built using classic asp. I built a page using asp .net (C#) and need to retrieve parameter values passed from the asp page. Some of them are working - when I use code like MyControl = Request.Form["cmbDepartmentID"]; But for unknown reason - the others are not working. So, I tried to create a Session object in the asp page, and retrieve it in the asp.net. In the asp for example - Session("Param") = value And in the asp.net - MyParam = Session["Param"].ToStrng(); But it doesn't recognize the session object. What is the way to do it? The asp page is a huge mumbo-jumbo of vbscript, javascript, html etc. that I don't follow the flow clearly. But I know querystring is not an option here. Thanks.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          http://www.eggheadcafe.com/articles/20021207.asp[^] http://www.devx.com/webdev/Article/30811[^] Try it...

          Jinal Desai - LIVE Experience is mother of sage....

          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