参数列表之后的未捕获的SyntaxError:missing) - JS和ASP.NET

时间:2018-02-08 19:14:49

标签: asp.net

我有一个包含数据的网格和一个允许查看/编辑所选记录的按钮。

当我点击该按钮时,我收到以下错误:SELECT a.pt ,a.treatment ,a.treatment_date AS start_date ,CASE /*this is for your last fever row with the same date*/ WHEN b.treatment_date IS NULL THEN a.treatment_date ELSE b.treatment_date END AS end_date /*other fields here*/ FROM MyTable a LEFT JOIN MyTable b ON a.pt = b.pt AND a.treatment = b.treatment WHERE a.treatment_date < b.treatment_date /*make sure there isn't any date in between, this should stop you from joining rows you didn't intend on joining on*/ AND NOT EXISTS ( SELECT x.treatment_date FROM MyTable x WHERE a.pt = x.pt AND a.treatment = x.treatment AND x.treatment_date < b.treatment_date AND x.treatment_date > a.treatment_date ) 该按钮打开一个弹出窗口,并从弹出窗口中的gridview加载所选记录的所有信息

这是我的代码:

Uncaught SyntaxError: missing ) after argument list

弹出功能:

 <asp:Button ID="btnView" class="btn btn-warning" runat="server" UseSubmitBehavior="false" OnClientClick='popup("<%# Eval("UserID") %>","<%# Eval("roletype") %>", "<%# Eval("Username") %>","<%# Eval("Password") %>","<%# Eval("Email") %>","<%# Eval("UserRoleID") %>","<%# Eval("FirstName") %>","<%# Eval("LastName") %>","<%# Eval("Phone") %>","<%# Eval("Address") %>")' Text="View" />

请帮助,因为我已经挣扎了好几个小时。谢谢!

1 个答案:

答案 0 :(得分:0)

这一行:

$(".ui-dialog-titlebar-close", ui.dialog | ui).hide();

你需要一个双垂直条来进行逻辑OR。应该是这样的:

$(".ui-dialog-titlebar-close", ui.dialog || ui).hide();