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. ASP.NET
  4. How to share data in C# and VB projects in one solution

How to share data in C# and VB projects in one solution

Scheduled Pinned Locked Moved ASP.NET
helpcsharptutorialquestion
2 Posts 1 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
    SABhatti
    wrote on last edited by
    #1

    Can some one tell me how to share data especially session data between two projects in one solution (one is in C# and the other is in VB)? Actually somehow there is a bug in VB and it does not give option to save or open file in some special cases, and I have to write that code in C# to get it to work. Now I have to create xls file dynamically depending on the logged in user and that has to be done when user hits the download button. all the data required to create xls file is in session and session created by VB prject is not available in C# project. I have tried StateServer after starting ASPState.exe but it does not help. Can someone tell me how to fix this problem, or should I use any other way instead of session? -----

    S 1 Reply Last reply
    0
    • S SABhatti

      Can some one tell me how to share data especially session data between two projects in one solution (one is in C# and the other is in VB)? Actually somehow there is a bug in VB and it does not give option to save or open file in some special cases, and I have to write that code in C# to get it to work. Now I have to create xls file dynamically depending on the logged in user and that has to be done when user hits the download button. all the data required to create xls file is in session and session created by VB prject is not available in C# project. I have tried StateServer after starting ASPState.exe but it does not help. Can someone tell me how to fix this problem, or should I use any other way instead of session? -----

      S Offline
      S Offline
      SABhatti
      wrote on last edited by
      #2

      Thanks.. but it works now.. Instead of opening the C# project/file from the client (href) I used server.transfer from a VB project/file and I can access all session variables in C# file...:-D -----

      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