doing a POST to .ASP from ASP.NET page (contd...)

  • Thread starter Thread starter John Edwars
  • Start date Start date
J

John Edwars

Thanks to Martin Honnen, I could successfully send the form data from an
APS.NET page to ASP page. Now the issue is that the form in the ASP.NET page
has input boxes, which I want to update programatically before sending to
the ASP page. The issue is that the change is not getting reflected until a
post back is made, and resubmitted to the ASP. Could somebody pls help out
here.

Regards,
John.
 
John,

Once the request is submitted, you should be able to get the response in
the form of a HttpWebResponse instance, which you can then get the results
of the post from. Once you have this, you should be able to set the
properties of the appropriate elements on your page.

Or am I missing something?
 
Thanks for the response Nicholas. To clarify, this is what I have to do

1. Click on a button on the ASP.NET page
2. Read some user inputs, aggregate them, and put in a hdden input box
element in the ASP.NET page.
3. POST form to the ASP page.
4. Get the response back from ASP page.
5. Update the ASP.NET page with the response from #4

Now at step 3, the ASP page doesn't get the updated value of the input box.
After step 5, if I repost, then ASP gets the previously computed value at 2

Hope I explained it. How do I do it?

Regards,
John
 
John,

I don't understand how at step three, you don't get the value back from
the ASP page. Isn't that a problem with the ASP page that it only comes
back the second time you post to it?
 
Not really, because I update the input field in the ASP.NET form before
posting to ASP page. What I am wanting is to update a form element
programatically before calling the ASP, so that ASP will get the updated
value.

Regards,
John.



Nicholas Paldino said:
John,

I don't understand how at step three, you don't get the value back from
the ASP page. Isn't that a problem with the ASP page that it only comes
back the second time you post to it?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

John Edwars said:
Thanks for the response Nicholas. To clarify, this is what I have to do

1. Click on a button on the ASP.NET page
2. Read some user inputs, aggregate them, and put in a hdden input box
element in the ASP.NET page.
3. POST form to the ASP page.
4. Get the response back from ASP page.
5. Update the ASP.NET page with the response from #4

Now at step 3, the ASP page doesn't get the updated value of the input box.
After step 5, if I repost, then ASP gets the previously computed value
at
2

Hope I explained it. How do I do it?

Regards,
John
 
Back
Top