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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Request.querystring Problem.

Request.querystring Problem.

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netdatabasetutorial
5 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.
  • K Offline
    K Offline
    kavitha_blueindia
    wrote on last edited by
    #1

    Hi all, The following code snippet is written is in asp.i need to convert it as asp.net.I dont how to check and retrieve a query string variable in td(table column) in asp.net.Please help me. <% select case request.querystring("msg") case "success": strMsg = "Your message has been sent
    "; case "delete": strMsg = "Your message has been deleted.
    "; end select %> <% if strMsg <> "" then %> <%=strMsg> <% end if %> Thanks in advance.

    A N 2 Replies Last reply
    0
    • K kavitha_blueindia

      Hi all, The following code snippet is written is in asp.i need to convert it as asp.net.I dont how to check and retrieve a query string variable in td(table column) in asp.net.Please help me. <% select case request.querystring("msg") case "success": strMsg = "Your message has been sent
      "; case "delete": strMsg = "Your message has been deleted.
      "; end select %> <% if strMsg <> "" then %> <%=strMsg> <% end if %> Thanks in advance.

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Just read query string in this way . string message=Request.QueryString["msg"]

      cheers, Abhijit

      K 1 Reply Last reply
      0
      • K kavitha_blueindia

        Hi all, The following code snippet is written is in asp.i need to convert it as asp.net.I dont how to check and retrieve a query string variable in td(table column) in asp.net.Please help me. <% select case request.querystring("msg") case "success": strMsg = "Your message has been sent
        "; case "delete": strMsg = "Your message has been deleted.
        "; end select %> <% if strMsg <> "" then %> <%=strMsg> <% end if %> Thanks in advance.

        N Offline
        N Offline
        Nishant Singh
        wrote on last edited by
        #3

        U can't directly access QueryString in aspx page Put it in a hidden control (in Code behind) and then access it using JavaScript

        J 1 Reply Last reply
        0
        • A Abhijit Jana

          Just read query string in this way . string message=Request.QueryString["msg"]

          cheers, Abhijit

          K Offline
          K Offline
          kavitha_blueindia
          wrote on last edited by
          #4

          Thanks Abhijit.It worked.

          1 Reply Last reply
          0
          • N Nishant Singh

            U can't directly access QueryString in aspx page Put it in a hidden control (in Code behind) and then access it using JavaScript

            J Offline
            J Offline
            J4amieC
            wrote on last edited by
            #5

            Nishant Singh wrote:

            U can't directly access QueryString in aspx page

            Yes you can.

            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