Solved

Passing Value from HTML Page to VB Application

Posted on 2004-04-19
11
240 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
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 

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
 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
countClumps  challenge 10 167
factory design pattern vs abstract factoy design pattern 2 114
data scientists and AI 17 114
C# code editing and collaboration 3 130
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

792 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