locked
Using Eval within <%$ Resources > tag RRS feed

  • Question

  • User1979261391 posted

    Hello,

    Is there a way to include Databinding in <%$ Rsources: > tag? 

    Like for example: ( and i need to do it like this way, because the DBase is allready set up as it is )

    <%$ Resources:Resource, <%# (string)DataBinder.Eval(Container.DataItem, "gender") %>

     

    The Rows in Dbase are as follows (example):

    id, password, name, username, gender, country, age etc..

    The website i am working on is in English, Russian and Dutch.

     

    Thanks you.

     

    Wednesday, December 1, 2010 7:22 AM

Answers

  • User1949565384 posted

    I don't thing you need to recode everything.  It will work with either datagridview or repeater.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, December 1, 2010 12:21 PM

All replies

  • User1949565384 posted

    Try this

    http://forums.asp.net/p/1426967/3184452.aspx

    Wednesday, December 1, 2010 7:52 AM
  • User1979261391 posted

    This is for what i was afraid of, i was also bussy thinking to use this solution.

    Problem is that i have to recode almost the whole page Yell because it  uses a repeater and so i guess i have to use a

    While(reader.read()) block instead of bidning it with repeater.DataSource Frown

     

    Anyhow thank you for your answer.

     

    Wednesday, December 1, 2010 11:43 AM
  • User1949565384 posted

    I don't thing you need to recode everything.  It will work with either datagridview or repeater.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, December 1, 2010 12:21 PM