嘿,在它被确认链接到另一个 aspx 文件之后想要 javascript,但不知何故,它不会将浏览器定向到 url。这是我得到的
<asp:ImageButton ID="Donebtn" runat="server" ImageUrl="~/images/done.jpg" ToolTip="Done. Add new activity" CommandName="Done" CommandArgument='<%#Eval("ActivityID") %>' OnClientClick="return SecurityCheck();" />
javascript
function SecurityCheck()
{
return window("Mark Activity as completed and add new Activity?");
if (o == true)
{
window.location.href = 'CustomerHome.aspx?CustomerId=<%#Eval("CustomerID")%>';
}
else
{
return window("No changes will be made");
}
}