Hello, I'm creating an html page that is posted to another page for processing. I don't want users to see the weird URL they are redirected to and I was using FRAMES but I can't figure out how to add my HTML page dynamically because I need the variables and either add frames or try another way to accomplish this. So, based on how I'm creating the page below, how can I hide the URL and add something that I want.
Here is how I'm creating the page.
StringBuilder sb = new StringBuilder();
sb.Append("<html><head></head>");
sb.Append("<body onload=\"document.frmLaunch.submit();\">");
sb.Append("<form name=\"frmLaunch\" action=\"" + variableTargetURL + "\" method=\"post\">");
sb.Append("<input type=hidden name=\"testVariable\" value=\"" + variableTest + "\">");
sb.Append("</form>");
sb.Append("</body></html>");
HttpResponse response = HttpContext.Current.Response;
response.Clear();
response.Write(sb.ToString()); response.End();