Click here to Skip to main content
15,896,450 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Remote WMI Connection issue Pin
Herman<T>.Instance25-May-09 3:18
Herman<T>.Instance25-May-09 3:18 
Questionthis.Profile is not latest after Profile.Save() Pin
NetQuestions22-May-09 7:24
NetQuestions22-May-09 7:24 
AnswerRe: this.Profile is not latest after Profile.Save() Pin
adatapost23-May-09 21:51
adatapost23-May-09 21:51 
GeneralRe: this.Profile is not latest after Profile.Save() Pin
NetQuestions25-May-09 5:56
NetQuestions25-May-09 5:56 
GeneralRe: this.Profile is not latest after Profile.Save() Pin
adatapost25-May-09 15:31
adatapost25-May-09 15:31 
GeneralRe: this.Profile is not latest after Profile.Save() Pin
NetQuestions29-May-09 3:52
NetQuestions29-May-09 3:52 
QuestionInternet Explorer Progress Bar May Show Incorrect Status? Pin
Unknown_DeathDealer22-May-09 6:16
Unknown_DeathDealer22-May-09 6:16 
QuestionHow to call windows exe with parameter from asp.net. Pin
hemrk22-May-09 6:00
hemrk22-May-09 6:00 
I have a problem in asp.net
i wanted to call my windows app exe from web app with paramters.
its working with process.start(). but i can t see UI of windows app on clients machine.
so i wrote javascripr function and its working fine , i can use windows UI on clients side. but now i dont know how to send arguments with that and how to fetch arguments in windows app.
Please let me know asap.

here is code.

<
SCRIPT Language="JScript">
function
runcmd() {
File="C:\\TestParamFromAsp.exe";
WSH=new ActiveXObject("WScript.Shell");
WSH.run(File);
//document.getElementById('<%=btnSendMail.ClientID%>').click();
//sInfo=new System.Diagnostics.ProcessStartInfo("C:\\TestParamFromAsp.exe");
//p=new System.Diagnostics.Process;
//sInfo.Arguments="12345";
//p.StartInfo=sInfo;
//p.Start();
}
</
SCRIPT>


Codebehind is working independently.
Protected
Sub btnSendMail_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSendMail.Click
'Dim sInfo As New Diagnostics.ProcessStartInfo("C:\\CGS_NEWDESIGN_UPDATED\\ContractAutomation\\bin\\ContractAutomation.exe") '("C:\\TestParamFromAsp.exe")
Dim sInfo As New Diagnostics.ProcessStartInfo("C:\\Documents and Settings\\hkacholi\\My Documents\\Visual Studio 2005\\Projects\\TestParamFromAsp\\TestParamFromAsp\\bin\\Debug\\TestParamFromAsp.exe")
'Dim sInfo As New Diagnostics.ProcessStartInfo("//vsapps/cgs/ContractAutomation.exe") 'C:\\Documents and Settings\\hkacholi\\My Documents\\Visual Studio 2005\\Projects\\TestParamFromAsp\\TestParamFromAsp\\bin\\Debug\\TestParamFromAsp.exe")
'Dim sInfo As New Diagnostics.ProcessStartInfo("C:\\TestParamFromAsp.exe")
' startInfo.WindowStyle = Diagnostics.ProcessWindowStyle.Maximized
Dim p As New Diagnostics.Process
'Diagnostics.Process.Start(sInfo)
sInfo.Arguments =
"12345"
'Diagnostics.Process.Start(sInfo)
sInfo.RedirectStandardOutput =
True
sInfo.RedirectStandardInput =
True
sInfo.RedirectStandardError =
True
sInfo.CreateNoWindow =
True
sInfo.UseShellExecute =
False
p.StartInfo = sInfo
p.Start()
End Sub

hemaxi
AnswerRe: How to call windows exe with parameter from asp.net. Pin
Abhishek Sur22-May-09 6:07
professionalAbhishek Sur22-May-09 6:07 
GeneralRe: How to call windows exe with parameter from asp.net. Pin
hemrk22-May-09 6:59
hemrk22-May-09 6:59 
GeneralRe: How to call windows exe with parameter from asp.net. Pin
Abhishek Sur24-May-09 22:19
professionalAbhishek Sur24-May-09 22:19 
QuestionSelecting a validator based on other form controls Pin
dwolver22-May-09 5:25
dwolver22-May-09 5:25 
AnswerRe: Selecting a validator based on other form controls Pin
Manas Bhardwaj22-May-09 5:44
professionalManas Bhardwaj22-May-09 5:44 
GeneralRe: Selecting a validator based on other form controls Pin
dwolver22-May-09 5:53
dwolver22-May-09 5:53 
QuestionStrange AutoCompleteExtender Behavior Pin
Herman<T>.Instance22-May-09 4:49
Herman<T>.Instance22-May-09 4:49 
QuestionRetrive file path back in to fileupload control...... Pin
pranavcool22-May-09 4:31
pranavcool22-May-09 4:31 
AnswerRe: Retrive file path back in to fileupload control...... Pin
Abhishek Sur22-May-09 6:04
professionalAbhishek Sur22-May-09 6:04 
AnswerRe: Retrive file path back in to fileupload control...... Pin
Matt Cavanagh25-May-09 18:08
Matt Cavanagh25-May-09 18:08 
AnswerRe: Retrive file path back in to fileupload control...... Pin
adatapost29-May-09 4:36
adatapost29-May-09 4:36 
QuestionSynchronizing website content with video Pin
ToeStumper22-May-09 3:36
ToeStumper22-May-09 3:36 
AnswerRe: Synchronizing website content with video Pin
Christian Graus22-May-09 3:43
protectorChristian Graus22-May-09 3:43 
QuestionHow to convert System.Web.UI.WebControls.FileUpload to System.string? Pin
lsh486love22-May-09 3:07
lsh486love22-May-09 3:07 
AnswerRe: How to convert System.Web.UI.WebControls.FileUpload to System.string? Pin
Christian Graus22-May-09 3:10
protectorChristian Graus22-May-09 3:10 
QuestionProblem with TabContainer Pin
sarang_k22-May-09 3:02
sarang_k22-May-09 3:02 
QuestionRegular Expression Validation Control is not working in Server PinPopular
Robymon22-May-09 2:28
Robymon22-May-09 2:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.