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. textbox style change at runtime

textbox style change at runtime

Scheduled Pinned Locked Moved ASP.NET
question
5 Posts 5 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.
  • P Offline
    P Offline
    praveen iThesisArt
    wrote on last edited by
    #1

    i wish to change the font- family at runtime n also font-wt.. is it possible ??

    J G R B 4 Replies Last reply
    0
    • P praveen iThesisArt

      i wish to change the font- family at runtime n also font-wt.. is it possible ??

      J Offline
      J Offline
      Joezer BH
      wrote on last edited by
      #2

      Javascript! Here's an example for FontFamily property of an element:

      function displayResult()
      {
      document.getElementById("p1").style.fontFamily="Impact,Charcoal,sans-serif";
      }

      See link for a W3Schools online interactive example: http://www.w3schools.com/jsref/prop_style_fontfamily.asp[^]

      // TODO: Create nice signature

      1 Reply Last reply
      0
      • P praveen iThesisArt

        i wish to change the font- family at runtime n also font-wt.. is it possible ??

        G Offline
        G Offline
        gashkori
        wrote on last edited by
        #3

        you can change css class at runtime with textbox id

        1 Reply Last reply
        0
        • P praveen iThesisArt

          i wish to change the font- family at runtime n also font-wt.. is it possible ??

          R Offline
          R Offline
          ramrakshamishra
          wrote on last edited by
          #4

          create a css class and apply css class on run time txtName.attribute.add("cssClass",);

          1 Reply Last reply
          0
          • P praveen iThesisArt

            i wish to change the font- family at runtime n also font-wt.. is it possible ??

            B Offline
            B Offline
            Bikash Prakash Dash
            wrote on last edited by
            #5

            yes its possible , but it will remain unchanged , on next reload of the 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