473,327 Members | 1,967 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,327 software developers and data experts.

Posting data to another application in ASP.NET 2.0

Hello,

I have a form with several buttons, and I need to post this data to several
different applications. In ASP.NET 1.1 it was quite easy - I just used HTML
controls (text or hidden), then assigned the action to each button on
Page_Load event:

Me.ibPayWM.Attributes.Add("onclick",
"noPostBack('https://merchant.webmoney.ru/lmi/payment.asp');")
Me.ibPayRx.Attributes.Add("onclick",
"noPostBack('https://www.roboxchange.com/ssl/calc.asp');")
Me.ibPayRupay.Attributes.Add("onclick",
"noPostBack('http://www.rupay.com/rupay/pay/index.php');")

I thought that in ASP.NET 2.0 this should be even much easier, because each
button has PostBackUrl property. However, it seems that I can use this
property to post data only within my application, because the page I'm
posting data to has to use PreviousPage property.

The method I was using in ASP.NET 1.1 also doesn't seem to be working, for
some reason I'm posting data to the same page.

So now I'm stuck - how to post the data to another application in ASP.NET
2.0?

I would appreciate your advice.

Thank you,

--
Peter Afonin
Jan 7 '07 #1
4 2036
Why the x-posting?

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc

"Peter Afonin" <pa*****@hotmail.comwrote in message
news:Ox**************@TK2MSFTNGP04.phx.gbl...
Hello,

I have a form with several buttons, and I need to post this data to
several different applications. In ASP.NET 1.1 it was quite easy - I just
used HTML controls (text or hidden), then assigned the action to each
button on Page_Load event:

Me.ibPayWM.Attributes.Add("onclick",
"noPostBack('https://merchant.webmoney.ru/lmi/payment.asp');")
Me.ibPayRx.Attributes.Add("onclick",
"noPostBack('https://www.roboxchange.com/ssl/calc.asp');")
Me.ibPayRupay.Attributes.Add("onclick",
"noPostBack('http://www.rupay.com/rupay/pay/index.php');")

I thought that in ASP.NET 2.0 this should be even much easier, because
each button has PostBackUrl property. However, it seems that I can use
this property to post data only within my application, because the page
I'm posting data to has to use PreviousPage property.

The method I was using in ASP.NET 1.1 also doesn't seem to be working, for
some reason I'm posting data to the same page.

So now I'm stuck - how to post the data to another application in ASP.NET
2.0?

I would appreciate your advice.

Thank you,

--
Peter Afonin

Jan 8 '07 #2
Alvin, what do you mean - why?

I have a form with several buttons and I have to post this data to the
different applications. I'm afraid I don't understand your question.

Thank you,

Peter
"Alvin Bruney [MVP]" <some guy without an email addresswrote in message
news:eW**************@TK2MSFTNGP02.phx.gbl...
Why the x-posting?

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc

"Peter Afonin" <pa*****@hotmail.comwrote in message
news:Ox**************@TK2MSFTNGP04.phx.gbl...
>Hello,

I have a form with several buttons, and I need to post this data to
several different applications. In ASP.NET 1.1 it was quite easy - I just
used HTML controls (text or hidden), then assigned the action to each
button on Page_Load event:

Me.ibPayWM.Attributes.Add("onclick",
"noPostBack('https://merchant.webmoney.ru/lmi/payment.asp');")
Me.ibPayRx.Attributes.Add("onclick",
"noPostBack('https://www.roboxchange.com/ssl/calc.asp');")
Me.ibPayRupay.Attributes.Add("onclick",
"noPostBack('http://www.rupay.com/rupay/pay/index.php');")

I thought that in ASP.NET 2.0 this should be even much easier, because
each button has PostBackUrl property. However, it seems that I can use
this property to post data only within my application, because the page
I'm posting data to has to use PreviousPage property.

The method I was using in ASP.NET 1.1 also doesn't seem to be working,
for some reason I'm posting data to the same page.

So now I'm stuck - how to post the data to another application in ASP.NET
2.0?

I would appreciate your advice.

Thank you,

--
Peter Afonin


Jan 8 '07 #3
You posted this to at least two newsgroups, you only need to post a question
to one newsgroup.

If you post to a page using 'https://merchant.webmoney.ru/lmi/payment.asp'
i'm not sure why it would not go to that page. What error are you seeing?

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc

"Peter Afonin" <pa*****@hotmail.comwrote in message
news:u4**************@TK2MSFTNGP06.phx.gbl...
Alvin, what do you mean - why?

I have a form with several buttons and I have to post this data to the
different applications. I'm afraid I don't understand your question.

Thank you,

Peter
"Alvin Bruney [MVP]" <some guy without an email addresswrote in message
news:eW**************@TK2MSFTNGP02.phx.gbl...
>Why the x-posting?

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc

"Peter Afonin" <pa*****@hotmail.comwrote in message
news:Ox**************@TK2MSFTNGP04.phx.gbl...
>>Hello,

I have a form with several buttons, and I need to post this data to
several different applications. In ASP.NET 1.1 it was quite easy - I
just used HTML controls (text or hidden), then assigned the action to
each button on Page_Load event:

Me.ibPayWM.Attributes.Add("onclick",
"noPostBack('https://merchant.webmoney.ru/lmi/payment.asp');")
Me.ibPayRx.Attributes.Add("onclick",
"noPostBack('https://www.roboxchange.com/ssl/calc.asp');")
Me.ibPayRupay.Attributes.Add("onclick",
"noPostBack('http://www.rupay.com/rupay/pay/index.php');")

I thought that in ASP.NET 2.0 this should be even much easier, because
each button has PostBackUrl property. However, it seems that I can use
this property to post data only within my application, because the page
I'm posting data to has to use PreviousPage property.

The method I was using in ASP.NET 1.1 also doesn't seem to be working,
for some reason I'm posting data to the same page.

So now I'm stuck - how to post the data to another application in
ASP.NET 2.0?

I would appreciate your advice.

Thank you,

--
Peter Afonin



Jan 8 '07 #4
Alvin, as I found out later, it actually works. But it doesn't work if I use
Master page. I've tried different combinations, tried to play with forms -
cannot figure out how to use it. I'm either getting error that that Form1
is null or
not an object, or go to the desired page, but without any data posted.

Thanks,

Peter

"Alvin Bruney [MVP]" <some guy without an email addresswrote in message
news:ei**************@TK2MSFTNGP02.phx.gbl...
You posted this to at least two newsgroups, you only need to post a
question to one newsgroup.

If you post to a page using 'https://merchant.webmoney.ru/lmi/payment.asp'
i'm not sure why it would not go to that page. What error are you seeing?

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc

"Peter Afonin" <pa*****@hotmail.comwrote in message
news:u4**************@TK2MSFTNGP06.phx.gbl...
>Alvin, what do you mean - why?

I have a form with several buttons and I have to post this data to the
different applications. I'm afraid I don't understand your question.

Thank you,

Peter
"Alvin Bruney [MVP]" <some guy without an email addresswrote in message
news:eW**************@TK2MSFTNGP02.phx.gbl...
>>Why the x-posting?

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc

"Peter Afonin" <pa*****@hotmail.comwrote in message
news:Ox**************@TK2MSFTNGP04.phx.gbl...
Hello,

I have a form with several buttons, and I need to post this data to
several different applications. In ASP.NET 1.1 it was quite easy - I
just used HTML controls (text or hidden), then assigned the action to
each button on Page_Load event:

Me.ibPayWM.Attributes.Add("onclick",
"noPostBack('https://merchant.webmoney.ru/lmi/payment.asp');")
Me.ibPayRx.Attributes.Add("onclick",
"noPostBack('https://www.roboxchange.com/ssl/calc.asp');")
Me.ibPayRupay.Attributes.Add("onclick",
"noPostBack('http://www.rupay.com/rupay/pay/index.php');")

I thought that in ASP.NET 2.0 this should be even much easier, because
each button has PostBackUrl property. However, it seems that I can use
this property to post data only within my application, because the page
I'm posting data to has to use PreviousPage property.

The method I was using in ASP.NET 1.1 also doesn't seem to be working,
for some reason I'm posting data to the same page.

So now I'm stuck - how to post the data to another application in
ASP.NET 2.0?

I would appreciate your advice.

Thank you,

--
Peter Afonin



Jan 9 '07 #5

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

Similar topics

6
by: anon | last post by:
Post Forwarding question...... For this control below, <asp:Button runat="server" PostTargetUrl="page2.aspx" /> The Attribute: PostTargetUrl="page2.aspx" Is this PostTargetUrl Attribute...
0
by: someone | last post by:
I am in a situation where I need to package some information from Page1, submit it via POST to another server which will process the information and then send the user to another page on my server...
10
by: DaveFash | last post by:
Posting variables from an HTML FORM, via the Request.Form function on the receiving ASP page is great. But how can you POST a Form variable to an ASP page -- without a human pushing a Submit...
4
by: Newbie | last post by:
Hi, I need help in posting asp .net application web form to another asp based web app. I have seen many examples using HttpWebRequest class but the problem is I do not want the request back...
6
by: KC | last post by:
How would I post data from a listbox that allows multiple selections? How do you join the name/value pairs for the posted data? And for extra credit: Where is a page posting to when there is no...
5
by: dana lees | last post by:
Hi, I am writing a C# asp.net application. How can i post files to a web page? Can you please show an example? I have 3 input files: for example - <input type="file" size="40" id="file1"...
13
by: David W. Fenton | last post by:
I've been struggling the last two days with something I thought was very easy, which is to open a web page with a form on it and populate the form with data passed in a query string (either POST or...
4
by: Dave | last post by:
I have a global.asax file with Application_Start defined and create some static data there and in another module used in the asp.net application and I realize that static data is shared amongst...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.