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. file open dialog box + asp.net2.0 + c#

file open dialog box + asp.net2.0 + c#

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelp
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.
  • R Offline
    R Offline
    ritu4321
    wrote on last edited by
    #1

    i want to open modal file open dialog box on click of the button as we get in fileupload control. can anyone help me in this.

    U R 2 Replies Last reply
    0
    • R ritu4321

      i want to open modal file open dialog box on click of the button as we get in fileupload control. can anyone help me in this.

      U Offline
      U Offline
      unil Dhiman
      wrote on last edited by
      #2

      try this- Button1.Attributes.Add("onclick", "window.showModalDialog('MyPage.aspx',null,'dialogHeight:285px;dialogWidth:635px;center:yes;resizable:yes;status:no;help:no; ');");

      1 Reply Last reply
      0
      • R ritu4321

        i want to open modal file open dialog box on click of the button as we get in fileupload control. can anyone help me in this.

        R Offline
        R Offline
        ritu4321
        wrote on last edited by
        #3

        I want to window which comes when we click the browse button on fileuploader control. The code you had given i tried with that before. But it is only a window.

        D 1 Reply Last reply
        0
        • R ritu4321

          I want to window which comes when we click the browse button on fileuploader control. The code you had given i tried with that before. But it is only a window.

          D Offline
          D Offline
          dilipv 0
          wrote on last edited by
          #4

          hi there, Since you are using ASP.net 2.0 then you most probably using in Visual Studio 2005. Then there is "FileUpload" asp button which provide all your need. FileUpload button has two components one is textbox and other is browse button. On click of browse button you will see open file dialog box and by selecting appropriate fill, you see file path in textbox. Just try. Thanks & Regards Dilip kumar vishwakarma

          Programmer .Net Consulting

          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