所以我试图用asp在我公司的sharepoint站点中插入一个按钮。该按钮显示正确,但是当我单击它时,我无法让它转到某个页面。当我单击它时,它只会刷新页面。我希望它转到此链接... http://www.w3schools.com/。有人可以帮我解决这个问题吗?
<WebPartPages:WikiContentWebpart frametype="none" chrometype="None" runat="server" partorder="1" __WebPartId="{9852E1FB-0E97-47D1-BC63-0A8D2D953F9D}" id="g_9852e1fb_0e97_47d1_bc63_0a8d2d953f9d">
<content>
<div>
<asp:Button runat="server" Text="Add New Item" id="Button1" Font-Bold="True" onclick="window.location='http://www.w3schools.com/'"></asp:Button> </div>
</content>
</WebPartPages:WikiContentWebpart>