ExtJS e ASP.NET MVC

domenica 04 aprile 2010 - 17.12

volperubbia Profilo | Senior Member

Ciao a tutti,
vorrei richiamare da javasscript con ExtJS una funzione ActionResult definita sul mio
controller. Ad esempio:

<HandleError()> _
Public Class UserController : Inherits System.Web.Mvc.Controller

<AcceptVerbs(HttpVerbs.Post)> _
Function Delete(ByVal ID As String) As ActionResult
' ELIMINO L'OGGETTO
' ....
' RITORNO NELLA VIEW Index
Return Index()
End Function

End Class

Nella mia View, il click su Delete chiama questo:

function DeleteUser(Key) {
Ext.Msg.confirm("Confefrma", "Eliminare " + Key + "?", function(btn) {
if (btn == 'yes') {
// ???
}
}, this);
}

Qualche idea?
Davide
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?

Dopo esserti registrato potrai chiedere
aiuto sul nostro Forum oppure aiutare gli altri

Consulta le Stanze disponibili.

Registrati ora !
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5