Solved

Link-In to vb.net

Posted on 2011-03-25
5
248 Views
Last Modified: 2012-05-11
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.

Matt
0
Comment
Question by:Matb396
  • 3
  • 2
5 Comments
 
LVL 40

Expert Comment

by:Kyle Abrahams
ID: 35216597
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.
0
 

Author Comment

by:Matb396
ID: 35216745
It's windows form program.

How do you have a parameter on startup?
0
 
LVL 40

Accepted Solution

by:
Kyle Abrahams earned 500 total points
ID: 35217096

http://www.vb-helper.com/howto_net_list_command_line_arguments.html

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

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

        Return 0
    End Function
0
 
LVL 40

Expert Comment

by:Kyle Abrahams
ID: 35217120
Clarification:  

The above code is how you read them.

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

eg:  myprog.exe 3
0
 

Author Closing Comment

by:Matb396
ID: 35217192
sweet! thanks just what im after
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

785 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