anyone help me, how to transfer data my page to another url page using post method in asp.net with c#
check out the link > Transferring page values to another page
you will find various techniques to transfer data from one page to another page using Cookies, QueryString, Session, Application etc., using Server.Transfer / Response.Redirect...
hope it helps./.
[KaushaL] || BloG || Profile || Microsoft MVP
"I would love to change the world, but they won’t give me the source code"
Don't forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and mark your thread as Resolved for the sake of Future Readers.
this article should help
Please mark the answer if it helped you
you can use session add values in session. here is the source code for the Server.Transfer method
Assign value to property of first page like this
Public ReadOnly Property FirstName() As String
Call Server.Transer method to access second page like this
Private Sub btnForm2_ServerClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnForm2.ServerClick
To read property values from the source page in the called page like this.
Private frmSource As Form1
rmSource = CType(HttpContext.Current.Handler, Form1)
lblFName.InnerText = frmSource.FirstName
Please remember to click "Mark as Answer" on this post if it helped you.
hi, in my project i have use one payment gateway. i want to pass the value to payment gateway. if the process succeed the page redirect to my successpayment.aspx else failurepayment.aspx. i want how to post my data to that payment gataway.
HI you can use
Querystring ->it will transfer though URL
Session ->it session specific
Cookie -> it is user specific
SanRam:how to transfer data my page to another url page using post method
check out this Link, the author is having same requirement like you have, which says > "The only difference that this payment gateway is using POST rather than GET, so I cannot pass any parameters, I need to post them." > How to post data
Other Refereced Link >
We can transfer data through Query Strings , Sessions etc... u have to check whether the process succeded or fails by the needed condition and if it succeded then redirect to the successpayment.aspx , use Response.Redirect()...
Response.Redirect ("successpayment.aspx?Clientid="+"1" & "&Userid=2")