How do I concatenate 2 resource strings together in an aspx page

前端 未结 8 2210
日久生厌
日久生厌 2021-01-04 08:27

I have a localised ASP.net application (.net 2.0). I wish to concatenate 2 strings retrieved from the resource file together into one element, something like this.



        
8条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-04 08:57

    Use this method to append 2 strings in ASPX.

    Text='<%# String.Format("{0} {1}", 
          Resources.file01.string1,Resources.file01.string2)%>'
    

提交回复
热议问题