2
Reply

How we hide the querystring value from the url ..?

Bharat  Bhushan

Bharat Bhushan

14y
10.6k
0
Reply

    Hi Mr.Bharat Bhushan .,Did u got Solution for URL Rewriting if Means Please Share it ASAP i Need it for My ASP.NET 4.0 C# Application

    Hi
    i want to know how to hide the values in query string in ASP.net.
    here i want to send the values from one page to another page through query
    string with out explicitly visible the values in the query string. i want
    the solution with the response.redirect method.
    example : http://itinabha.espranza.net/newsdetail.aspx?value=2
    but i wan the link is http://itinabha.espranza.net/newsdetail.aspx only.
    I dont want use Session, or cache.this will make heavy my application
    if anybody knows please send me the solution.it's very needed to me.

    I'm using server.urlEncode explain below example . the url is encodedbut .aspx page is not working . it prints "BAD REQUEST" only

     

    Response.Redirect(Server.UrlEncode("AdminTopicsMCQ.aspx?Topicid=" + Convert.ToInt32(Request.QueryString["Topicid"]) + "&termid=" + Convert.ToInt32(Request.QueryString["Termid"]) + "&subid=" + Convert.ToInt32(Request.QueryString["subid"]) + "&clsid=" + Convert.ToInt32(Request.QueryString["clsid"])));



    Thank You
    Bharat