• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 259
  • Last Modified:

Link-In to vb.net

Hi All

Does anyone know how to do links in to vb.net programs.

We have auto generated email sent to staff about a customer normal with the customer ID.

Does any one know how to have a link to a vb.net program and then send a ID that would allow the program to open that customer details?

I have no idea what this is called but I know steam/spotify use it for games/song.

  • 3
  • 2
1 Solution
Kyle AbrahamsSenior .Net DeveloperCommented:
if it's a web application you can do it as part of the query string.

eg:  mypage.aspx?customerId=121

but there can be security concers with that.

The other thing is to setup an automatic redirect in your database and set the session object.
eg:  Give a bogus page in your url with a unique ID.
Lookup the unique Id, select the correct customer, redirect to that customer page.

If it's for a windows application then the only thing I can think of is a startup parameter.
Matb396Author Commented:
It's windows form program.

How do you have a parameter on startup?
Kyle AbrahamsSenior .Net DeveloperCommented:


 Public Function Main(ByVal CmdArgs() As String) As _
        Dim frm As New Form1()
        Dim i As Integer

        frm.Text = UBound(CmdArgs) + 1 & " arguments"
        For i = 0 To UBound(CmdArgs)
        Next i

        Return 0
    End Function
Kyle AbrahamsSenior .Net DeveloperCommented:

The above code is how you read them.

You pass them by just adding them to the command line:

eg:  myprog.exe 3
Matb396Author Commented:
sweet! thanks just what im after
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now