enixidfrag
New Member
Is there a way to execute a cgi script through an asp.net page?<BR><BR>Reason behind this is that I really do not want to rewrite the behind the scene logic just yet. I rather release this version with just the front end logic and have the behind the scene logic done by cgi if its possible. If not well I will be rewriting obviously.<BR><BR>MattHow were you executing it before? Are you passing variables to it via a form? you can do the same thing in .net, but you have to add an action in the form line, else .net will add it's own logic.Well in a regular asp program I would just make the call in the action and it goes and it does its thing. But if I have a server side form it automatically puts in the pagename in the action *even* if I have defined an action. That is where my problem lies...Only reason I need the server side form for asp.net is the combo boxes thats on the form is in asp.net.<BR><BR>Any Ideas?<BR><BR>MattIf you insert action="myapp.cgi" it will not add its own. give it a whirl!not for me it does not...here is some code:<BR><BR>ASP.NET code:<BR><BR><form id="prebook" method="post" action="CGI-BIN/MVI.EXE/PRE.BOOKING" runat="server"><BR><BR>Code Generated by page:<BR><BR><form name="prebook" method="post" action="prebook.aspx" id="prebook"><BR><BR>Is there a setting in web.config for this?<BR><BR>MattI don't think there's a web.config setting. Try taking the runat="server" out of your form line.I need the runat server on that line I have asp.net server controls.<BR><BR>MattI need the runat server on that line I have asp.net server controls.<BR><BR>MattYou shouldn't have to have runat=server in the <form> line. Each control contained withing the form line will have it's own runat=server. In this sense the form is a seperate object and does not control where the processing of the controls within it.Tried it, it did not work. I have Web server controls not html Server controls. You try defining a web server control and see if it does not say you need a form with a runat=server.<BR><BR>Matt