Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Link-In to vb.net

Posted on 2011-03-25
5
Medium Priority
?
256 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
[X]
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
  • 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 2000 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

Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

705 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