473,786 Members | 2,775 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Attr ibutes.Add("onc lick",
"noPostBack('ht tps://merchant.webmon ey.ru/lmi/payment.asp');" )
Me.ibPayRx.Attr ibutes.Add("onc lick",
"noPostBack('ht tps://www.roboxchange .com/ssl/calc.asp');")
Me.ibPayRupay.A ttributes.Add(" onclick",
"noPostBack('ht tp://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 2062
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*****@hotmai l.comwrote in message
news:Ox******** ******@TK2MSFTN GP04.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.Attr ibutes.Add("onc lick",
"noPostBack('ht tps://merchant.webmon ey.ru/lmi/payment.asp');" )
Me.ibPayRx.Attr ibutes.Add("onc lick",
"noPostBack('ht tps://www.roboxchange .com/ssl/calc.asp');")
Me.ibPayRupay.A ttributes.Add(" onclick",
"noPostBack('ht tp://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******** ******@TK2MSFTN GP02.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*****@hotmai l.comwrote in message
news:Ox******** ******@TK2MSFTN GP04.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.Att ributes.Add("on click",
"noPostBack('h ttps://merchant.webmon ey.ru/lmi/payment.asp');" )
Me.ibPayRx.Att ributes.Add("on click",
"noPostBack('h ttps://www.roboxchange .com/ssl/calc.asp');")
Me.ibPayRupay. Attributes.Add( "onclick",
"noPostBack('h ttp://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.webmon ey.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*****@hotmai l.comwrote in message
news:u4******** ******@TK2MSFTN GP06.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******** ******@TK2MSFTN GP02.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*****@hotmai l.comwrote in message
news:Ox******* *******@TK2MSFT NGP04.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.At tributes.Add("o nclick",
"noPostBack(' https://merchant.webmon ey.ru/lmi/payment.asp');" )
Me.ibPayRx.At tributes.Add("o nclick",
"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******** ******@TK2MSFTN GP02.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.webmon ey.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*****@hotmai l.comwrote in message
news:u4******** ******@TK2MSFTN GP06.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******* *******@TK2MSFT NGP02.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*****@hotmai l.comwrote in message
news:Ox****** ********@TK2MSF TNGP04.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.A ttributes.Add(" onclick",
"noPostBack( 'https://merchant.webmon ey.ru/lmi/payment.asp');" )
Me.ibPayRx.A ttributes.Add(" onclick",
"noPostBack( 'https://www.roboxchange .com/ssl/calc.asp');")
Me.ibPayRupa y.Attributes.Ad d("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
1840
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 going to be available in the <a> and Html Controls as well as opposed to just the <asp:Button> control?
0
1654
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 (Page2). I have looked at HttpWebRequest (see code below) on numerous coding websites but have not found a method that works. Does anyone have a solution for this or has seen an example that works for this situation?
10
4189
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 button? An ASP page that can decide when to POST and send the Form vaiables, but out without a
4
1625
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 but want to post the data to another form so that at the asp page level we can use request.form values. Any leads would definately be appreciated.
6
1131
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 "action" in the form tag? It just says '<form method=post>'. I didn't think you could do that, but there you go. Once I figure out how to post my data I have to post it TO something but this web page has stuff I've never seen. -- Ken
5
1322
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" runat="server">
13
2901
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 GET). I got Application.FollowHyperlink *kind* of working, but was having problem with double encoding of some characters (I had to do special things with + signs in the data, as well as never figuring out why some data was getting...
4
4531
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 child apps of an IIS application and can be used by multiple users during the application life cycle and for multiple page loads for the same or different page under a root application. What I don't understand and need to know is whether that...
0
10363
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10164
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9962
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8992
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6748
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.