QueryString in JavaScript

java , javascript India
  • 13 years ago

    Hi friends,

    I am sending a QueryString from ServerSide
    Response.Redirect("Iframe.aspx?var1=" & Hidden1.Value)

    I want to recieve this QueryString value in clientside variable of javascript

    Please help me how to do this.

    Thanks and Regards
    Ajay ManralConfused

  • 13 years ago

     Hi Ajay

     In this case u can try the following method

      in the Iframe.aspx you need to declare a public variable (ex. Public strQueryString as String)

      In the Page Load of the Iframe.aspx Server Side coding

         strQueryString=Rquest.QueryString("var1")

     In the client side coding of Iframe.aspx page you can call

      var str='<%=strQueryString%>';

     
    I hope this may solve your problem

     
    Good Luck

    Regards

    Hari K......
     

      
     

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“I invented the term Object-Oriented, and I can tell you I did not have C++ in mind.” - Alan Kay