Results 1 - 5 of 291
18 Apr 2019 19 Apr 2019 0 Comments  215 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) Array from Controller to View using ViewBag in ASP.Net MVC Razor.

The List Collection will be populated from Database using ADO.Net inside the Controller and it will be converted to Array and passed to the View using ViewBag.

Later in View, the Array will be iterated and the data will be displayed with the help of HTML Table in ASP.Net MVC Razor.
18 Apr 2019 19 Apr 2019 0 Comments  196 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) List from Controller to View using ViewBag in ASP.Net MVC Razor.

The List Collection will be populated from Database using ADO.Net inside the Controller and it will be passed to the View using ViewBag.

Later in View, the List Collection will be iterated and the data will be displayed with the help of HTML Table in ASP.Net MVC Razor.
18 Apr 2019 19 Apr 2019 0 Comments  211 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) DataTable from Controller to View in ASP.Net MVC Razor.

The DataTable will be populated from Database using ADO.Net inside the Controller and it will be passed to the View as Model.

Later in View, the DataTable will be iterated and the data will be displayed with the help of HTML Table in ASP.Net MVC Razor.
16 Apr 2019 16 Apr 2019 0 Comments  251 Views
Here Mudassar Ahmed Khan has explained with an example, how to get Total Rows Count for GridView with Paging in ASP.Net using C# and VB.Net.

The GridView.Rows.Count property gets the current Page Row Count and hence in order to get the Total Rows Count for GridView with Paging enabled, the Total Rows Count is determined from the DataSource inside the OnDataBound event handler in ASP.Net using C# and VB.Net.
16 Apr 2019 16 Apr 2019 0 Comments  252 Views
Here Mudassar Ahmed Khan has explained with an example, how to display Count of Total number of records in ASP.Net GridView using C# and VB.Net.

A Label will be placed below the GridView control and inside the OnDataBound event handler, the Count of Total number of records in ASP.Net GridView will be determined and displayed using C# and VB.Net.
Results 1 - 5 of 291