Nov 19, 2008, 9:37 AM
ASP.NET MVC Button Click question
Dead friends!
How can I redirect user to specific action by clicking the <ext:Button/>?
I make this:
How can I redirect user to specific action by clicking the <ext:Button/>?
I make this:
<script>
function logout() {
window.open('<%=Url.Action("Logout", "Interface")%>', '_top');
}
</script>
<ext:Button Icon="UserGo" Text="Exit" runat="server">
<Listeners>
<Click Fn="logout" />
</Listeners>
</ext:Button>
But for me it looks so complex. Is there a simply way to do this, may be with AjaxEvent etc.???