Hi all,
My system setup ios W2k3 + ASP.NET+C#=MCMS Server as code behind
I have a console <aaa.ascx> will popup a new window for then to choose some
function when user right click, I want to add a function which execute a
batch file on server, I used
System.Diagnostics.Process.Start("c:\\inetpub\\www root\\abc.bat") but it
doesn't execute the script inside. ok, now comes my questions, as i am a
newbie to C#, hope you guys dun think I am too dump to answer my questions.
1. How can i trigger the bat file in the ascx file?
the code is like this:
<CmsConsole:SubmitAction id="Submitaction2" runat="server">
<TR>
<TD class="MenuItemIcon"></TD>
<TD>
<HR>
</TD>
</TR>
<TR>
<TD class="MenuItemIcon"><IMG height="18"
src="Console/icons/submit.gif" width="18"></TD>
<TD class=MenuItemText id=SubmitAnchor onmouseover=Selected(this);
onclick="<%# Container.ActionJavascript %>;return false"
onmouseout=UnSelected(this);> <%# Container.Text %>
</TD>
</TR>
</CmsConsole:SubmitAction>
Container.ActionJavascript is the defualt generate script by MCMS, so I want
to change here that when the user onclick, then it will execute a batch file
in the server, is it possible? if yes, how should i do this?Also, how can I
know if the process is finish?
Thanks for your help,
Choihead