Solved

Link-In to vb.net

Posted on 2011-03-25
5
252 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 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
How can I add google maps in vb.net. 2 48
CHANGE FORM TEXT BEFORE IT SHOW TO USER 13 33
Subtract dates in vb.net 6 33
EMAIL RANGES BASED ON CURRENT TIME 12 37
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
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…

739 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