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. Declare Variables globally

Declare Variables globally

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nettutorial
3 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.
  • B Offline
    B Offline
    BINOVAR
    wrote on last edited by
    #1

    Hi All, Can any one please tell me how to declare a variable globally. I know there are sessions,applications and etc., But I need a varible globally so that it can be used in all .aspx pages without any declarations. I have used such type of varaibles in Vb.net by declaring it in Module file..so Im in luk up 4 tat type..... Plz give them detailly as Im new to ASp.net... Thanks in Advance Regards Bino Varghese

    A T 2 Replies Last reply
    0
    • B BINOVAR

      Hi All, Can any one please tell me how to declare a variable globally. I know there are sessions,applications and etc., But I need a varible globally so that it can be used in all .aspx pages without any declarations. I have used such type of varaibles in Vb.net by declaring it in Module file..so Im in luk up 4 tat type..... Plz give them detailly as Im new to ASp.net... Thanks in Advance Regards Bino Varghese

      A Offline
      A Offline
      Arun Immanuel
      wrote on last edited by
      #2

      I thiink we don't have global variables in ASP.NET as we have in Vb.NET.

      Regards, Arun Kumar.A

      1 Reply Last reply
      0
      • B BINOVAR

        Hi All, Can any one please tell me how to declare a variable globally. I know there are sessions,applications and etc., But I need a varible globally so that it can be used in all .aspx pages without any declarations. I have used such type of varaibles in Vb.net by declaring it in Module file..so Im in luk up 4 tat type..... Plz give them detailly as Im new to ASp.net... Thanks in Advance Regards Bino Varghese

        T Offline
        T Offline
        Tirthadip
        wrote on last edited by
        #3

        keep your variable in Session object to use it in all pages....

        Tirtha Miles to go before I sleep

        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