-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHomeController.vb
33 lines (26 loc) · 864 Bytes
/
HomeController.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Imports Microsoft.VisualBasic
Imports System.Web.Mvc
Imports DevExpress.Web.Mvc
Imports Sample.Models
Namespace Sample.Controllers
Public Class HomeController
Inherits Controller
Private list As New PersonsList()
<HttpGet> _
Public Function Index() As ActionResult
Return View(list.GetPersons())
End Function
<HttpPost> _
Public Function Index(ByVal selectedIDsHF As String) As ActionResult
'Get all selected keys from hidden input
Dim _selectedIDs As String = selectedIDsHF
Return View(list.GetPersons())
End Function
Public Function GridViewEditingPartial() As ActionResult
'Get all selected keys from e.customArgs on GridView callback
Dim _selectedIDs As String = Request.Params("selectedIDs")
ViewData("_selectedIDs") = _selectedIDs
Return PartialView(list.GetPersons())
End Function
End Class
End Namespace