Running VB code on WebPages


Real Name No Gimmicks
Hi guys,

A little off topic here, but really need your help.

I was wondering if it's possible to run VB Code on Webpages.
I have an access application I would like to run in a web browser. Basically the application is nothing but a bunch of buttons that open telnet sessions to designated ip adresses.

Code in access looks like this:

Private Sub TelnetUCB_click()
Call Shell ("telnet", 1)
End Sub

Is there A way to implement this into a webpage?

Thnx in advance,

You should take a look at .ASP i think. The code in ASP is VB, but the pages will have to be run on a webserver* (not a problem but important to know).

*Meaning you can't use "file:///c:/folder/whatever.asp" to run it.


Real Name No Gimmicks

Zedric, thnx for reply...

The meaning of all this is that I'm collecting all of our information and tools at work, converting everything to html/php and getting it on a intranet server.

The only problem is that I don't know s*** of ASP...

Getting ready to google now, but if anyone knows how to build such a page in asp, please let me know...


Since you mension PHP I assume you know that language. ASP is almost exactly the same thing, only the code is VBScript instead of PHP code and the tags are <% %> instead of <? ?>. I'm sure Microsoft has alot of information and tutorials on ASP.


Bow Down to the King
Political User
Yes, you are able to run and call VBSCRIPT from HTML.




Bow Down to the King
Political User
and yes, as Zedric mentioned. <% and %>

If you know PHP, ASP, Perl, and other languages are VERY easy to learn.

To call a VBSCRIPT from an A HREF use the onClick=""


Real Name No Gimmicks

Thnx for the answers, but there is a slight misunderstanding.

I know HTML but I don't know PHP. I mean, I can install it, configure PHP nuke, and edit a little code. But I don't know how to write a whole application in PHP... (that's yet to come)

Now that's that cleared up, my code would be like this:

<a href="blabla" onclick="Call Shell ("telnet", 1)"

or not?

I would really like to thank you guys for trying to help me out...


No not really. The <% code %> is for ASP, which is run on the server side and therefor browser independant. The <SCRIPT></SCRIPT> is just like javascript but VBScript code instead. This code is run in the browser (client side) and is therefor browser dependant. In this case that means Internet Explorer only. This is also the way most email viruses are made, so many people may have turned VBScript off in order to secure themselfs. I'd go with ASP. It's very easy if you know VB allready.

<A HREF="page2.asp">Click Here!</A>
Call Shell ("telnet", 1)
Or something like it.

Members online

No members online now.

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
What a long strange trip it's been. =)

Forum statistics

Latest member