Formatting DataBinder.Eval data

后端 未结 10 1125
眼角桃花
眼角桃花 2020-12-08 04:33

How can I format data coming from a DataBinder.Eval statement in an ASPX page?

For example, I want to display the published date of the news items in a particular fo

10条回答
  •  佛祖请我去吃肉
    2020-12-08 05:14

    Why not use the simpler syntax?

    
    

    This is the template control "Eval" that takes in the expression and the string format:

    protected internal string Eval(
    string expression,
    string format
    

    )

    http://msdn.microsoft.com/en-us/library/3d2sz789.aspx

提交回复
热议问题