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 assaign value to input tag

How to assaign value to input tag

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

    Hi all, how to assign value to input file type tag. i.e i want to assign value to the control. when i give file.value="india.gif" it shows a error.. how to solve it. Pls help mee. thanks Paul

    M _ 2 Replies Last reply
    0
    • N nesaraja

      Hi all, how to assign value to input file type tag. i.e i want to assign value to the control. when i give file.value="india.gif" it shows a error.. how to solve it. Pls help mee. thanks Paul

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Paul, The value property of the input file[^] element is read-only and does not have the default value, so you cannot set the default value for it.

      1 Reply Last reply
      0
      • N nesaraja

        Hi all, how to assign value to input file type tag. i.e i want to assign value to the control. when i give file.value="india.gif" it shows a error.. how to solve it. Pls help mee. thanks Paul

        _ Offline
        _ Offline
        _AK_
        wrote on last edited by
        #3

        Hi Paul, The value of HTMLInputFile is not settable due to the security reasons. The value property of this control is readonly. Best Regards, Apurva Kaushal

        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