Thanks, Espavo. We already thought of using a web service on Server2, but for various reasons, decided to try to do this with HttpRequest/Response or HttpWebRequest/Response which we need to explore first.
Main Topics
Browse All TopicsAfter reading many references (Microsoft and others) to HttpWebRequest/Response and HttpRequest/Response, and trying several different approaches, I still unable to make this work. The issue is to successfully transfer data from source.aspx on server1 to target.aspx on server2, processing it on server2 and returning the results to source.aspx on server1.
Specifically, on server1, source.aspx the client enters UserName and ProductID. It is validated in source.aspx.vb, and then is sent to target.aspx on server2. Target.aspx receives data, processes it by several methods in code behind and returns the result, e.g. ProductLicenseKey to server1, source.aspx for display to the client. There may be a 5-10s delay in processing in target.aspx.vb.
Eventually the information will be sent via https and possibly encrypted, but that is not the issue now.
I would appreciate any response (prefer VB, but C# would help) that you experts could provide.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Romasa, as you can tell from my question, I am pretty much of a beginner with the various Request/Response classes. Since I have not been able to successully transfer two strings, UserName and ProductID to target.aspx which runs a separate process and returns the ProductLicenseKey (string) I don't understand how. I.e. which class to use to send text or xml to target.aspx and which class to use to return text or xml to source.aspx?
I have used following code to check the fields of my previous page and response accordingly, but for this you have to set autopostBack event of previous page to true
And in the current page, you can use following code in page load event:
protected void Page_Load(object sender, EventArgs e)
{
if (PreviousPage != null && PreviousPage.IsCrossPagePo
{
DropDownList ddlBeacontype = new DropDownList();
ddlBeacontype = (DropDownList)PreviousPage
indexNum = ddlBeacontype.SelectedInde
}
}
In this piece of code, i have checked the selected value of DropDownList of previous page into the current page and the current page will navigate to the next page according to the values selection of DropDownList.
You can use this for any control of asp.net, it will work
Let TextBox1 and TextBox2 fetch the UserName and ProductID on Server1/MyFirstSite/Defaul
On the button 1 add the following click handler
protected void Button1_Click(object sender, EventArgs e)
{
string UserName = TextBox1.Text;
string ProductID = TextBox1.Text;
Response.Redirect("http://
}
When user clicks the button, the last line will redirect your call to server2 page that generates the license.
Now for the second part: On server2 you need the following page: licensesite/generatelicens
and code this event:
protected void Page_Load(object sender, EventArgs e)
{
System.Diagnostics.Debug.W
string UserName = Request["uname"];
string ProductID = Request["pId"];
string ProductLicenseKey = CalculateProductLicenseKey
Response.Redirect("http://
}
Finally you need to create this page on server1 (Server1/MyFirstSite/MyLic
and code this event:
protected void Page_Load(object sender, EventArgs e)
{
System.Diagnostics.Debug.W
string ProductLicenseKey = Request["plkey"];
// Do some code that uses ProductLicenseKey
}
The code is oin C# but the key idea is to use the Response.Redirect method to send parameters and
Request["parameterName"] to retrieve them
Business Accounts
Answer for Membership
by: EspavoPosted on 2009-09-07 at 23:18:44ID: 25279036
This sounds like the perfect place to run a Call and run a Web-Service...
Your source.aspx could call a web-service on Server2, get the info it's requesting, then continue with the process...