Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 12, 2009 12:03 PM by sharmoon
Member
4 Points
5 Posts
Feb 12, 2009 08:59 AM|LINK
Can any one help me to sort out 'open file dialog' problem
how to open a file by using open file dialog
Contributor
4155 Points
802 Posts
Feb 12, 2009 10:42 AM|LINK
hi jamil,
Kindly check this thread,i think it contains what you are looking for
http://forums.asp.net/t/1365371.aspx
355 Points
65 Posts
Feb 12, 2009 12:03 PM|LINK
private void browseButton_Click(object sender, EventArgs e) { OpenFileDialog openDialog = new OpenFileDialog(); openDialog.Multiselect = true; if (openDialog.ShowDialog() == DialogResult.OK) { foreach (string s in openDialog.FileNames) { this.listBox1.Items.Add(s); this.photoPictureBox.ImageLocation = s; } } }
And visit this link for aspx page http://asp.net-tutorials.com/controls/file-upload-control/
visit this link for aspx page
http://asp.net-tutorials.com/controls/file-upload-control/
myNameJamil
Member
4 Points
5 Posts
open file dialog problem
Feb 12, 2009 08:59 AM|LINK
Can any one help me to sort out 'open file dialog' problem
how to open a file by using open file dialog
joydeepsen
Contributor
4155 Points
802 Posts
Re: open file dialog problem
Feb 12, 2009 10:42 AM|LINK
hi jamil,
Kindly check this thread,i think it contains what you are looking for
http://forums.asp.net/t/1365371.aspx
Dont forget to click “Mark as Answer” on the post that helped you.This credits that member, earns you a point and mark your thread as Resolved for the sake of Future Readers
sharmoon
Member
355 Points
65 Posts
Re: open file dialog problem
Feb 12, 2009 12:03 PM|LINK
private void browseButton_Click(object sender, EventArgs e) { OpenFileDialog openDialog = new OpenFileDialog(); openDialog.Multiselect = true; if (openDialog.ShowDialog() == DialogResult.OK) { foreach (string s in openDialog.FileNames) { this.listBox1.Items.Add(s); this.photoPictureBox.ImageLocation = s; } } }please "Mark as Answer" if I trust you