Yes you can Run Another Application Like in Below Code I have Executed Notepad
using System.Diagnostics;
[WebMethod]
publicvoidrunapplication()
{
Process.Start("Notepad.exe");
}
fitUOM UOM29 reputationPosted Aug 7, 2009, 10:25 PM EDT
0
hi kirtan,
thnks for ur reply..
then cn i cll to main methode in c# chess project by using web method?
then will it cll to other necessary methodes and class to run the chess game project?
my chess game is seperate project. I want to load it to the client machines by using web service
Kirtan PatelRank #292 · 8.6K reputationPosted Aug 7, 2009, 10:04 PM EDT
Yes you can Run Another Application Like in Below Code I have Executed Notepad using System.Diagnostics; [WebMethod] public void runapplication() { Process.Start("Notepad.exe"); }fitUOM UOM29 reputationPosted Aug 7, 2009, 9:37 PM EDT
thnks for ur reply.
can u pls reply hw cn i do it?
fitUOM UOM29 reputationPosted Aug 7, 2009, 10:25 PM EDT
thnks for ur reply..
then cn i cll to main methode in c# chess project by using web method?
then will it cll to other necessary methodes and class to run the chess game project?
my chess game is seperate project. I want to load it to the client machines by using web service
Kirtan PatelRank #292 · 8.6K reputationPosted Aug 7, 2009, 10:36 PM EDT
In Solution Explorer Right Click your Chess Project and "Add Service Reference"
then call it like
That Will do your job :)
please mark "do you like answer" it will earn me some credits :)
fitUOM UOM29 reputationPosted Aug 7, 2009, 11:11 PM EDT
thank u very much for the reply. it's working.
nw i have problem what is the namespace i have to use to import my chess project
fitUOM UOM29 reputationPosted Aug 7, 2009, 11:25 PM EDT
i hv created a web site.
by clicking "play game" button in that web site i want to load the chess game application.
pls help me.
Kirtan PatelRank #292 · 8.6K reputationPosted Aug 7, 2009, 11:27 PM EDT
Hi ,
You can Call Web Service's method in Your Windows Form Application but can add Referee of your Chess Project in Web service
and if you want to have create dll and Add Dll File as Reference :) and as per my knowledge you can run a method of
project but can run a Windows Application on Web
yo need to create silver light application for that
fitUOM UOM29 reputationPosted Aug 7, 2009, 11:49 PM EDT
i cnt clerly understand wt u say. it's my fault.
pls consider this.
think this as my chess project main method.
namespace WindowsApplication2
{
static class Program
{
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
I have web service MyClass.cs
public class MyClass : System.Web.Services.WebService {
public MyClass () {
}
[WebMethod()]
public void runapplication()
{
Process.Start("Notepad.exe");
}
}
As well i have web page that view to client default.aspx