Author: it.architect | Posted on: 3/30/2010 9:06:24 AM | Views : 237

Hello everyone
I'm trying to upload multiple files, so my first componet consist of a user control with an upload multiple files class:
public void opendialog(string ext, string initdir, string titulo) { //System.Threading.Thread.CurrentThread.ApartmentState = System.Threading.ApartmentState.STA; System.Windows.Forms.OpenFileDialog dialog = new System.Windows.Forms.OpenFileDialog(); string strFileName = String.Empty; dialog.Filter = ext; dialog.InitialDirectory = initdir; dialog.Title = titulo; try { System.Threading.Thread.CurrentThread.SetApartmentState(System.Threading.ApartmentState.STA); //System.Windows.Forms.DialogResult dialogResult = dialog.ShowDialog(); if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { } ...

Go to the complete details ...