473,412 Members | 4,196 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,412 software developers and data experts.

Sending information from an ASPX page to ASP page using form and post method

Hi,

I have an ASPX page and I need to call an ASP page sending parameters like
Name, Adress, ie. using POST method. This next ASP page show payment
informations..

If was from an ASP to another ASP page I'll write the code:

<form action=boleto.asp method=post>
<input type=text name="adress" value="adress abc">
<input type=submit name="Send">
</form>

In ASP.NET 1.1 we can't call another page using post method. I saw
the URL http://www.netomatix.com/HttpPostData.aspx that explain how to do it

Then in my webcontrol button ASPX, I wrote the code:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim myReq As HttpWebRequest =
WebRequest.Create("http://localhost/boleto.asp")
Dim postData As String = "endereco=" + lblEndereco.Text
Dim encoding As New ASCIIEncoding
Dim byte1 As Byte() = encoding.GetBytes(postData)

' Set the content type of the data being posted.
myReq.ContentType = "application/x-www-form-urlencoded"
myReq.Method = "POST"

' Set the content length of the string being posted.
myReq.ContentLength = postData.Length

Dim newStream As Stream = myReq.GetRequestStream()
newStream.Write(byte1, 0, byte1.Length)
newStream.Close()
End Sub

But the next page, was not displayed. How can I do it.. ? The user to need
print the payment informations.

Regards,

Ricardo

Nov 19 '05 #1
0 1200

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

Similar topics

7
by: Eric | last post by:
I am certain the answer will be 'NO', but I wanted to ask anyway just incase I have missed something. Everyone knows that one pass data to a page in an anchor tag by using the GET Method: <a...
4
by: Tony | last post by:
Hi all, I can use the HttpWebRequest object to scrape a page with a GET. However, if I need to post some data do a page, how do I do that? I can set the method property to "POST", but then how...
1
by: Des | last post by:
I have read that the way I have to read a text box from another page has changed. I have a form using the post method I am constructing the name of the text box using a recordset field. <td ...
4
by: Sofia | last post by:
Hi there is text field and a button.... now i have to send this textfield value to another page without using form tag......i have to use javescript... is there anyone who can help me regarding...
1
by: Samuel Shulman | last post by:
Hi I am looking for a way to send a POST request using the Reponse.Redirect or any thing similar Thank you, Samuel
3
by: 1965 | last post by:
Hi, All. I want to pass a value to asp file on server side but NOT using form post/get. For example: <input id="regionbox" type="hidden" name="region" value="abc"> function dothing ......
7
by: mukeshrasm | last post by:
Hi I have four textbox in form and I want to submit the form without using post or get method in php how can I do that.
1
by: TOUNSI | last post by:
hi at every body i can't not connect to active Directory with PHP after using the post method of PHP i've no idea about this problem i want to know my error thank for your helping
1
by: alfonso irribarren | last post by:
How to send an Dim myHttpWebRequest As HttpWebRequest = using the POST method, please?
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...

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.