post

  • Thread starter Thread starter Steph
  • Start date Start date
S

Steph

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
 
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.
 
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.
 
Ok, thanks

Steph


Kevin Spencer said:
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.
 
Back
Top