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. Help me in Query string

Help me in Query string

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netdatabasequestion
3 Posts 3 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
    krishsenthilraj
    wrote on last edited by
    #1

    hi all, I am developing a web application using asp.net 2.0 (VB). my current page's URL some times comes with query string some times doesn't comes with query string. It is based on some status. I need to check My URL, whether its contain any query string or not. If so i have to do some action based on the value. else different kind of action will take place. Now how can i find out My URL contains the query string... help me out to solve this problem. Thanks in advance Senthilraj K

    Steve EcholsS N 2 Replies Last reply
    0
    • K krishsenthilraj

      hi all, I am developing a web application using asp.net 2.0 (VB). my current page's URL some times comes with query string some times doesn't comes with query string. It is based on some status. I need to check My URL, whether its contain any query string or not. If so i have to do some action based on the value. else different kind of action will take place. Now how can i find out My URL contains the query string... help me out to solve this problem. Thanks in advance Senthilraj K

      Steve EcholsS Offline
      Steve EcholsS Offline
      Steve Echols
      wrote on last edited by
      #2

      Check out the Request object. If your url is: www.foo.com?myparam=something Dim myvalue as string = "defaultvalue" If Not Request("myparam") Is Nothing Then myvalue = Request("myparam") End If myvalue should now be "something".


      - S 50 cups of coffee and you know it's on!

      • S
        50 cups of coffee and you know it's on!
        Code, follow, or get out of the way.
      1 Reply Last reply
      0
      • K krishsenthilraj

        hi all, I am developing a web application using asp.net 2.0 (VB). my current page's URL some times comes with query string some times doesn't comes with query string. It is based on some status. I need to check My URL, whether its contain any query string or not. If so i have to do some action based on the value. else different kind of action will take place. Now how can i find out My URL contains the query string... help me out to solve this problem. Thanks in advance Senthilraj K

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        Do you know the querystring variable name ? IF yes then go with previous poster suggested method. If no, you need to take Requst.RawUrl and use some regular expressions to find url contains querystring.


        My Website | Ask smart questions

        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