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. Can I use a web form as a model dialog box?

Can I use a web form as a model dialog box?

Scheduled Pinned Locked Moved ASP.NET
asp-netsysadminhelpquestion
4 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.
  • T Offline
    T Offline
    thomas_joyee
    wrote on last edited by
    #1

    Hai all, I have two web forms. From the first form I want to call the second form. That second form contains a 'file field' and a button. With the file field I can select a file from client computer and when I click the button, I want to post the file to the server at the same time the form will closed and return the file name to the first form Is it possible? Thanks for your valuable help Thomas

    I 1 Reply Last reply
    0
    • T thomas_joyee

      Hai all, I have two web forms. From the first form I want to call the second form. That second form contains a 'file field' and a button. With the file field I can select a file from client computer and when I click the button, I want to post the file to the server at the same time the form will closed and return the file name to the first form Is it possible? Thanks for your valuable help Thomas

      I Offline
      I Offline
      ice hotty
      wrote on last edited by
      #2

      what are you going to do at the first form? the name of the upload file ,after the first form get the name,what to do? may be ,you may not use two form to solve your question. Study...

      I 1 Reply Last reply
      0
      • I ice hotty

        what are you going to do at the first form? the name of the upload file ,after the first form get the name,what to do? may be ,you may not use two form to solve your question. Study...

        I Offline
        I Offline
        ice hotty
        wrote on last edited by
        #3

        there is a way you can get what you want. for example: there are tow forms. formFirst and formSecond 1)there is a hidden web controls at the firstForm,named hdValue; 2)at the formSecond ,you upload a file to server ,and you get the name of the upload file. ex: FileName. when the upload click is executing,you can set the value to hdValue; Javascript and code both can do it.. good luck english poor ... :) Study...

        T 1 Reply Last reply
        0
        • I ice hotty

          there is a way you can get what you want. for example: there are tow forms. formFirst and formSecond 1)there is a hidden web controls at the firstForm,named hdValue; 2)at the formSecond ,you upload a file to server ,and you get the name of the upload file. ex: FileName. when the upload click is executing,you can set the value to hdValue; Javascript and code both can do it.. good luck english poor ... :) Study...

          T Offline
          T Offline
          thomas_joyee
          wrote on last edited by
          #4

          Sir/Madam Thanks for your reply. i have two questions. 1. Is there any javascript function to upload a file? 2. Is there any javascript function to pick a file name from a string containing file path and file name? Thanks Thomas

          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