Solved

Passing Value from HTML Page to VB Application

Posted on 2004-04-19
11
236 Views
Last Modified: 2007-12-19
I want to pass value from a link on HTML page to a VB application. parameter can be passed using the command line, but that is not the desired solution.

Soluton should be some way to pass the value from HTML using a href tag to a VB Application and in VB application that value should be stored.

quick response is required....

Thanks in Advance....
0
Comment
Question by:harsac
  • 4
  • 4
11 Comments
 

Author Comment

by:harsac
ID: 10858084
Is there any posible solution ???????????????????
0
 
LVL 1

Expert Comment

by:balant
ID: 10859304
what's a problem with command line arguments?

PKB
0
 
LVL 6

Expert Comment

by:DominicCronin
ID: 10861726
The usual way of using VB as the back-end for a web page is to use ASP. You can use VB to create a COM dll, which you can then access using Server.CreateObject(). To pass information from one to the other, simply add a function or property to your COM class, and call it from ASP

Follow this link for more information: http://msdn.microsoft.com/library/default.asp?url=/nhp/default.asp?contentid=28000522

0
 

Author Comment

by:harsac
ID: 10865616
Problem with command line is that I have N number of "HTML pages" ( cant be ASP) and from these N number of pages there will be some links on some pages. On click on these links, same VB exe will be called but with a different parameter attached. this attached parameter will be used in the VB application for some calculations ......

Looking for some solution.....
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 6

Expert Comment

by:DominicCronin
ID: 10870520
Can you explain why it can't be ASP? Are you using a web server that doesn't support it? What technologies do you have available for running server side code? It's quite likely there's a way to wire up some plumbing to get to COM.
0
 

Author Comment

by:harsac
ID: 10875038
I am not using any server, thats why ASP cant be used... its something like a stand alone application on a single system..... in which few simple HTML pages might be there which may have links to a VB application with different parameters from each link. These parameters can be used somewhere in the VB exe.....

Solution without using command line arguments is required......
0
 
LVL 6

Expert Comment

by:DominicCronin
ID: 10881383
In which case, you can use client side scripting techniques. The script is embedded in <script> tags in your HTML page, and from there, you can access ActiveX objects (i.e. COM components). There are some security implications - for example nowadays your browser is probably configured not to allow ActiveX objects even if they are marked as safe for scripting. (Marking a script as safe for scripting involves adding a registry key that lets your browser know that it's OK to run the object - this is necessary, because your browser will also download activex objects from the Internet.)
0
 

Author Comment

by:harsac
ID: 10885849
Can you elaborate more on that??
0
 
LVL 6

Accepted Solution

by:
DominicCronin earned 500 total points
ID: 10892837
A good starting point for reading up on client side scripting would be the Internet Explorer developer centre at:

http://msdn.microsoft.com/ie

For the security implications, try this one:

http://support.microsoft.com/default.aspx?scid=kb;en-us;308260
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
static class 3 61
NotAlone Challenge 20 79
changeXy challenge 13 67
wordmultiple challenge 12 118
Navigation is an important part of web design from a usability perspective. But it is often a pain when it comes to a developer’s perspective. By navigation, it often means menuing. This is less theory and more practical of how to get a specific gro…
Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
This video teaches viewers about errors in exception handling.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now