DataBinder.Eval and Eval.

Discussion in 'ASP .Net' started by craigkenisston@hotmail.com, Jun 16, 2006.

  1. Guest

    In asp.net 1.x we used something like
    DataBinder.Eval(Container.DataItem, "FieldName") for binding data.

    Now, in asp.net 2.0 I see a lot of "Eval( fieldname )" and not the
    older format.
    I guess they are equivalent, but I can't find information about the
    difference.
    I suspect the new Eval does not work exactly the way the old
    DataBinder.Eval used to work.
    , Jun 16, 2006
    #1
    1. Advertising

  2. For the most part, they are the same..they just decided to make it so we had
    to type less :)

    Karl

    --
    http://www.openmymind.net/
    http://www.fuelindustries.com/


    <> wrote in message
    news:...
    > In asp.net 1.x we used something like
    > DataBinder.Eval(Container.DataItem, "FieldName") for binding data.
    >
    > Now, in asp.net 2.0 I see a lot of "Eval( fieldname )" and not the
    > older format.
    > I guess they are equivalent, but I can't find information about the
    > difference.
    > I suspect the new Eval does not work exactly the way the old
    > DataBinder.Eval used to work.
    >
    Karl Seguin [MVP], Jun 16, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lauchlan M
    Replies:
    1
    Views:
    7,213
    Lauchlan M
    Oct 15, 2003
  2. =?iso-8859-1?Q?S=F8ren_Lund?=

    DataBinder.Eval and fields with a dot in the name

    =?iso-8859-1?Q?S=F8ren_Lund?=, May 13, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    781
    =?iso-8859-1?Q?S=F8ren_Lund?=
    May 14, 2004
  3. Phil Winstanley [Microsoft MVP]

    Re: DataBinder.Eval and fields with a dot in the name

    Phil Winstanley [Microsoft MVP], May 13, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    499
    Phil Winstanley [Microsoft MVP]
    May 13, 2004
  4. Eric Newton
    Replies:
    3
    Views:
    9,347
    Brock Allen
    Apr 4, 2005
  5. Oleg Ogurok

    Handling DBNull and DataBinder.Eval

    Oleg Ogurok, Jun 14, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    22,241
    RuslanKhor
    Sep 1, 2006
Loading...

Share This Page