Hi I need OpenFileDialog/SaveFileDialog in browser? Could you present some sample here. I the desktop solution I have the code and It's working, but in the web client it's not working.
private void btnSave_ClickBefore(object sboObject, SBOItemEventArg pVal, out bool BubbleEvent) { BubbleEvent = true; if (PictureBox.Picture != "") { Bitmap myBitmap = new Bitmap(Common.imagePath + textBarcode.Value + ".bmp"); Thread t = new Thread((ThreadStart)(() => { SaveFileDialog s = new SaveFileDialog(); s.Filter = "JPeg Image|*.jpg|Bitmap Image|*.bmp|Gif Image|*.gif"; s.Title = "Save an Image File"; s.ShowDialog(); if (s.FileName != "" && PictureBox.Picture != null) { System.IO.FileStream fs = (System.IO.FileStream)s.OpenFile(); switch (s.FilterIndex) { case 1: myBitmap.Save(fs, ImageFormat.Jpeg); break; case 2: myBitmap.Save(fs, ImageFormat.Bmp); break; case 3: myBitmap.Save(fs, ImageFormat.Gif); break; } fs.Close(); } })); t.SetApartmentState(ApartmentState.STA); t.Start(); t.Join(); } else { MessageBox.Show("Моля генерирайте баркод."); } }