|
| |
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
Well at first attempt it will sound like, what ? ASP.NET application is
processed on server side, how will you get the output?. Well remember its
not always that you want to run a visual application. it can be a
background application like some utility. For eg: After uploading a file
you want to zip it and store it on your disk. Infact any console output emitted
by your application can be read and displayed back into webbrowser
You can use your System.Diagnostics namespace to interact with system
processes. Here is a small tip.
string file = Server.MapPath(@"MyApp.exe");
ProcessStartInfo info = new ProcessStartInfo(file, "otherargs");
info.RedirectStandardOutput = true;
info.UseShellExecute = false;
Process p = Process.Start(info);
p.Start();
// Send whatever was returned through the output to the client.
Response.Write(p.StandardOutput.ReadToEnd()); |
Note that the ASP.NET worker process needs to have permissions to access the external application. The most simple way to ensure this is to place it under the bin folder.
Readers: What do you think? Can you execute a external
application using JavaScript ? |
|
View the Milky Way at 10 million light years from the Earth. Then move through space towards the Earth in successive orders of magnitude until you reach a tall oak tree just outside the buildings of the National High Magnetic Field Laboratory in Tallahassee, Florida. After that, begin to move from the actual size of a leaf into a microscopic world that reveals leaf cell walls, the cell nucleus, chromatin, DNA and finally, into the subatomic universe of electrons and protons.
http://micro.magnet.fsu.edu/primer/java/scienceopticsu/powersof10/index.html
|
|
| The DQ-IDC India: SALARY
SURVEY '05
Shipra Arora surveys over 2,850 employees across 32 IT companies
Average hike in IT salaries stays at 18%
Freshers/non-engineers keep average salary steady at Rs 5.7 lakh
Maharashtra beats Karnataka as #1 supplier of tech manpower
More read here http://www.dqindia.com/content/top_stories/2005/105091201.asp
|
|
|
|
|
|
|
|
|
|
|