Wrox Programmer Forums
|
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 18th, 2008, 08:31 PM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 101
Thanks: 0
Thanked 1 Time in 1 Post
Default submit to the server

OK, this must be a very very simple question for ASP programmers to answer.
After I have gathered all the information I want from the user and after
the user has clicked on a submit button, how do I make an operating system
style call on the server.

Now, I have already figured out how to create a function call in the ASP
development environment that is called when the user clicks on the submit
button.

So my qesttion is to how to create a system level command through ASP.

Specifically, I am using ASP.NET. Let me explain further. I have just completed
a program that is very simular to the #3 AJAX demo that Joe Strgner has made on
http://asp.net/learn/ajax-videos/ where he gets users to select from a group
of "CascadingDropDown" control extender classes. When the user has selected
from the third drop down control, a label is custom formatted and displays the
group of selected options.

What I want to do is this. After this is done, I want to have a "submit" button
on this page which, when the user presses it, a call is made on the server side
that will include the users selections as parameters.

Something like this, for example:

"CALL SOMEPROGRAM.EXE " selection_1, selection_2

I think I will ask this question in a simpler way.
Notepad is a program that can be launched from the command line.
I can open a CMD window (dos window) and on the command line,
I can type "notepad" and the notepad execuatble will launch and I will
see that program. So, how would I do that inside asp.net and
specifically inside the Default.aspx.cs file which will get called
when the user clicks on the send button in the function

protected void Button1_Click(object sender, EventArgs e)
{
}

 Is there some sort of "run" command in asp.net like "run notepad"?


I also need to have some information specific to the user included in the submit.
We are on an intranet and each user has an alias. How do I snag this information?



 
Old March 18th, 2008, 10:44 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

In order to run a process you use the System.Diagnostics.Process.

One fundamental problem you may encounter is that you can not run "interactive" programs from ASP.NET. The program will be launched on the server under the authority of the IIS user so you may be limited with what you can do and access. Any user interface the program has will be hidden and not usable so you are basically limited to programs that can be run purely at the command prompt and without any user prompting. I realize that you may have been using notepad as an example, but I have seen people ask similar questions with the expectation that notepad would start on the user's computer. So I want to be clear.

-Peter
peterlanoie.blog





Similar Threads
Thread Thread Starter Forum Replies Last Post
Submit olisav ASP.NET 2.0 Basics 0 May 17th, 2007 02:32 PM
submit a form at ASP server side NewLuna1 Classic ASP Basics 1 March 25th, 2007 07:23 AM
How to submit the different data on single submit pushpa Classic ASP Databases 1 January 24th, 2007 07:10 PM
How can we submit a form without a submit butto phpsharma BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 4 October 20th, 2003 08:50 AM
submit kilika VBScript 0 September 16th, 2003 01:38 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.