C# Open Dialog Box
-
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*
-
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*
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
-
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
-
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*
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
-
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
-
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*