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. General Programming
  3. C#
  4. C# Open Dialog Box

C# Open Dialog Box

Scheduled Pinned Locked Moved C#
csharpdatabasesql-servervisual-studiosysadmin
6 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.
  • H Offline
    H Offline
    HyVong
    wrote on last edited by
    #1

    Hi Everyone, this is my first time here and wonder if anyone out there can help me. I'm using VS.net 2003, and trying to display an "Open Dialog Box" on form MyForm.aspx. On MyForm.aspx, there is one button called "Browse", what i would like is that when the user click on the "Browse" button, the open dialog box pops up and allow user to select a *.csv file from any directory user choose to. It's like upload a file up on the sql server. If anyone have an example or give me a tour through the codes would be great, b/c I have never done anything like this before. Many thanx ;) *HyVong*

    H 1 Reply Last reply
    0
    • H HyVong

      Hi Everyone, this is my first time here and wonder if anyone out there can help me. I'm using VS.net 2003, and trying to display an "Open Dialog Box" on form MyForm.aspx. On MyForm.aspx, there is one button called "Browse", what i would like is that when the user click on the "Browse" button, the open dialog box pops up and allow user to select a *.csv file from any directory user choose to. It's like upload a file up on the sql server. If anyone have an example or give me a tour through the codes would be great, b/c I have never done anything like this before. Many thanx ;) *HyVong*

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      There already is a component to do this. Read the documentation for the OpenFileDialog component in the .NET Framework SDK. While designing your form or user control in VS.NET, you can drag and drop this component from the "Components" section in your toolbox (where all the controls and components can be found when designing your controls). You should really skim through the class library documentation and learn what's available. There are many controls and components to help you create rich apps but you'll only find them if you look.

      Microsoft MVP, Visual C# My Articles

      H 1 Reply Last reply
      0
      • H Heath Stewart

        There already is a component to do this. Read the documentation for the OpenFileDialog component in the .NET Framework SDK. While designing your form or user control in VS.NET, you can drag and drop this component from the "Components" section in your toolbox (where all the controls and components can be found when designing your controls). You should really skim through the class library documentation and learn what's available. There are many controls and components to help you create rich apps but you'll only find them if you look.

        Microsoft MVP, Visual C# My Articles

        H Offline
        H Offline
        HyVong
        wrote on last edited by
        #3

        Thank you very much, though i did go through the help search but i don't have much experience in the field as a student, that's why i'm seeking for help. Thank you. *HyVong*

        H 1 Reply Last reply
        0
        • H HyVong

          Thank you very much, though i did go through the help search but i don't have much experience in the field as a student, that's why i'm seeking for help. Thank you. *HyVong*

          H Offline
          H Offline
          Heath Stewart
          wrote on last edited by
          #4

          HyVong wrote: but i don't have much experience in the field as a student Sorry, but that's really a poor excuse. I was studying C/C++, COM, Perl, and HTML/DHTML long before I even went to college, and learned a lot while I was in college (just not at). College (or whatever educational system you're in) won't teach you everything you need to know. The sooner you realize that, the better off in the future you'll be. Don't wait - study all you can and in-depth so that you gain a good understanding, not just knowledge of what you're told. :) Things change constantly in this field and you have to keep up or get left behing. You do that through research and development and in-depth studies. That's what makes a good developer. Anyone can be taught to write code.

          Microsoft MVP, Visual C# My Articles

          H 1 Reply Last reply
          0
          • H Heath Stewart

            HyVong wrote: but i don't have much experience in the field as a student Sorry, but that's really a poor excuse. I was studying C/C++, COM, Perl, and HTML/DHTML long before I even went to college, and learned a lot while I was in college (just not at). College (or whatever educational system you're in) won't teach you everything you need to know. The sooner you realize that, the better off in the future you'll be. Don't wait - study all you can and in-depth so that you gain a good understanding, not just knowledge of what you're told. :) Things change constantly in this field and you have to keep up or get left behing. You do that through research and development and in-depth studies. That's what makes a good developer. Anyone can be taught to write code.

            Microsoft MVP, Visual C# My Articles

            H Offline
            H Offline
            HyVong
            wrote on last edited by
            #5

            thank you, but if i'm that smart i wouldn't write this message today :) I'm learning as i'm doing it, hopefully i'll get this project works. thanks again. *HyVong*

            H 1 Reply Last reply
            0
            • H HyVong

              thank you, but if i'm that smart i wouldn't write this message today :) I'm learning as i'm doing it, hopefully i'll get this project works. thanks again. *HyVong*

              H Offline
              H Offline
              HyVong
              wrote on last edited by
              #6

              b/c i'm using asp.net, it doesn't work the way i thought , so i had to use javascript instead, now i have to figure out how to upload the file on the server and put that file onto the dataset....any suggestion anyone? *HyVong*

              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