ASPSnippets RSS Feedhttps://www.aspsnippets.com/RSS.ashxLatest additions to the content that appears on ASPSnippets.(c) 2019, www.aspsnippets.com. All rights reserved.Filter WebGrid using DropDownList in ASP.Net MVCHere Mudassar Ahmed Khan has explained with an example, how to filter WebGrid using DropDownList in ASP.Net MVC Razor. By default, the WebGrid will display all records with Paging. When an option is selected in the DropDownList, the Controller’s Action method will be called and the records from the Database Table will be filtered using Entity Framework and displayed in WebGrid in ASP.Net MVC Razor.https://aspsnippets.com/Articles/Filter-WebGrid-using-DropDownList-in-ASPNet-MVC.aspxhttps://aspsnippets.com/Articles/Filter-WebGrid-using-DropDownList-in-ASPNet-MVC.aspxTue, 02 Apr 2019 08:43:40 GMTPass (Send) Label value from View to Controller in ASP.Net MVCHere 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.https://aspsnippets.com/Articles/Pass-Send-Label-value-from-View-to-Controller-in-ASPNet-MVC.aspxhttps://aspsnippets.com/Articles/Pass-Send-Label-value-from-View-to-Controller-in-ASPNet-MVC.aspxMon, 01 Apr 2019 08:17:27 GMTASP.Net MVC: Html.Label and Html.LabelFor exampleHere Mudassar Ahmed Khan has explained with an example, how to use Html.Label and Html.LabelFor helper functions in ASP.Net MVC Razor.https://aspsnippets.com/Articles/ASPNet-MVC-HtmlLabel-and-HtmlLabelFor-example.aspxhttps://aspsnippets.com/Articles/ASPNet-MVC-HtmlLabel-and-HtmlLabelFor-example.aspxFri, 29 Mar 2019 07:37:21 GMTConvert DataGridView to DataTable in Windows Forms Application using C# and VB.NetHere Mudassar Ahmed Khan has explained with an example, how to convert DataGridView to DataTable in Windows Forms (WinForms) Application using C# and VB.Net. When the Convert Button is clicked, first the Columns from the DataGridView are used to create a DataTable and then using a loop, data from each Row of DataGridView is inserted into the DataTable in Windows Forms (WinForms) Application using C# and VB.Net.https://aspsnippets.com/Articles/Convert-DataGridView-to-DataTable-in-Windows-Forms-Application-using-C-and-VBNet.aspxhttps://aspsnippets.com/Articles/Convert-DataGridView-to-DataTable-in-Windows-Forms-Application-using-C-and-VBNet.aspxFri, 29 Mar 2019 07:10:15 GMTSend DataGridView to Email in Windows Application using C# and VB.NetHere Mudassar Ahmed Khan has explained with an example, how to send DataGridView to Email in Windows Forms (WinForms) Application using C# and VB.Net. First a DataGridView will be populated with some data and then an HTML Table will be generated using the values from the DataGridView. Finally, the HTML Table string will be used to send the DataGridView’s data to Email in Windows Forms (WinForms) Application using C# and VB.Net.https://aspsnippets.com/Articles/Send-DataGridView-to-Email-in-Windows-Application-using-C-and-VBNet.aspxhttps://aspsnippets.com/Articles/Send-DataGridView-to-Email-in-Windows-Application-using-C-and-VBNet.aspxThu, 28 Mar 2019 08:24:40 GMTChange DataGridView Cell Color based on condition in Windows Application using C# and VB.NetHere Mudassar Ahmed Khan has explained with an example, how to change DataGridView Cell Color based on condition in Windows (WinForms) Application using C# and VB.Net. Inside the CellFormatting event handler of the DataGridView, various conditions are used to compare the Cell value of the DataGridView Row and the Cell color of the DataGridView is changed based on the conditions holding true.https://aspsnippets.com/Articles/Change-DataGridView-Cell-Color-based-on-condition-in-Windows-Application-using-C-and-VBNet.aspxhttps://aspsnippets.com/Articles/Change-DataGridView-Cell-Color-based-on-condition-in-Windows-Application-using-C-and-VBNet.aspxWed, 27 Mar 2019 08:31:13 GMTChange DataGridView Row Color based on condition in Windows Application using C# and VB.NetHere Mudassar Ahmed Khan has explained with an example, how to change DataGridView Row Color based on condition in Windows (WinForms) Application using C# and VB.Net. Inside the CellFormatting event handler of the DataGridView, various conditions are used to compare the Cell value of the DataGridView Row and the Row color of the DataGridView is changed based on the conditions holding true.https://aspsnippets.com/Articles/Change-DataGridView-Row-Color-based-on-condition-in-Windows-Application-using-C-and-VBNet.aspxhttps://aspsnippets.com/Articles/Change-DataGridView-Row-Color-based-on-condition-in-Windows-Application-using-C-and-VBNet.aspxWed, 27 Mar 2019 08:24:52 GMTAdd RowSpan to GridView in ASP.NetHere Mudassar Ahmed Khan has explained with an example, how to add RowSpan to GridView in ASP.Net using C# and VB.Net. This article will illustrate how to dynamically merge common Cells of GridView using RowSpan property in ASP.Net using C# and VB.Net.https://aspsnippets.com/Articles/Add-RowSpan-to-GridView-in-ASPNet.aspxhttps://aspsnippets.com/Articles/Add-RowSpan-to-GridView-in-ASPNet.aspxTue, 26 Mar 2019 08:18:46 GMTDisplay BLOB as Image using AngularJSHere Mudassar Ahmed Khan has explained with an example, how to display BLOB as Image using AngularJS ng-src directive in ASP.Net MVC Razor. This article will illustrate how to upload and send files to Web API using AngularJS $http service and HTML5 FormData and then convert the Image to BLOB format and display as Image using AngularJS ng-src directive in ASP.Net MVC Razor.https://aspsnippets.com/Articles/Display-BLOB-as-Image-using-AngularJS.aspxhttps://aspsnippets.com/Articles/Display-BLOB-as-Image-using-AngularJS.aspxTue, 26 Mar 2019 08:14:25 GMTMerge multiple Header Columns (Cells) in DataGridView using C# and VB.NetHere Mudassar Ahmed Khan has explained with an example, how to merge multiple Header Columns (Cells) in DataGridView in Windows Forms (WinForms) application using C# and VB.Net. There is no direct way to merge multiple Header Columns (Cells) in DataGridView and hence this article will illustrate how to achieve the same by drawing a Rectangle over the existing Header Columns (Cells) in DataGridView using C# and VB.Net.https://aspsnippets.com/Articles/Merge-multiple-Header-Columns-Cells-in-DataGridView-using-C-and-VBNet.aspxhttps://aspsnippets.com/Articles/Merge-multiple-Header-Columns-Cells-in-DataGridView-using-C-and-VBNet.aspxMon, 25 Mar 2019 04:33:36 GMT