Safinn
Safinn

Reputation: 632

Run VBscript and pass parameter using ASP.net c# Button

I have a webpage using ASP.net in c# with a button that runs a VBscript like shown below.

<asp:Button ID="button" runat="server" Text="button" 
OnClientClick="javascript:window.open('filelocation','_blank')" />

In the script I ask the user for information from the webpage they clicked the button on which they normally manually enter or copy and paste.

Is it possible to send these variables from the webpage as parameters to the VBscript file when the button is clicked so they do not have to enter the information, instead it is taken automatically using the parameters?

Thank you!

EDIT: Been looking at this How to call a VBScript file in a C# application? but cannot seem to get it to work also. Any ideas?

Upvotes: 2

Views: 967

Answers (1)

spetzz
spetzz

Reputation: 679

I am just guessing : but is it not possible to edit your VBScript at the server-side (to include your params) according to your needs before sending it to client ?

Upvotes: 1

Related Questions