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. datagrid columnlink

datagrid columnlink

Scheduled Pinned Locked Moved ASP.NET
databasedockerhelpquestion
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.
  • N Offline
    N Offline
    Nidhiii
    wrote on last edited by
    #1

    am having the problem when retreving data from database. i hav a value in database "page'3.aspx". single quotes is there. i retrieve it and displays it in a datagrid as a link.The link displays like page'3.asp but the problem is when im passing dat value as a querystring it i snot taking dat singlequote [<%# DataBinder.Eval(Container.DataItem,"Art_Nr") %>](Add_or_Edit_Article.aspx?ArtNr=<%# DataBinder.EvalContainer.DataItem, "Art_Nr") %>)

    S 1 Reply Last reply
    0
    • N Nidhiii

      am having the problem when retreving data from database. i hav a value in database "page'3.aspx". single quotes is there. i retrieve it and displays it in a datagrid as a link.The link displays like page'3.asp but the problem is when im passing dat value as a querystring it i snot taking dat singlequote [<%# DataBinder.Eval(Container.DataItem,"Art_Nr") %>](Add_or_Edit_Article.aspx?ArtNr=<%# DataBinder.EvalContainer.DataItem, "Art_Nr") %>)

      S Offline
      S Offline
      S A R I T H
      wrote on last edited by
      #2

      oh ho... the problem is that, this code <%# DataBinder.Eval(Container.DataItem,"Art_Nr") %> will act as a c# code and the output of that code will taken as a string so that in a string if we want to add single quotes we should use escape charecter. i think u got the problem -- modified at 6:31 Thursday 9th August, 2007

      Sarith...

      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