in Search
ATTENTION: I've decided to put the upgrade on hold due to a compatibility issue of our server environment with the latest CS installer package. CS 2008 now requires SQL Server 2005 as the backend DB but our database server currenlty has SQL Server 2000 installed on it. I'll resume the upgrade once I figure out when Telligent is releasing a patch to the schema compatibility issue. For now, we will continue to use the old version of CS while waiting for the said patch. If you have any questions about this process, please don't hesitate to post them on our forums and I'll answer them as soon as I can. Thanks for your patience and support guys! I'll let you know as soon as this is resolved. - Keith Rull
Latest post 07-29-2008 7:30 AM by xyz. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-02-2008 1:50 AM

    • jpgjuan
    • Top 75 Contributor
    • Joined on 08-29-2006
    • Posts 23
    • Points 440

    rstname.Field.("a_counter").value

    Im newbie in ASP.net 

    On classic asp:

    <%rstname.Field("Column_Name").Value %>

     what is the equivalent of this code on asp.net 2.0?Confused

    thanks in advance. 


    • Post Points: 35
  • 05-02-2008 7:31 AM In reply to

    • jop
    • Top 25 Contributor
    • Joined on 08-08-2006
    • Singapore
    • Posts 187
    • Points 3,170

    Re: rstname.Field.("a_counter").value

    You can still use the same code or you can add a label on the webform and set the label.Text = rstname.Field("Column_Name").Value; on the code behind.

    [jop]

    • Post Points: 5
  • 07-29-2008 7:30 AM In reply to

    • xyz
    • Top 200 Contributor
    • Joined on 07-29-2008
    • Posts 5
    • Points 55

    Re: rstname.Field.("a_counter").value

     if you are binding your data in a list control(gridview,repeater, etc) the equivalent would be the following

    <%# Eval("Column_Name") %>

    or

    <%# DataBinder.Eval(Container, "DataItem.Column_Name") %>

    HTH

     

    • Post Points: 5
Page 1 of 1 (3 items)