Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Link-In to vb.net

Posted on 2011-03-25
5
250 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Article by: Nadia
Suppose you use Uber application as a rider and you request a ride to go from one place to another. Your driver just arrived at the parking lot of your place. The only thing you know about the ride is the license plate number. How do you find your U…
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 …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 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