xarzu Posted March 18, 2008 Share Posted March 18, 2008 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 afterthe user has clicked on a submit button, how do I make an operating systemstyle call on the server.Now, I have already figured out how to create a function call in the ASPdevelopment environment that is called when the user clicks on the submitbutton.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 completeda program that is very simular to the #3 AJAX demo that Joe Strgner has made onhttp://asp.net/learn/ajax-videos/ where he gets users to select from a groupof "CascadingDropDown" control extender classes. When the user has selectedfrom the third drop down control, a label is custom formatted and displays thegroup of selected options.What I want to do is this. After this is done, I want to have a "submit" buttonon this page which, when the user presses it, a call is made on the server sidethat will include the users selections as parameters.Something like this, for example:"CALL SOMEPROGRAM.EXE " selection_1, selection_2I 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 willsee that program. So, how would I do that inside asp.net andspecifically inside the Default.aspx.cs file which will get calledwhen the user clicks on the send button in the functionprotected 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? Link to comment Share on other sites More sharing options...
Team929 Posted March 28, 2008 Share Posted March 28, 2008 (edited) Not fully sure what you want to do but I guess you have your reasons. However, from a development point of you, is the opening of notepad necessary? I only ask because if you want to take that information inside notepad back to the server side, you're going to have one heck of a time doing that. Anything's possible but I don't know if you want to maintain that. It may be best to just keep everything on the server-side (i.e. just a multiline textbox in the IE screen) and when the client clicks "submit", you can have a very easy time tansporting that information elsewhere. You can store it to a db or export it to the users' machine, etc.>> We are on an intranet and each user has an alias. How do I snag this information?You will need to learn about asp.net membership for this.Hope this helps. Edited March 28, 2008 by Team929 Link to comment Share on other sites More sharing options...
markajm Posted April 30, 2008 Share Posted April 30, 2008 this link may help you...http://www.willasrari.com/blog/run-a-comma...net/000155.aspx Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now