By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,995 Members | 1,422 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,995 IT Pros & Developers. It's quick & easy.

Call a javascript when i call an aspx page with a form html not running on server

P: n/a
My application has to call a webpage with some hidden field, fill their
values with some parameters and then call the submit to the form which has
the action property set to a page of another web application.

all of this, did via javascript.

how can i send the data to fill the hidden fields to this web form?

Please help me, thank you!
Fabio

Jan 25 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Not sure what is the particular problem. The simplest would be to create the
page server side with those hidden fields already filled with values. If you
have to get them from client side inputs you could use
getElementById('MyClientSideControlID').value='MyV alue' to fill the value of
a field form. The "form.submit" method allows to programmatically submit the
form...

My personal preference would be likely to do that server side using
System.Net.WebClient (it allows to send a POST query with form values to a
particular target page and get the response).

If you prfer doing still cleint side, you may want to be a bit more specific
about the exact point that causes the problem (not sure if it's filling the
hidden fields, submitting the data or whatever else...)
--
Patrice

"Fabio Mastria" <di******@mastriaconsultants.coma écrit dans le message de
news: F9**********************************@microsoft.com...
My application has to call a webpage with some hidden field, fill their
values with some parameters and then call the submit to the form which has
the action property set to a page of another web application.

all of this, did via javascript.

how can i send the data to fill the hidden fields to this web form?

Please help me, thank you!
Fabio

Jan 25 '08 #2

P: n/a
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?

"Fabio Mastria" wrote:
My application has to call a webpage with some hidden field, fill their
values with some parameters and then call the submit to the form which has
the action property set to a page of another web application.

all of this, did via javascript.

how can i send the data to fill the hidden fields to this web form?

Please help me, thank you!
Fabio

Jan 25 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.