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. Making a html input button invisible

Making a html input button invisible

Scheduled Pinned Locked Moved ASP.NET
htmltutorial
5 Posts 4 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.
  • R Offline
    R Offline
    Rajiya
    wrote on last edited by
    #1

    Hi, I have a html button btnBroadcast on my page on click of which i am opening a popup window. When i login i check for user access which can have a value of true and false.I store this value in a session variable and depending on whether the session value is true or false i have to make the html input button "btnBroadcast" visible or hidden. Does anybody know how to do it. Thanks, riz

    M M V 3 Replies Last reply
    0
    • R Rajiya

      Hi, I have a html button btnBroadcast on my page on click of which i am opening a popup window. When i login i check for user access which can have a value of true and false.I store this value in a session variable and depending on whether the session value is true or false i have to make the html input button "btnBroadcast" visible or hidden. Does anybody know how to do it. Thanks, riz

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      hum? btnBroadcast.Visible = (bool)Session["value"]; ??

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

      M 1 Reply Last reply
      0
      • R Rajiya

        Hi, I have a html button btnBroadcast on my page on click of which i am opening a popup window. When i login i check for user access which can have a value of true and false.I store this value in a session variable and depending on whether the session value is true or false i have to make the html input button "btnBroadcast" visible or hidden. Does anybody know how to do it. Thanks, riz

        M Offline
        M Offline
        Mubashir Javaid
        wrote on last edited by
        #3

        write runat="server" in button tag and access by button name in code behind. after accessing that button use visible property to hide that button

        God Bless you. Always do good to others

        1 Reply Last reply
        0
        • M Michael Sync

          hum? btnBroadcast.Visible = (bool)Session["value"]; ??

          Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

          M Offline
          M Offline
          Michael Sync
          wrote on last edited by
          #4

          Yes. need to add "RunAt="Server""

          Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

          1 Reply Last reply
          0
          • R Rajiya

            Hi, I have a html button btnBroadcast on my page on click of which i am opening a popup window. When i login i check for user access which can have a value of true and false.I store this value in a session variable and depending on whether the session value is true or false i have to make the html input button "btnBroadcast" visible or hidden. Does anybody know how to do it. Thanks, riz

            V Offline
            V Offline
            VenkataRamana Gali
            wrote on last edited by
            #5

            write a java script function i.e., function window.onload() { var sessionValue = '<%=Session["sessionname"]%>'; if(sessionValue != null) { document.getElementById("btnBroadcast").style.visibility="hidden"; } }

            regards GV Ramana

            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