Browse by Tags

Using Value Providers in ASP.NET 4.5
16 September 13 04:52 PM | bipinjoshi
ASP.NET 4.5 Web Forms support model binding. A part of the overall model binding features are Value Providers. A value provider grabs values from a request and binds those values with method parameters. ASP.NET provides several inbuilt value providers...
Using HTML5 Date Input Type Inside GridView
26 August 13 09:55 AM | bipinjoshi
HTML5 provides several new input types such as email, URL and Date. While using Date input type a textbox is displayed as a date-picker by browsers such as Chrome and Opera. Such a textbox uses dates in yyyy-MM-dd format (ISO format) and this formatting...
Validating Multiple Data Model Properties
14 August 13 08:42 AM | bipinjoshi
In my previous article I wrote about displaying model state errors inside databound controls such as GridView. In that example we used data annotation validators to perform the validations. While data annotation validators do their job quite well they...
Displaying Model State Errors Inside GridView Columns
07 August 13 09:31 AM | bipinjoshi
ASP.NET 4.5 web forms support model binding features. Additionally they can make use of model validation using data annotation validators. The validation errors thrown by data annotation validators can be easily displayed in a web form using ValiationSummary...
GridView Paging with Skip() and Take()
05 July 13 11:02 AM | bipinjoshi
Paging is one of the most commonly used features of ASP.NET GridView control. ASP.NET 4.5 model binding features allow you to bind a GridView with data returned by a custom method. This method is specified using the SelectMethod property and can make...
Select, Zip and Download Files displayed in a GridView
29 May 13 10:41 AM | bipinjoshi
Sometime back I wrote an article that shows how to zip and unzip files programmatically using System.IO.Compression classes. Using these classes along with ASP.NET controls you can allow user user to select one or more files from a list and then programmatically...
Filed under: ,
Edit GridView data without displaying default Edit, Update and Cancel buttons
15 April 13 09:43 AM | bipinjoshi
ASP.NET GridView control provides an easy way to edit and update data with the help of CommandField column type. The default CommandField arrangement is such that the Edit, Update and Cancel buttons are displayed in a column. The problem with this design...
Convert GridView Data to CSV using jQuery
08 April 13 09:40 AM | bipinjoshi
At times you may want to allow the end user to save GridView data into CSV format for further processing (say for opening later in Excel). Doing so using server side code is quite common. However, this requires an extra round trip to the server. You can...
Filed under: , ,
More Posts