Hiding Url for asp.net page

Posted by user204588 on Stack Overflow See other posts from Stack Overflow or by user204588
Published on 2010-04-25T17:28:57Z Indexed on 2010/04/25 17:33 UTC
Read the original article Hit count: 156

Filed under:
|
|

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();

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about url-rewriting