what do you mean by it is not working? It is not working as getting an error or it not working because it does get the value I set?
If it is the later, then where are you setting ClipherText
. You can to understand the page processing. To undertstand that, this is a must read [ASP.NET Page Life Cycle Overview[^]]
I bet if you set the value of ClipherText
in the PageLoad
it will work. If so, make sure to set it in the appropriate place.
Updated:
Use
Response.AppendHeader
ClipherText = "test";
string qs = Request.QueryString["data"];
if (!string.IsNullOrEmpty(qs))
txtText.Text = qs;
Response.AppendHeader("Refresh", "4; url=test.aspx?data=" + ClipherText);