473,396 Members | 2,029 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,396 software developers and data experts.

post

Hello,

I have a web form with controls and I need post control's values on a remote
server and not on this webForm.

What can I do ?

Thanks for your time

Steph
Nov 17 '05 #1
3 1769
AW
> I have a web form with controls and I need post control's values on a
remote
server and not on this webForm.

What can I do ?


Try adding dynamically an HtmlForm control in which you dynamically add the
HtmlControls that you need to send.
---
To reply, remove a "l" before the @ sign.
Nov 17 '05 #2
> Try adding dynamically an HtmlForm control in which you dynamically add
the
HtmlControls that you need to send.
Can't be done. To add Server Controls to an ASP.Net form, it must be a
WebForm, which can only post to itself.

What he needs to do is to add a (second) regular HTML form to the page,
below the end of the WebForm. He can use JavaScript to assign values to
hidden form fields and then submit the (second) form to the remote server.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"AW" <aw****@fr.xrt.com> wrote in message
news:Ot**************@TK2MSFTNGP10.phx.gbl...
I have a web form with controls and I need post control's values on a

remote
server and not on this webForm.

What can I do ?


Try adding dynamically an HtmlForm control in which you dynamically add

the HtmlControls that you need to send.
---
To reply, remove a "l" before the @ sign.

Nov 17 '05 #3
Ok, thanks

Steph
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> a écrit dans le message
de news: uO*************@tk2msftngp13.phx.gbl...
Try adding dynamically an HtmlForm control in which you dynamically add

the
HtmlControls that you need to send.


Can't be done. To add Server Controls to an ASP.Net form, it must be a
WebForm, which can only post to itself.

What he needs to do is to add a (second) regular HTML form to the page,
below the end of the WebForm. He can use JavaScript to assign values to
hidden form fields and then submit the (second) form to the remote server.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"AW" <aw****@fr.xrt.com> wrote in message
news:Ot**************@TK2MSFTNGP10.phx.gbl...
I have a web form with controls and I need post control's values on a

remote
server and not on this webForm.

What can I do ?


Try adding dynamically an HtmlForm control in which you dynamically add

the
HtmlControls that you need to send.
---
To reply, remove a "l" before the @ sign.


Nov 17 '05 #4

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

Similar topics

15
by: Thomas Scheiderich | last post by:
I am trying to understand Session variables and ran into a question on how they work with data that is passed. I have an HTM file that calls an ASP file and sends the name either by GET or POST....
1
by: khawar | last post by:
my application is in asp.net using C# hi guys having a complicated problem i am using payflowlink to process CC payments I have to send a httppost to their servers. The problem is how do i do a...
2
by: Matt | last post by:
When we submit the form data to another page, we usually do the following: <form action="display.aspx" method="post"> will submit the form data and open display.asp in the current browser ...
1
by: Manuel | last post by:
I have to log into a website and retrieve some information. The problem is that the post isn't "normal". I'm used to passing post values in the form of: Variable1=Value1&Variable2=Value2 etc. I...
10
by: glenn | last post by:
I am use to programming in php and the way session and post vars are past from fields on one page through to the post page automatically where I can get to their values easily to write to a...
24
by: moriman | last post by:
Hi, The script below *used* to work. I have only just set up a server, PHP etc again on my Win98 system and now it doesn't? On first loading this page, you would have $p = and the button...
9
by: c676228 | last post by:
Hi, I am new to this discussion forum. I started to post questions on this forum since this Jan. and got many good responses and I am very appreciated to those who are willing to help with their...
3
by: JansenH | last post by:
We have implemented a 'HTTP Post' client in C# that posts Xml documents to a webserver. This is working fine if the post rate is one post for every 20 seconds. But if the post rate is increased to...
10
by: Peter Michaux | last post by:
Hi, All Ajax libraries I've read use encodeURIComponent() on the name- value pairs extracted from forms before POST ing the result to the server with and xmlhttprequest. I can understand why...
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.