473,725 Members | 2,248 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I pass form values to another websites

Is it possible to pass form variables to a page on another server using
response.redire ct?

Or is there a secure way of passing sensitive information from one site to
another such as a userID?

I would like to avoid using the querystring.

This is what I would like to do:
When a user clicks on the link, I need to add them to the database and then
redirect them to a page on another server. That server should be able to get
the userID from the form data (or hidden fields) and not the querystring.

This is how I tried to handle it:
After they clicked on the link, they go to another page on my server. In the
load event of that page I add them to the database. Then I redirect them to
a page on another server.

When I do this, the form values or hidden fields on my page does not get
posted to the page on the other server. I would like to use the
Request.Form.Ad d to add the userID in the page_load event, but it tells me
it is read-only.

I'm using vs2003, .net 1.1

Any help would be appreciated.

Dec 7 '05 #1
2 3187
Redirect is nothing more than a command to the browser to change its url
location, so the only way using redirect with values is to use the query
string.

With asp.net 2 you can use the PostBackUrl form option, and inject
javascript that onload would autosubmit your form to a new URL address
containing your hidden fields.

Form data is not really any more secure than the query string, so if your
worried about it being intercepted work out some form of hashing alogorithm
only known to your two servers to encode and decode a value and stop it
being read or reused by incorporating the curent minute or http referrer.
That way using the query string would probably be just as easy. You could
of course choose to output a form without the runat server command as
output following your DB inserts, response.write your output and do some
form of javascript form submission to your second server.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"KFactor" <an*******@disc ussions.microso ft.com> wrote in message
news:ue******** *******@TK2MSFT NGP10.phx.gbl.. .
Is it possible to pass form variables to a page on another server using
response.redire ct?

Or is there a secure way of passing sensitive information from one site to
another such as a userID?

I would like to avoid using the querystring.

This is what I would like to do:
When a user clicks on the link, I need to add them to the database and
then redirect them to a page on another server. That server should be able
to get the userID from the form data (or hidden fields) and not the
querystring.

This is how I tried to handle it:
After they clicked on the link, they go to another page on my server. In
the load event of that page I add them to the database. Then I redirect
them to a page on another server.

When I do this, the form values or hidden fields on my page does not get
posted to the page on the other server. I would like to use the
Request.Form.Ad d to add the userID in the page_load event, but it tells me
it is read-only.

I'm using vs2003, .net 1.1

Any help would be appreciated.

Dec 7 '05 #2
Read the below article it will help u
http://www.c-sharpcorner.com/Code/20...ostingData.asp

"KFactor" wrote:
Is it possible to pass form variables to a page on another server using
response.redire ct?

Or is there a secure way of passing sensitive information from one site to
another such as a userID?

I would like to avoid using the querystring.

This is what I would like to do:
When a user clicks on the link, I need to add them to the database and then
redirect them to a page on another server. That server should be able to get
the userID from the form data (or hidden fields) and not the querystring.

This is how I tried to handle it:
After they clicked on the link, they go to another page on my server. In the
load event of that page I add them to the database. Then I redirect them to
a page on another server.

When I do this, the form values or hidden fields on my page does not get
posted to the page on the other server. I would like to use the
Request.Form.Ad d to add the userID in the page_load event, but it tells me
it is read-only.

I'm using vs2003, .net 1.1

Any help would be appreciated.

Dec 7 '05 #3

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

Similar topics

2
2370
by: HelLind | last post by:
Hello everyone ! Is there any way to pass session variables between two websites ( diff domains) ? I've two websites and I want to integrate them. I used to use the querystring but there is a limit to length of the querystring. I've tried ASP-TEAR but I doubt it can work.
4
1468
by: Vaughn | last post by:
When I pass a reference to my current form, frm_x, when I create and show another form, frm_y, do I have access to all of the public methods, controls, members, etc.. of frm_x from frm_y? In my code, I pass the reference like this: private void btn_ListEmp_Click(object sender, System.EventArgs e) { frm_EmpList frm_empList = new frm_EmpList(this); frm_empList.MdiParent = this.MdiParent; frm_empList.Show();
4
4802
by: tom | last post by:
Hi Experts, I want to pass the selectedDate value from my calender form to another web form or a web user control. Could you please show me how to do this? Thanks in advance.
3
3221
by: Naseem | last post by:
I am using CR in ASP.NET , I am able to show drill down graphs where grouping is done on single column from result set of sql query, is it possible to achieve drill down by grouping on multiple groups? -Naseem
2
2510
by: c676228 | last post by:
Hi, This is my first time to post asp.net question on this forum. I have a question for "How to pass the first form value to the next form" I have enrollinfo.aspx form which look like as follow: <form id="Form1" method="post" runat="server"> <Subway:Address id="address" runat="server" Caption="Home Address"></Subway:Address> <p></p> <SUBWAY:PEOPLEINFO id="Peopleinfo" runat="server" Caption="Employee Information"></SUBWAY:PEOPLEINFO>
17
7074
by: Rabbit | last post by:
Hi, On my 1st page, i have a function which gets a new ID value and need to transfer to another immediately. which I want to get in 2nd page using Request.form("txtID"), but doesn't work, the returned value is "" Anybody know how to set this value on 1st page properly, in order to let 2nd page catch it? I don't want to use querystring to pass this value!
5
5918
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, Is there an easier way to handle that? I used Javascript to handle this when our two domains are hosted on two different servers(on different networks) and our search engine marketing people don't like the javascript links since they think the links are not favorable to a search robot. Now our company is thinking about hosting these two domians on the same server, So I am wodering if there is any easy way to do that. Would you...
14
3605
by: =?Utf-8?B?Umljaw==?= | last post by:
I have seen examples of passing data from FormB to FormA (Parent To Child) but I need an example of passind data from FormA to FormB. My main form is FormA; I will enter some data in textboxes and click a button to bring up FormB which needs to display values entered in FormA. Thanks in advance.
12
11098
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms. Here is a newbie mistake that I found myself doing (as a newbie), and that even a master programmer, the guru of this forum, Jon Skeet, missed! (He knows this I'm sure, but just didn't think this was my problem; LOL, I am needling him) If...
0
8889
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8752
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9401
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9257
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9179
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8099
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6011
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3228
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.