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. Changing 'Look and Feel' and 'Text' of Browse button which we get from FileUpload Control

Changing 'Look and Feel' and 'Text' of Browse button which we get from FileUpload Control

Scheduled Pinned Locked Moved ASP.NET
helpquestion
3 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.
  • S Offline
    S Offline
    Soniya_k
    wrote on last edited by
    #1

    I want to upload image, for that I'm using FileUpload control. But i want to change look n feel of Browse button. Also I don't want its text as "Browse...", I want its text as "Choose File". I don't want TextBox which we get along with the Browse Button. Can I put Imagae on that? Pls help. Thank You.

    G 1 Reply Last reply
    0
    • S Soniya_k

      I want to upload image, for that I'm using FileUpload control. But i want to change look n feel of Browse button. Also I don't want its text as "Browse...", I want its text as "Choose File". I don't want TextBox which we get along with the Browse Button. Can I put Imagae on that? Pls help. Thank You.

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      You can't do anything to the browse button. You can't change it. You can't use the click() method on it in order to hide it and trigger it from another control. You could try to place an element on top of the button and make it transparent to clicks so that the click ends up on the original button. The upload field looks a bit different in different browsers, though. You should prepare yourself for a lot of tweaking and testing in a wide range of browsers. Also, after deploying this you should test it with every new version of every browser to make sure that it still works...

      --- b { font-weight: normal; }

      S 1 Reply Last reply
      0
      • G Guffa

        You can't do anything to the browse button. You can't change it. You can't use the click() method on it in order to hide it and trigger it from another control. You could try to place an element on top of the button and make it transparent to clicks so that the click ends up on the original button. The upload field looks a bit different in different browsers, though. You should prepare yourself for a lot of tweaking and testing in a wide range of browsers. Also, after deploying this you should test it with every new version of every browser to make sure that it still works...

        --- b { font-weight: normal; }

        S Offline
        S Offline
        Soniya_k
        wrote on last edited by
        #3

        Thank You for replying. Can you pls tell me which elements I can use for that? How to make element transparent to clicks? Thanking You In Advance.

        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