문제

As the topic mentions, I want to create a cancel button that takes me to the previous page. I am using the standard cancel button. I want a cancel button which only takes me one step back, to my previous page.

<wssuc:ButtonSection runat="server" ShowStandardCancelButton="true">
도움이 되었습니까?

해결책

You can do this with javascript easily and without server control. No postbacks ;)

 window.history.back();

But if you insist on a server control...

<asp:Button runat="server" OnClientClik="javascript:window.history.back();" Text="Cancel" Visible="True" />
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top