【发布时间】:2011-09-16 10:27:48
【问题描述】:
嘿,在确认 javascript 链接到另一个 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");
}
}
【问题讨论】:
标签: javascript asp.net hyperlink onclientclick