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. query string issue

query string issue

Scheduled Pinned Locked Moved ASP.NET
helphtmldatabasequestion
2 Posts 2 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.
  • V Offline
    V Offline
    Visionsoft
    wrote on last edited by
    #1

    Hi all, I have a html tag. I'm passing parameters, such as page.aspx?uid=122&name=Ali when it goes to the next page using the link, it works fine in the code behind page. I can use Request["name"] or Request["uid"] but in the aspx page I can't use it. Iniside the generated html of the aspx page, it shows the link as page.aspx?uid=122&name=Ali. I believe the "amp;" is the problem since its the html code for ampersand sign. I'm not sure. Anybody came accross to this problem before? Ali

    R 1 Reply Last reply
    0
    • V Visionsoft

      Hi all, I have a html tag. I'm passing parameters, such as page.aspx?uid=122&name=Ali when it goes to the next page using the link, it works fine in the code behind page. I can use Request["name"] or Request["uid"] but in the aspx page I can't use it. Iniside the generated html of the aspx page, it shows the link as page.aspx?uid=122&name=Ali. I believe the "amp;" is the problem since its the html code for ampersand sign. I'm not sure. Anybody came accross to this problem before? Ali

      R Offline
      R Offline
      Rocky Moore
      wrote on last edited by
      #2

      AliHaider wrote: but in the aspx page I can't use it Could you explain how you are trying to use it? AliHaider wrote: I believe the "amp;" is the problem since its the html code for ampersand sign. I'm not sure. Did you by chance use a Server.HtmlEncode on the line? Depending on usage here, you may also be opening yourself to script attacks by trying to solve the issue. Would be able to give more advice if you could post a code snippet. Rocky <>< www.HintsAndTips.com - Includes Developer Tips www.MyQuickPoll.com - Now with Recent Poll List

      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