ActiveX Control to read URL properties

ActiveX Control to read URL properties

I have a VB database application that, when I pass a unique id to a client object, opens that record (this explanation is simplified). I have to write an ActiveX control of some type that accepts a URL, so I can parse out what I need and pass it to the control?which then calls my database application.

I need it to be a client-side control because my database app runs on the client. The reason for passing the record id as a URL is that the message is generated on a seperate server and is mailed to the user.

So, what do I need to do to enable an ActiveX control to see the URL that called it (and is it possible to parse out the contents of the URL)? My other thought was to create parameters on the control and set them when the page is called, but I don’t know how to do that.

From your question, I gather you are passing a URL with a primary key that is being passed to a Web server which returns a page containing an ActiveX control. You would like the ActiveX Control to look up a record from a database based on the primary key passed into the page. A simple solution is to place the control in an ASP page. The ASP page’s Request object has a QueryString property that returns the query string part of the URL.

In order to parse the query string to return on a specific namevalue pair you can pass the name of the pair to the QueryString property. For example, suppose the URL is www.Flashcreative.comsome.asp?name=mike&id=123. In the ASP page you can retrieve the value of the id variable with Response.Querystring(“id”). Once you’ve retrieved the value of the Primary key, you can simply set the property of the control within the HTML that is sent to the browser.

Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

data fivetran pricing

Fivetran Pricing Explained

One of the biggest trends of the 21st century is the massive surge in analytics. Analytics is the process of utilizing data to drive future decision-making. With so much of

kubernetes logging

Kubernetes Logging: What You Need to Know

Kubernetes from Google is one of the most popular open-source and free container management solutions made to make managing and deploying applications easier. It has a solid architecture that makes