troubleshooting Question

.Net Post form

Avatar of Kyle Abrahams
Kyle AbrahamsFlag for United States of America asked on
C#ASP.NET
4 Comments1 Solution311 ViewsLast Modified:
Hi All,


I'm trying to update my hidden form items and then post to another page all in a single click.

So  I have a really simple form I have:
<input type="hidden" name="key" ID="key" runat="server" />

 and in a button click I do:
  key.Value = ConfigurationManager.AppSettings["Key"].ToString();


If I let the page come back and use another button with a postbackURL . . . the behavior works as expected.

If I try a response.Redirect the new value can't be read.
I cannot use a server.transfer as I'm going to a 3rd party site to submit the data.
I also tried the postback url on this button click as well, but that also can't be done.

So how do I update the value on the form and post it to another page?  Thanks in advnaced, been a long day and the brain is shot.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros