Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call Visual Basic in ASP

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How do you call a Visual Basic program from inside an ASP page? Any tips?
 
Hi,
yes I have called an VB code by a link in an asp-page.
See if you like it. In this case you have to make an .exe file of the VB code, see File\Make...
As a button on click:
<INPUT type=&quot;button&quot; VALUE=&quot;&quot; onClick=&quot;remote=window.open ('NameOfVBFile.exe', 'NameOfVBFile', 'resize=yes');&quot;>

As a ordinary text click:
<a href=&quot;NameOfVBFile.exe&quot;>Text</a>

Perhaps I can come up with something better in a near future.

Good Luck!
Johanna Pihlström
 
Easiest way is to make it a VB ActiveX DLL and register it on the web server machine.
then you can use it in ASP like:
<script runat=&quot;server&quot; language=&quot;vbscript&quot;>
dim obj_Test
set obj_Test = Server.CreateObject(&quot;MyActiveXDLL.MyClass&quot;)
</script>
<script runat=&quot;server&quot; language=&quot;javascript&quot;>
var obj_Test = Server.CreateObject(&quot;MyActiveXDLL.MyClass&quot;);
</script> codestorm
Fire bad. Tree pretty. - Buffy
select * from population where talent > 'average'
You're not a complete programmer unless you know how to guess.
I hope I never consider myself an 'expert'.
<insert witticism here>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top