<asp:repeater >
...
..
<asp:Button ID="update" OnClientClick='<%# "javascript:window.location.href= Eval("id").ToString() "%>' runat="server" Text="编辑" style="border-width:0px" />
..
.
</asp:repeater>出错了..编译器错误信息: CS1026: 应输入 )
...
..
<asp:Button ID="update" OnClientClick='<%# "javascript:window.location.href= Eval("id").ToString() "%>' runat="server" Text="编辑" style="border-width:0px" />
..
.
</asp:repeater>出错了..编译器错误信息: CS1026: 应输入 )
...
..
<asp:Button ID="update" OnClientClick="javascript:window.location.href='<%# Eval("id").ToString()%>'" runat="server" Text="编辑" style="border-width:0px" />
..
.
</asp:repeater>
...
..
<asp:Button ID="update" OnClientClick='<%# "javascript:window.location.href= Eval("id").ToString() "%>' runat="server" Text="编辑" style="border-width:0px" />
..
.
</asp:repeater>
你是不是要客户端单击就转到指定页去啊
可以换个做法啊
你这样写可以吗,绑定里面有脚本
看不明白啊
推荐换一种方式吧