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. Any hints?

Any hints?

Scheduled Pinned Locked Moved ASP.NET
question
2 Posts 2 Posters 2 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.
  • D Offline
    D Offline
    DuckFace
    wrote on last edited by
    #1

    Hi, everyone! One questions. I have a web application where users can log in. I want one user to be able to write to a label etc. so that all the other users in his group can see it. Is this possible, and what would be the best way to do this? I've tried to change the sessionsstate mode to serverState, and use sessions, but it does'nt work the way im thinking. Anyone??

    T 1 Reply Last reply
    0
    • D DuckFace

      Hi, everyone! One questions. I have a web application where users can log in. I want one user to be able to write to a label etc. so that all the other users in his group can see it. Is this possible, and what would be the best way to do this? I've tried to change the sessionsstate mode to serverState, and use sessions, but it does'nt work the way im thinking. Anyone??

      T Offline
      T Offline
      Torsten Mauz
      wrote on last edited by
      #2

      How about storing the value for the label in a database. Then you can just read the value straight from the db. You can provide a seperate form for the user to be able to ammend the value.
      If a database is not available, then you could use the Application object. Not particularly nice but it would work. When the user updates the text for the label store it in the Application object like this:

      Application["LabelValue"] = "blah";

      Then You can set the text for the label like this:

      this.lblText.Text = Application["LabelValue"].ToString();

      HTH

      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