On my webpage i have a button which displays an OpeFileDialog for its Onclick event. However, the dialogbox is opening behind my web browser. I had assumed that .ShowDialog() would have opened a modal OpenFiledialog and therefore open ontop of my browser. If I minimise or move my browser, I can see the OpenFileDialg waiting for me to select a file or cancel it.
Does anyone know a solution to this or am I doig something wrong?
System.Windows.Forms.OpenFileDialog dlg = new System.Windows.Forms.OpenFileDialog();
dlg.Title = "Select Mailmerge Document";
dlg.Filter = "Word Documents|*.doc*|All File|*.*";
if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
txtDocumentName.Text = dlg.FileName.ToString();
txtRowchanged.Text = "true";