D
DotNetJunkies User
Hi All,
Hope someone can help me out with this problem.
I tried to start a process(notepad.exe) from a web form, but it is not started. Neither the aspnet_wp.exe nor my notepad.exe is shown in the Taskbar.
Here is my code:
private void Button1_Click(object sender, System.EventArgs e)
{
try
{
Process p = new Process();
p.StartInfo.FileName = "C:\\Windows\\notepad.exe";
p.StartInfo.UseShellExecute = false;
p.StartInfo.CreateNoWindow = false;
p.StartInfo.WindowStyle = ProcessWindowStyle.Maximized;
p.Start();
}
catch(Exception exp)
{
txtResults.Text = exp.StackTrace;
}
}
Awaiting for your replies
Thanks
Madhavi
Hope someone can help me out with this problem.
I tried to start a process(notepad.exe) from a web form, but it is not started. Neither the aspnet_wp.exe nor my notepad.exe is shown in the Taskbar.
Here is my code:
private void Button1_Click(object sender, System.EventArgs e)
{
try
{
Process p = new Process();
p.StartInfo.FileName = "C:\\Windows\\notepad.exe";
p.StartInfo.UseShellExecute = false;
p.StartInfo.CreateNoWindow = false;
p.StartInfo.WindowStyle = ProcessWindowStyle.Maximized;
p.Start();
}
catch(Exception exp)
{
txtResults.Text = exp.StackTrace;
}
}
Awaiting for your replies
Thanks
Madhavi