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. show and hide gridview cells controls [modified]

show and hide gridview cells controls [modified]

Scheduled Pinned Locked Moved ASP.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.
  • A Offline
    A Offline
    angle57
    wrote on last edited by
    #1

    hellow friends i want to hide only those controle which clikede by user for session only. this conrole agine disply after session close friends its urgent....

    modified on Saturday, November 28, 2009 6:46 AM

    N A 2 Replies Last reply
    0
    • A angle57

      hellow friends i want to hide only those controle which clikede by user for session only. this conrole agine disply after session close friends its urgent....

      modified on Saturday, November 28, 2009 6:46 AM

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      angle57 wrote:

      friends its urgent....

      This is very rude around here. Answers are given voluntarily and although it may be urgent to you, it isn't to anyone else here.


      I know the language. I've read a book. - _Madmatt

      1 Reply Last reply
      0
      • A angle57

        hellow friends i want to hide only those controle which clikede by user for session only. this conrole agine disply after session close friends its urgent....

        modified on Saturday, November 28, 2009 6:46 AM

        A Offline
        A Offline
        April Fans
        wrote on last edited by
        #3

        Hi, you can try this: protected void Page_Load(object sender, EventArgs e) { if (Session["buttonnamevisible"] == "false") Button1.Visible = false; else Button1.Visible = true; } protected void Button1_Click(object sender, EventArgs e) { Button1.Visible = false; Session["buttonnamevisible"] = "false"; }

        April Comm100 - Leading Live Chat Software Provider

        A 1 Reply Last reply
        0
        • A April Fans

          Hi, you can try this: protected void Page_Load(object sender, EventArgs e) { if (Session["buttonnamevisible"] == "false") Button1.Visible = false; else Button1.Visible = true; } protected void Button1_Click(object sender, EventArgs e) { Button1.Visible = false; Session["buttonnamevisible"] = "false"; }

          April Comm100 - Leading Live Chat Software Provider

          A Offline
          A Offline
          angle57
          wrote on last edited by
          #4

          Thanks a lot, but I did this with session and flag variables. Aging Thank you very much for provide good suggestion. :-D :) :-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