Asp Submit

Complete

OSNN Addict
Joined
25 Aug 2005
Messages
94
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 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?
 

fitz

Woah.. I'm still here?
Political Access
Joined
26 Apr 2004
Messages
4,084
generally not a good idea.. if you're dead set to do it, and, assuming your server has Windows Script Host, you can run
Code:
<% 
     set wshell = CreateObject("WScript.Shell") 
     wshell.run "c:\someprogram.exe" 
     set wshell = nothing 
%>
But, like I said, generally a very bad idea to take input from a user and allow that input to be passed to a program that will execute on the server side.

There used to be a 3rd party component that would allow you to do this as well (ASPExec from ServerObjects) but I can't seem to find it on their website anymore.
 

Members online

No members online now.

Latest profile posts

Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.
Terrahertz wrote on Electronic Punk's profile.
Yo fellas!
Electronic Punk wrote on Sazar's profile.
Where are you buddy?
Perris Calderon wrote on Electronic Punk's profile.
Hey EP! All good with me, applying for Microsoft MVP right now, should have done this a while ago.

Notifications don't work, I only found your response by coming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier!
Perris Calderon wrote on Electronic Punk's profile.
EP, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there!

Forum statistics

Threads
61,997
Messages
673,411
Members
5,591
Latest member
ersen