我用objectdatasource绑定了个gridview(其中有一列是id列)
<asp:TemplateField HeaderText= "下级 ">
<ItemStyle Width= "12% "/>
<ItemTemplate>
<asp:LinkButton ID= "next " runat= "server " PostBackUrl= "Manage2.aspx?id= <%# Eval(Container.DataItem, "Id ") %> ">
//上面的写法好像有些不对,可不知道怎么改,请各位帮忙看看。
</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
------解决方案--------------------------------------------------------
<asp:LinkButton ID= "next " runat= "server " PostBackUrl= ' <%# "Manage2.aspx?id= " + Eval( "Id ") %> '> </asp:LinkButton>