Hi,
I have a form (server side) because of the filling of variables through the
application. But now I need to post it to an url on submit.
My .HTML form looks like this, but how to translate it to asp.net vb code?
!--<FORM ACTION="/test/test.php" METHOD=POST>-->
<form action="https://multipay.net/transaction/mpmain.php" method="post">
....
<INPUT TYPE=SUBMIT VALUE="SUBMIT ORDER">
I saw messages about doing a client side javascript as action for onsubmit.
This is not clear to be and seems not the right way.
Thanks,
Gert 8 5054
Gert s this not php?
Are you in the right group?
"Gert" <gc****@hotmail.com> wrote in message
news:eZ**************@TK2MSFTNGP12.phx.gbl... Hi,
I have a form (server side) because of the filling of variables through
the application. But now I need to post it to an url on submit. My .HTML form looks like this, but how to translate it to asp.net vb code?
!--<FORM ACTION="/test/test.php" METHOD=POST>--> <form action="https://multipay.net/transaction/mpmain.php" method="post">
...
<INPUT TYPE=SUBMIT VALUE="SUBMIT ORDER">
I saw messages about doing a client side javascript as action for
onsubmit. This is not clear to be and seems not the right way. Thanks,
Gert
You cant simply post a form to an ASP.NET webserver. You need to create a
webform and GET the webform, flll in the fields and then postback the form
to the server.
--
Best Regards
The Inimitable Mr Newbie º¿º
"Gert" <gc****@hotmail.com> wrote in message
news:eZ******************@TK2MSFTNGP12.phx.gbl... Hi,
I have a form (server side) because of the filling of variables through the application. But now I need to post it to an url on submit. My .HTML form looks like this, but how to translate it to asp.net vb code?
!--<FORM ACTION="/test/test.php" METHOD=POST>--> <form action="https://multipay.net/transaction/mpmain.php" method="post">
...
<INPUT TYPE=SUBMIT VALUE="SUBMIT ORDER">
I saw messages about doing a client side javascript as action for onsubmit. This is not clear to be and seems not the right way. Thanks,
Gert
He is asking how to translate his form to ASP.NET Webform I think.
--
Best Regards
The Inimitable Mr Newbie º¿º
"Patrick.O.Ige" <pa********@optusnet.com.au> wrote in message
news:ur**************@TK2MSFTNGP10.phx.gbl... Gert s this not php? Are you in the right group?
"Gert" <gc****@hotmail.com> wrote in message news:eZ**************@TK2MSFTNGP12.phx.gbl... Hi,
I have a form (server side) because of the filling of variables through the application. But now I need to post it to an url on submit. My .HTML form looks like this, but how to translate it to asp.net vb code?
!--<FORM ACTION="/test/test.php" METHOD=POST>--> <form action="https://multipay.net/transaction/mpmain.php" method="post">
...
<INPUT TYPE=SUBMIT VALUE="SUBMIT ORDER">
I saw messages about doing a client side javascript as action for onsubmit. This is not clear to be and seems not the right way. Thanks,
Gert
Good you understood that Mr Newbie.
I was confused.
Patrick
"Mr Newbie" <he**@now.com> wrote in message
news:e4**************@TK2MSFTNGP10.phx.gbl... You cant simply post a form to an ASP.NET webserver. You need to create a webform and GET the webform, flll in the fields and then postback the form to the server.
-- Best Regards
The Inimitable Mr Newbie º¿º
"Gert" <gc****@hotmail.com> wrote in message news:eZ******************@TK2MSFTNGP12.phx.gbl... Hi,
I have a form (server side) because of the filling of variables through the application. But now I need to post it to an url on submit. My .HTML form looks like this, but how to translate it to asp.net vb
code? !--<FORM ACTION="/test/test.php" METHOD=POST>--> <form action="https://multipay.net/transaction/mpmain.php"
method="post"> ...
<INPUT TYPE=SUBMIT VALUE="SUBMIT ORDER">
I saw messages about doing a client side javascript as action for onsubmit. This is not clear to be and seems not the right way. Thanks,
Gert
Thats only because I have been watching Star Trek Voyager for so long, I
think I have developed the biological equivelent of a 'Universal
Translator', and this helps be extrapolate from garbage and bring order to
chaos . . . . ( Sometimes ! )
Live Long And Prosper - \\//
;-D
--
Best Regards
The Inimitable Mr Newbie º¿º
"Patrick.O.Ige" <pa********@optusnet.com.au> wrote in message
news:u3**************@tk2msftngp13.phx.gbl... Good you understood that Mr Newbie. I was confused. Patrick
"Mr Newbie" <he**@now.com> wrote in message news:e4**************@TK2MSFTNGP10.phx.gbl... You cant simply post a form to an ASP.NET webserver. You need to create a webform and GET the webform, flll in the fields and then postback the form to the server.
-- Best Regards
The Inimitable Mr Newbie º¿º
"Gert" <gc****@hotmail.com> wrote in message news:eZ******************@TK2MSFTNGP12.phx.gbl... > Hi, > > I have a form (server side) because of the filling of variables through > the application. But now I need to post it to an url on submit. > My .HTML form looks like this, but how to translate it to asp.net vb code? > > !--<FORM ACTION="/test/test.php" METHOD=POST>--> > <form action="https://multipay.net/transaction/mpmain.php" method="post"> > > ... > > <INPUT TYPE=SUBMIT VALUE="SUBMIT ORDER"> > > I saw messages about doing a client side javascript as action for > onsubmit. This is not clear to be and seems not the right way. > > > > Thanks, > > Gert > >
Actually, you *can* simply post a form from a server-side app to a web URL.
I have built a set of classes for doing just this.
The trick is to create an HTTP POST Request with the form data Url-encoded
into it as it would be if it were coming from a browser (remember that HTTP
is stateless - requesting a form from a web server in no way tells the web
server to expect a form post coming from the client).
The set of classes I've created have been working quite well from within a
service we have on our system which checks data on several public weather
information web sites, to see how long it takes for weather data we provide
to the NWS takes to get to these web sites.
In fact, these classes also include the ability to fetch an HTML form from a
given URL, and parse it into a class (called "HtmlFormData"). The class can
then be used to programmatically "fill out" the form, by changing the
various value properties of the different class members (which represent
HTML form fields), and then post it to the URL of its "action" property. The
HtmlFormData class can be used to add, remove, or modify the contents of an
HTML form, or to build one from scratch, if desired. The ToString() method
of the class returns the HtmlFormData class as HTML (in the form of an HTML
form).
It is used in conjunction with several networking classes, most notably the
HttpClient class that we created, and is part of the same assembly, and a
set of HTML form-parsing Regular Expressions that are in another class in
the same assembly.
I am in the process of creating a commercially-available component class
library that includes this, as well as over 60 classes, structs, interfaces,
enumerations, and delegates, which are useful in a variety of situations as
well. If you'd like to help with the beta testing, email me and I'll send
you a copy. Just promise to give me your feedback on it.
Oh yes. One other thing. It's all .Net 2.0.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
A watched clock never boils.
"Mr Newbie" <he**@now.com> wrote in message
news:OT**************@TK2MSFTNGP12.phx.gbl... Thats only because I have been watching Star Trek Voyager for so long, I think I have developed the biological equivelent of a 'Universal Translator', and this helps be extrapolate from garbage and bring order to chaos . . . . ( Sometimes ! )
Live Long And Prosper - \\//
;-D
-- Best Regards
The Inimitable Mr Newbie º¿º "Patrick.O.Ige" <pa********@optusnet.com.au> wrote in message news:u3**************@tk2msftngp13.phx.gbl... Good you understood that Mr Newbie. I was confused. Patrick
"Mr Newbie" <he**@now.com> wrote in message news:e4**************@TK2MSFTNGP10.phx.gbl... You cant simply post a form to an ASP.NET webserver. You need to create a webform and GET the webform, flll in the fields and then postback the form to the server.
-- Best Regards
The Inimitable Mr Newbie º¿º
"Gert" <gc****@hotmail.com> wrote in message news:eZ******************@TK2MSFTNGP12.phx.gbl... > Hi, > > I have a form (server side) because of the filling of variables > through > the application. But now I need to post it to an url on submit. > My .HTML form looks like this, but how to translate it to asp.net vb code? > > !--<FORM ACTION="/test/test.php" METHOD=POST>--> > <form action="https://multipay.net/transaction/mpmain.php" method="post"> > > ... > > <INPUT TYPE=SUBMIT VALUE="SUBMIT ORDER"> > > I saw messages about doing a client side javascript as action for > onsubmit. This is not clear to be and seems not the right way. > > > > Thanks, > > Gert > >
Good to hear that you might be making some money for your efforts, thats
allways a bonus!
I take your point regarding the Url-encoded POST, but the OP was trying to
do this with a browser I think ?!? What do you do about Viewstate ? or is
this just left empty ?
As far as BETA testing your classes, I would be happy to help, but Im snowed
under at the moment and I dont think I could do your testing justice . But I
wish you well with it, and if things slow down a little, I may take you up
on the offer as it sounds really interesting.
--
Best Regards
The Inimitable Mr Newbie º¿º
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:ua*************@tk2msftngp13.phx.gbl... Actually, you *can* simply post a form from a server-side app to a web URL. I have built a set of classes for doing just this.
The trick is to create an HTTP POST Request with the form data Url-encoded into it as it would be if it were coming from a browser (remember that HTTP is stateless - requesting a form from a web server in no way tells the web server to expect a form post coming from the client).
The set of classes I've created have been working quite well from within a service we have on our system which checks data on several public weather information web sites, to see how long it takes for weather data we provide to the NWS takes to get to these web sites.
In fact, these classes also include the ability to fetch an HTML form from a given URL, and parse it into a class (called "HtmlFormData"). The class can then be used to programmatically "fill out" the form, by changing the various value properties of the different class members (which represent HTML form fields), and then post it to the URL of its "action" property. The HtmlFormData class can be used to add, remove, or modify the contents of an HTML form, or to build one from scratch, if desired. The ToString() method of the class returns the HtmlFormData class as HTML (in the form of an HTML form).
It is used in conjunction with several networking classes, most notably the HttpClient class that we created, and is part of the same assembly, and a set of HTML form-parsing Regular Expressions that are in another class in the same assembly.
I am in the process of creating a commercially-available component class library that includes this, as well as over 60 classes, structs, interfaces, enumerations, and delegates, which are useful in a variety of situations as well. If you'd like to help with the beta testing, email me and I'll send you a copy. Just promise to give me your feedback on it.
Oh yes. One other thing. It's all .Net 2.0.
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer A watched clock never boils.
"Mr Newbie" <he**@now.com> wrote in message news:OT**************@TK2MSFTNGP12.phx.gbl... Thats only because I have been watching Star Trek Voyager for so long, I think I have developed the biological equivelent of a 'Universal Translator', and this helps be extrapolate from garbage and bring order to chaos . . . . ( Sometimes ! )
Live Long And Prosper - \\//
;-D
-- Best Regards
The Inimitable Mr Newbie º¿º "Patrick.O.Ige" <pa********@optusnet.com.au> wrote in message news:u3**************@tk2msftngp13.phx.gbl... Good you understood that Mr Newbie. I was confused. Patrick
"Mr Newbie" <he**@now.com> wrote in message news:e4**************@TK2MSFTNGP10.phx.gbl... You cant simply post a form to an ASP.NET webserver. You need to create a webform and GET the webform, flll in the fields and then postback the form to the server.
-- Best Regards
The Inimitable Mr Newbie º¿º
"Gert" <gc****@hotmail.com> wrote in message news:eZ******************@TK2MSFTNGP12.phx.gbl... > Hi, > > I have a form (server side) because of the filling of variables > through > the application. But now I need to post it to an url on submit. > My .HTML form looks like this, but how to translate it to asp.net vb code? > > !--<FORM ACTION="/test/test.php" METHOD=POST>--> > <form action="https://multipay.net/transaction/mpmain.php" method="post"> > > ... > > <INPUT TYPE=SUBMIT VALUE="SUBMIT ORDER"> > > I saw messages about doing a client side javascript as action for > onsubmit. This is not clear to be and seems not the right way. > > > > Thanks, > > Gert > >
Great idea Kevin.
Will be intouch
Patrick
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:ua*************@tk2msftngp13.phx.gbl... Actually, you *can* simply post a form from a server-side app to a web
URL. I have built a set of classes for doing just this.
The trick is to create an HTTP POST Request with the form data Url-encoded into it as it would be if it were coming from a browser (remember that
HTTP is stateless - requesting a form from a web server in no way tells the web server to expect a form post coming from the client).
The set of classes I've created have been working quite well from within a service we have on our system which checks data on several public weather information web sites, to see how long it takes for weather data we
provide to the NWS takes to get to these web sites.
In fact, these classes also include the ability to fetch an HTML form from
a given URL, and parse it into a class (called "HtmlFormData"). The class
can then be used to programmatically "fill out" the form, by changing the various value properties of the different class members (which represent HTML form fields), and then post it to the URL of its "action" property.
The HtmlFormData class can be used to add, remove, or modify the contents of
an HTML form, or to build one from scratch, if desired. The ToString() method of the class returns the HtmlFormData class as HTML (in the form of an
HTML form).
It is used in conjunction with several networking classes, most notably
the HttpClient class that we created, and is part of the same assembly, and a set of HTML form-parsing Regular Expressions that are in another class in the same assembly.
I am in the process of creating a commercially-available component class library that includes this, as well as over 60 classes, structs,
interfaces, enumerations, and delegates, which are useful in a variety of situations
as well. If you'd like to help with the beta testing, email me and I'll send you a copy. Just promise to give me your feedback on it.
Oh yes. One other thing. It's all .Net 2.0.
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer A watched clock never boils.
"Mr Newbie" <he**@now.com> wrote in message news:OT**************@TK2MSFTNGP12.phx.gbl... Thats only because I have been watching Star Trek Voyager for so long, I think I have developed the biological equivelent of a 'Universal Translator', and this helps be extrapolate from garbage and bring order
to chaos . . . . ( Sometimes ! )
Live Long And Prosper - \\//
;-D
-- Best Regards
The Inimitable Mr Newbie º¿º "Patrick.O.Ige" <pa********@optusnet.com.au> wrote in message news:u3**************@tk2msftngp13.phx.gbl... Good you understood that Mr Newbie. I was confused. Patrick
"Mr Newbie" <he**@now.com> wrote in message news:e4**************@TK2MSFTNGP10.phx.gbl... You cant simply post a form to an ASP.NET webserver. You need to
create a webform and GET the webform, flll in the fields and then postback the form to the server.
-- Best Regards
The Inimitable Mr Newbie º¿º
"Gert" <gc****@hotmail.com> wrote in message news:eZ******************@TK2MSFTNGP12.phx.gbl... > Hi, > > I have a form (server side) because of the filling of variables > through > the application. But now I need to post it to an url on submit. > My .HTML form looks like this, but how to translate it to asp.net vb code? > > !--<FORM ACTION="/test/test.php" METHOD=POST>--> > <form action="https://multipay.net/transaction/mpmain.php" method="post"> > > ... > > <INPUT TYPE=SUBMIT VALUE="SUBMIT ORDER"> > > I saw messages about doing a client side javascript as action for > onsubmit. This is not clear to be and seems not the right way. > > > > Thanks, > > Gert > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Steve |
last post by:
Does anyone know what is wrong with this code or why I might be experiencing
this behavior?
I have a Java application that submits HTTP POST requests to a servlet (with
content in the body of...
|
by: tim payne |
last post by:
I have a quick question!
Using the code behind model in VS.Net, is it possible to change the action
of a form server side, or is that something we'd have to do client side? The
example I'm...
|
by: bhavik |
last post by:
hi
I have problem with attachment showing form server side.
when our application run on localhost we add any attachment to mail server.
if suppose we want to show that attachment we can see...
|
by: Mr Bojangles |
last post by:
Hi,
I want a do the following:
From a (client side) web form, post to server side script (I'm using
Javascript but anything will do), which in turn--and this is the important
bit that I...
|
by: ChrisA |
last post by:
I have a small (feedback) page in asp.net 1.1.
Is it possible to cause a page to be opened in another window in respose to
a post from another aspx page? Is there something I can do in the page...
|
by: Vinay Nagrik |
last post by:
Hello Group members,
I have access to server side php script which takes parameters from a
form and processes
the buffer and saves the file.
However, I, as an implementor, do not have the...
|
by: robert |
last post by:
I need to post a form from an asp.net page to another web application
(asp), I know I can do this with javascript and change the action url
but I wondered if it is possible to post the form server...
|
by: BarryX |
last post by:
Hi,
How do I simulate this from the server side:
<form name="SearchForm" method="POST" id="SearchForm"
action="http://SOMEURL/Search.ASP?Parm1=1&Parm2=2">
I have generally been posting data...
|
by: BarryX |
last post by:
Hi,
How do I simulate this from the server side:
<form name="SearchForm" method="POST" id="SearchForm"
action="http://SOMEURL/Search.ASP?Parm1=1&Parm2=2">
I have generally been posting data...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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,...
| |