且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

评估方法字符串链接按钮

更新时间:2023-02-03 09:34:18

您可以使用Eval绑定相同的链接按钮.试试这个:
You can use Eval to bind the same linkbutton. Try this:
<asp:linkbutton id="ImgLnk" runat="server" onclick="lnkCustomer_Click" commandname="CustomerLink" text='<%# Eval("ImgLnk") %>' />



请记住,URL 是gridview数据源中的列,该列将包含所有行的URL''s.

--Amit



Remember, URL is the column in your gridview datasource which will contain the URL''s for all the rows.

--Amit