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.
01 Apr 2019 01 Apr 2019 0 Comments  394 Views
ASP.Net  MVC  Form  Label
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) Label value from View to Controller in ASP.Net MVC Razor.

Label value cannot be sent to Controller directly and hence when the Submit Button is clicked and the Form is submitted, the Label value needs to be copied to a Hidden Field and then the value of the Label is extracted from the Hidden Field inside the Controller using Form Collection in ASP.Net MVC Razor.
29 Mar 2019 29 Mar 2019 0 Comments  439 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Html.Label and Html.LabelFor helper functions in ASP.Net MVC Razor.