473,387 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Sending values between applications

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
Nov 18 '05 #1
3 993
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

"Eje" <an*******@discussions.microsoft.com> wrote in message
news:01****************************@phx.gbl... 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

Nov 18 '05 #2
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
"Eje" <an*******@discussions.microsoft.com> wrote in message
news:01****************************@phx.gbl...
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

Nov 18 '05 #3
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
-----Original Message-----
Hi,
I'm building an application where other companies
redirect users to our application. I need the redirectingcompany to attach a code telling me who is redirecting.
I've seen url:s with a querystring at the end. That wouldsuite me fine but how do I send such a message and how doI catch the message when the user is redirected to our
homepage?

Eje
.

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ant | last post by:
Hi, I'm using the MailMessage & smtpMail classes in System.Web.Mail to send mail, however it's not sending any emails. I'm using it on a Windows 2003 server. The simplest way to use this is...
3
by: Juergen | last post by:
hi, I've got a problem sending floating point values to an corba server. With other datatyes like short or string it works fine. So having this idl file : module Example{ interface User{
1
by: drec | last post by:
I have a very simple mysql/php script that is being used to store program keys in a db for multiple users. I would like to add the ability to send these string values to another application. In...
0
by: Andrea | last post by:
Hi I've having a very strange problem using the SendInput API to send text to other applications. I've written the code and it seems to work well. I discovered a strange problem: when I try to...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.