Sending values between applications

  • Thread starter Thread starter Eje
  • Start date Start date
E

Eje

Hi,
I'm building an application where other companies
redirect users to our application. I need the redirecting
company to attach a code telling me who is redirecting.
I've seen url:s with a querystring at the end. That would
suite me fine but how do I send such a message and how do
I catch the message when the user is redirected to our
homepage?

Eje
 
Maybe I'm missing something here, but the answer to your question seems to
be obvious, and indeed, PART of the question:
I've seen url:s with a querystring at the end.
how do I send such a message

Create a link with a QueryString. (Hyperlink, JavaScript, what-have-you)
how do
I catch the message when the user is redirected to our
homepage?

Read the QueryString (Request.QueryString Collection)

So, what am I missing, due to my inability to interpret human communication
very well?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
 
Sending it is no problem - - after your basic page url (yourpage.aspx), just
add a question mark, then an assignation of value to variable
(id=126)
if there are multiple querystrings, just separate them with ampersands:
yourpage.aspx?id=126&fname=david&lang=aspnet

Then, on the receiving page, create global variables, for the incoming data
(something like:
Dim sId as string
Dim sFname as string
Dim sLang as string

in your Page_load event:
sId=request.Querystring("id")
sFname=request.Querystring("fname")
sLang=request.Querystring("lang")

Then, in your page, use your variables(sID, sFname, and sLang) anywhere and
however you'd like

David Wier
MCP, MVP ASP.NET, ASPInsider
http://aspnet101.com
http://aspexpress.com
 
Thanks Kevin and David for your help. I have never before
worked with webpages. That's the reason for what for you
seems to be a very simple question

Eje
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top