Bharat  Bhushan
How we hide the querystring value from the url ..?
By Bharat Bhushan in ASP.NET on Nov 22 2010
  • Rajagopalan R V
    Apr, 2015 2

    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

    • 0
  • Bharat  Bhushan
    Nov, 2010 22

    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

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS