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. fileupload ctrl

fileupload ctrl

Scheduled Pinned Locked Moved ASP.NET
databasehelpquestion
4 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.
  • M Offline
    M Offline
    m dhu
    wrote on last edited by
    #1

    hi... im trying to get data from database.. using sessions retrieved data to text box and dropdownlist in following way... how can i get path of fileupload control into textbox of file upload ctrl. help me...

    DropDownList1.SelectedValue = Session["website"].ToString();
    TextBox8.Text = Session["link"].ToString();

    C 1 Reply Last reply
    0
    • M m dhu

      hi... im trying to get data from database.. using sessions retrieved data to text box and dropdownlist in following way... how can i get path of fileupload control into textbox of file upload ctrl. help me...

      DropDownList1.SelectedValue = Session["website"].ToString();
      TextBox8.Text = Session["link"].ToString();

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      madhukk wrote:

      how can i get path of fileupload control into textbox of file upload ctrl.

      It's not possible. All of this looks very dodgy to me ( do your controls really have such pathetic names ? ), but either way, you can't set the text of a file upload control on the server, nor can you set it in javascript. This is for obvious reasons, if you could, you could hide one, send it with a web page, put the name of a windows config file, for example, in there, and it would upload without the user ever knowing.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      G 1 Reply Last reply
      0
      • C Christian Graus

        madhukk wrote:

        how can i get path of fileupload control into textbox of file upload ctrl.

        It's not possible. All of this looks very dodgy to me ( do your controls really have such pathetic names ? ), but either way, you can't set the text of a file upload control on the server, nor can you set it in javascript. This is for obvious reasons, if you could, you could hide one, send it with a web page, put the name of a windows config file, for example, in there, and it would upload without the user ever knowing.

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        G Offline
        G Offline
        Gaurav Dudeja India
        wrote on last edited by
        #3

        This is not possible, because so security reasons of web servers

        C 1 Reply Last reply
        0
        • G Gaurav Dudeja India

          This is not possible, because so security reasons of web servers

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Why did you answer to MY answer, and just restate what I had said ?

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          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