How to use c# code inside <% … %> tags on asp.net page?

前端 未结 4 2091
无人共我
无人共我 2020-12-31 13:00

I\'m writing an asp.net user control. It has a property, FurtherReadingPage, and two controls bound to it: ObjectDataSource and a Repeater. Inside the Repeater I would like

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-31 13:47

    Try this:

    <%#String.Format("{0}?id={1}",FurtherReadingPage, Id)%>
    

提交回复
热议问题