asp.net - Passing querystring from one page to another through javascript -


I have two different pages I want to send query string to each other below I have sample code that I tried Is

  window.location.search = 'id =' + hidposid.value; window.location.href = "editviewposition.aspx";   

I can get value in any other page

  cookie1 = httpContext.Current.Request.QueryString ("id") 'return' ''    

  & lt; Script type = "text / javascript" & gt; $ (Function () {$ ("# btnQueryString") .bind ("click", function () {var url = "Page2.htm? Name =" + encodeurIComponent ($ ("# txtName"). Val () ) + "And Technology =" + Encodermonentant ($ ("#ddlTechnolgy"). Val ()); window.location.href = url;})}}     

Hope this will help you.

Comments

Popular posts from this blog

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

sql server ce - Is there some way to make sqlce3.5 and 4.0 co-exist in the C# project -