Connecting Tech Pros Worldwide Forums | Help | Site Map

Posting data to another application in ASP.NET 2.0

Peter Afonin
Guest
 
Posts: n/a
#1: Jan 7 '07
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



Alvin Bruney [MVP]
Guest
 
Posts: n/a
#2: Jan 8 '07

re: Posting data to another application in ASP.NET 2.0


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" <pafonin@hotmail.comwrote in message
news:OxYYcKhMHHA.5016@TK2MSFTNGP04.phx.gbl...
Quote:
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
>

Peter Afonin
Guest
 
Posts: n/a
#3: Jan 8 '07

re: Posting data to another application in ASP.NET 2.0


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:eWR4cQtMHHA.4708@TK2MSFTNGP02.phx.gbl...
Quote:
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" <pafonin@hotmail.comwrote in message
news:OxYYcKhMHHA.5016@TK2MSFTNGP04.phx.gbl...
Quote:
>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
>>
>
>

Alvin Bruney [MVP]
Guest
 
Posts: n/a
#4: Jan 8 '07

re: Posting data to another application in ASP.NET 2.0


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" <pafonin@hotmail.comwrote in message
news:u4FyBjtMHHA.4928@TK2MSFTNGP06.phx.gbl...
Quote:
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:eWR4cQtMHHA.4708@TK2MSFTNGP02.phx.gbl...
Quote:
>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" <pafonin@hotmail.comwrote in message
>news:OxYYcKhMHHA.5016@TK2MSFTNGP04.phx.gbl...
Quote:
>>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
>>>
>>
>>
>
>

Peter Afonin
Guest
 
Posts: n/a
#5: Jan 9 '07

re: Posting data to another application in ASP.NET 2.0


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:ei7uxk2MHHA.1252@TK2MSFTNGP02.phx.gbl...
Quote:
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" <pafonin@hotmail.comwrote in message
news:u4FyBjtMHHA.4928@TK2MSFTNGP06.phx.gbl...
Quote:
>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:eWR4cQtMHHA.4708@TK2MSFTNGP02.phx.gbl...
Quote:
>>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" <pafonin@hotmail.comwrote in message
>>news:OxYYcKhMHHA.5016@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
>>>>
>>>
>>>
>>
>>
>
>

Closed Thread