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