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. How to access HTML Controls property in codebehind

How to access HTML Controls property in codebehind

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

    hello friends, I want to change the property of div dynamically such as depending on the condition sometimes its display to block or none; Plz help me how to do this from codebehind...

    Deepak Nigam

    V 1 Reply Last reply
    0
    • D Deepak Nigam

      hello friends, I want to change the property of div dynamically such as depending on the condition sometimes its display to block or none; Plz help me how to do this from codebehind...

      Deepak Nigam

      V Offline
      V Offline
      Vijayitsb
      wrote on last edited by
      #2

      Hi, You can declare div tag as Server control using runat attribute of div tag then only you can access it from codebehind To block div tag use this code in codebehind divId.Style.Add("display","block")

      Cheers..! Vijay s

      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