Hi,
Is it possible to create a save file dialog using c# on a HTML form? I have been attempting this but with no success. If not are there other ways to go about achieving a similar result?
Thanks for any help :)
Hi,
Is it possible to create a save file dialog using c# on a HTML form? I have been attempting this but with no success. If not are there other ways to go about achieving a similar result?
Thanks for any help :)
Here is another solution: use Run CSharp Code command, click Test Code to get the sample code, then copy and paste following code to textbox, then save the results.
using System;
using System.Windows.Forms;
namespace TestNameSpace
{
public class TestClassName
{
public static string GetCurrentDate()
{
SaveFileDialog savefile = new SaveFileDialog();
if(savefile.ShowDialog()== DialogResult.OK)
{
return savefile.FileName;
}
else
{
return "";
}
}
}
}