Display Windows Calculator in ASP.NET on Button Click Event.
Include the name space in you webform and Write the code on Button Click. System.Diagnostics.Process.Start("Application Name");
Process.Start invokes the process from system32 directory.
using System.Diagnostics;
protected void btnCalculator_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("calc.exe");
}
Include the name space in you webform and Write the code on Button Click. System.Diagnostics.Process.Start("Application Name");
Process.Start invokes the process from system32 directory.
using System.Diagnostics;
protected void btnCalculator_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("calc.exe");
}
No comments :
Post a Comment