Can Response.Redirect also PostBack too?

I have an OnClick event that makes changes to files on the server and does a postback to itself. The  page doesn't reflect the changes of the file unless I do a Response.Redirect to the same page. This refreshes the page in a sense. The problem is that the form variables are lost after the response.redirect, so the page resets all the variables. Is there a way to carry the form variables along in the Reponse.Redirect so the form values retain their values when the page "refreshes" using the Response.Redirect?
bemara57Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

digital_thoughtsCommented:
What elements on the page need the "refresh" ? You may want to have a separate function that you can call that populates the item(s), and after your update, just call that function to do the "refresh"...
Another option would be to store the form variables in either the view state or session, and on the page load you populate the form.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bemara57Author Commented:
Ahh I think I can mess with the view state.. Thanks for the heads up!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.