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. variable for aspx and all its ascx

variable for aspx and all its ascx

Scheduled Pinned Locked Moved ASP.NET
question
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.
  • J Offline
    J Offline
    Jassim Rahma
    wrote on last edited by
    #1

    Hi, I have aspx and i have few ascx within the same aspx. I want to use a page variable for it so it should be readable from any part of the page, from aspx or any of its ascx, something like the session but for that page only. what's your idea?

    N 1 Reply Last reply
    0
    • J Jassim Rahma

      Hi, I have aspx and i have few ascx within the same aspx. I want to use a page variable for it so it should be readable from any part of the page, from aspx or any of its ascx, something like the session but for that page only. what's your idea?

      N Offline
      N Offline
      n podbielski
      wrote on last edited by
      #2

      VieState or ControlState plus some helper class. I don't see other alternatives. Maybe custom Page class with custom Controls, but it is harder to acomplish.

      No more Mister Nice Guy... >: |

      A 1 Reply Last reply
      0
      • N n podbielski

        VieState or ControlState plus some helper class. I don't see other alternatives. Maybe custom Page class with custom Controls, but it is harder to acomplish.

        No more Mister Nice Guy... >: |

        A Offline
        A Offline
        Amir Jalilifard
        wrote on last edited by
        #3

        Create an object for MyPage class like MyPage myPage = new MyPage(); myPage.productName = "adidos"; productName is a variable of your page

        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