adwb said:
What type of application are you writing? Is it an ASP.NET app
running on your server that users will interact with to fill form
fields and submit a form on a page running on another server?
asp.net web application.
Ah. If I finally understood the page that contains those hidden
fields is not yours.
The page with the hidden fields, is in my application.
this page has to be submitted to another page which is not in my
application.
After some operation, i have to call my page, fill the hidden fields and
submit via post the form to that page which is not in my application.
My page sounds like
<form id="form1" action=
www.notmyapplication.com/notmypage.aspx
method="post" >
hiddenfield1
hiddenfield2
....
</form>
the notmypage read the hiddens, and call a page in my application with some
value to read via Request object.
That's it.
A question: can I use a server form with action and method using then a
server button which submit the form? This to send post to the
notmypage.aspx...
In this case, I can fill via server side the hiddend fields values..
Your application must submit to this page values as if they were
coming from those hidden fields...You'll have then to send a request
to this page with the same field names (either by "reproducting" this
page client side or by sending a request server side by using
System.Net.WebClient).
sorry I don't know how to use the webclient class, have you some example?