Home Page
Articoli
Tips & Tricks
News
Forum
Archivio Forum
Blogs
Sondaggi
Rss
Video
Utenti
Chi Siamo
Contattaci
Username:
Password:
Login
Registrati ora!
Recupera Password
Home Page
Stanze Forum
ASP.NET 2.0 / 3.5 / 4.0
ExtJS e ASP.NET MVC
domenica 04 aprile 2010 - 17.12
Elenco Threads
Stanze Forum
Aggiungi ai Preferiti
Cerca nel forum
volperubbia
Profilo
| Senior Member
375
messaggi | Data Invio:
dom 4 apr 2010 - 17:12
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
Torna su
Stanze Forum
Elenco Threads
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 !