473,387 Members | 1,569 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.

How can I pass form values to another websites

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

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.Add 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 3169
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*******@discussions.microsoft.com> wrote in message
news:ue***************@TK2MSFTNGP10.phx.gbl...
Is it possible to pass form variables to a page on another server using
response.redirect?

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.Add 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.redirect?

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.Add 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
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...
4
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...
4
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
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...
2
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:...
17
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...
5
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...
14
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...
12
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....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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: 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.