Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How can I get query sting value to HTML?

How can I get query sting value to HTML?

Scheduled Pinned Locked Moved ASP.NET
questionhtmldatabasetutorial
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chand10
    wrote on last edited by
    #1

    Hi In my application I got a desperate situation to use a query string value in to HTML(Source Page) not in .CS page. Is it possible to do? If possible,How? Suggest me an example.

    Thank u Chandu

    S G V 3 Replies Last reply
    0
    • C chand10

      Hi In my application I got a desperate situation to use a query string value in to HTML(Source Page) not in .CS page. Is it possible to do? If possible,How? Suggest me an example.

      Thank u Chandu

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      I think you want to say in the javasipt CALL THIS FUNCTION where yo want to query string function getParams() { var index = document.URL.indexOf('?'); var params = new Array(); if ( index != -1 ) { var nameValuePairs =document.URL.substring(index+1,document.URL.lengt h).split('&'); for ( var i=0; iThanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

      1 Reply Last reply
      0
      • C chand10

        Hi In my application I got a desperate situation to use a query string value in to HTML(Source Page) not in .CS page. Is it possible to do? If possible,How? Suggest me an example.

        Thank u Chandu

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        Here is a function to do that, and some examples: guffa.com: Javascript - querystring[^]

        --- single minded; short sighted; long gone;

        1 Reply Last reply
        0
        • C chand10

          Hi In my application I got a desperate situation to use a query string value in to HTML(Source Page) not in .CS page. Is it possible to do? If possible,How? Suggest me an example.

          Thank u Chandu

          V Offline
          V Offline
          Vasudevan Deepak Kumar
          wrote on last edited by
          #4

          I have shared a small review on Request.QueryString Library in Javascript Andrew here. Check out the same here. http://www.dotnetspider.com/kb/Article3196.aspx[^] You can download the script from here: http://andrewu.co.uk/tools/request/[^]

          Vasudevan Deepak Kumar Personal Homepage Tech Gossips

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups