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. Postbackurl return unexpected querystring

Postbackurl return unexpected querystring

Scheduled Pinned Locked Moved ASP.NET
cssdatabasedocker
5 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.
  • F Offline
    F Offline
    firestoper
    wrote on last edited by
    #1

    Hi Guru's, I'm working with datagrid control using template column to bound data on each column, on my grid I used linkButton to redirect to another page, I want to add query string on my postbackurl below is my code: Products but when I click the links it returned with %3C%#databinder.eval(container.dataitem,%22productID%22)%%3E Please advice. Thanks

    I N 2 Replies Last reply
    0
    • F firestoper

      Hi Guru's, I'm working with datagrid control using template column to bound data on each column, on my grid I used linkButton to redirect to another page, I want to add query string on my postbackurl below is my code: Products but when I click the links it returned with %3C%#databinder.eval(container.dataitem,%22productID%22)%%3E Please advice. Thanks

      I Offline
      I Offline
      Imran Khan Pathan
      wrote on last edited by
      #2

      What is "xx.aspx.com" ? try with this PostBackUrl="xx.aspx?pID=<%# DataBinder.Eval(Container.DataItem,"productID")%>" Best Regard Pathan

      GOD HELP THOSE WHO HELP THEMSELVES

      F 1 Reply Last reply
      0
      • F firestoper

        Hi Guru's, I'm working with datagrid control using template column to bound data on each column, on my grid I used linkButton to redirect to another page, I want to add query string on my postbackurl below is my code: Products but when I click the links it returned with %3C%#databinder.eval(container.dataitem,%22productID%22)%%3E Please advice. Thanks

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

        Try replacing ' to ". Are you trying to do something when LinkButton is clicked ? Is yes you can handle this using ItemCommand event, instead of passing querystring on postback.


        My Website | Ask smart questions

        F 1 Reply Last reply
        0
        • I Imran Khan Pathan

          What is "xx.aspx.com" ? try with this PostBackUrl="xx.aspx?pID=<%# DataBinder.Eval(Container.DataItem,"productID")%>" Best Regard Pathan

          GOD HELP THOSE WHO HELP THEMSELVES

          F Offline
          F Offline
          firestoper
          wrote on last edited by
          #4

          I rewrite it to PostBackUrl='xx.aspx?pID=<%# DataBinder.Eval(Container.DataItem,"productID")%>' But still no luck. Dom

          1 Reply Last reply
          0
          • N N a v a n e e t h

            Try replacing ' to ". Are you trying to do something when LinkButton is clicked ? Is yes you can handle this using ItemCommand event, instead of passing querystring on postback.


            My Website | Ask smart questions

            F Offline
            F Offline
            firestoper
            wrote on last edited by
            #5

            Yes that's what I wanted to do, passing query sting upon clicking on link button, I was under the impression that placing it on Postbackurl will do shorted job :) I might look on HyperLinkColumn instead. Thanks, I'll still figure it out. tah tah :)

            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