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. Using DataBind.Eval in the Code Behind

Using DataBind.Eval in the Code Behind

Scheduled Pinned Locked Moved ASP.NET
dockerhelptutorialquestion
4 Posts 4 Posters 1 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.
  • T Offline
    T Offline
    TheMajorRager
    wrote on last edited by
    #1

    Hello Everyone, I am trying to use DataBind.Eval(Container.DataItem, "column") in the code behind but when I type in Container.DataItem, it gives me an error. Does anyone know how to use this instead of using it in the aspx page? Thanks Sincerely, The Major Rager

    M I 2 Replies Last reply
    0
    • T TheMajorRager

      Hello Everyone, I am trying to use DataBind.Eval(Container.DataItem, "column") in the code behind but when I type in Container.DataItem, it gives me an error. Does anyone know how to use this instead of using it in the aspx page? Thanks Sincerely, The Major Rager

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      You may only use the DataBind.Eval method in the DataBinding event handler in code-behind. Basically, it is used in the data binding expression right in the web page, I'm curious as to why you need to call it in code-behind.

      A 1 Reply Last reply
      0
      • M minhpc_bk

        You may only use the DataBind.Eval method in the DataBinding event handler in code-behind. Basically, it is used in the data binding expression right in the web page, I'm curious as to why you need to call it in code-behind.

        A Offline
        A Offline
        Amit Agarrwal
        wrote on last edited by
        #3

        hi this is aavesh.. actually i was trying this code.but its not running a flash file. i show u how i try to to do it.i hav put the my .swf file in Imagess folder and trying to run it.but it shows me blank box. VALUE="~\Imagess\Soft-Orange.swf"> NAME=bgcolor VALUE=#FFFFFF> one thing which confused me that i don't hav flash software on my PC. do i need to install it.if it is then how it will run on server. thanx

        1 Reply Last reply
        0
        • T TheMajorRager

          Hello Everyone, I am trying to use DataBind.Eval(Container.DataItem, "column") in the code behind but when I type in Container.DataItem, it gives me an error. Does anyone know how to use this instead of using it in the aspx page? Thanks Sincerely, The Major Rager

          I Offline
          I Offline
          Ista
          wrote on last edited by
          #4

          TheMajorRager wrote:

          I am trying to use DataBind.Eval(Container.DataItem, "column")

          well its DataBinder.Eval(<datasource>, <property>) datasource = is the item being bound to property = property name This is done inside of event raised by a control. If your doing this outside of an event, just grab the data from the data source and dont use the DataBinder

          -------------------------------------------------------- 1 line of code equals many bugs. So don't write any!! My mad coder blog

          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