我正在尝试将此 eval 传递给 javascript,但不断出现以下错误:
<input type="submit" value="Send" id="btnPDf" onclick='<%# "openLink( " + Eval("ID" ) + " );" %>' runat="server" />
萤火虫中的错误:
Timestamp: 12/11/2012 17:59:16
Error: SyntaxError: identifier starts immediately after numeric literal
Line: 1, Column: 24
Source Code:
openLink( b690d0c5-9269-424a-ac57-02f3359c982f );
我试过用双引号和反斜杠(如'\')传递它,但仍然没有乐趣