To format data fields of a GridView on a per row basis, you need to use the RowDataBound event. 1. Simply select your GridView and create a RowDataBound event in the property. Just as the description indicated, this event is fired when a row is bounded. 2. Now you can format your cells for each
Continue reading Formatting Fields of a GridView per Row
Tag: .NET
Exception regarding the paging property of a GridView
Today I found a solution for the following exception: “The data source does not support server-side data paging.” This happens when I set the ASP.NET GridView’s paging property to true and data source was bounded with a data reader. Exception was thrown because you cannot use the paging feature when the grid is bounded to
Continue reading Exception regarding the paging property of a GridView
How to Load Embedded Report Resource for Publishing
In the previous post, I have discussion how you could build a report on ASP.NET. The report file is basically an xml file with *.rdlc extension. This file basically describes your layout of your report and other essential information. But when you publish/deploy your web application with the code I have given in the previous
Continue reading How to Load Embedded Report Resource for Publishing
Use Exchange Managed API to Access a MS Exchange Server – Part 2
In the Exchange WebSerivce Managed API, there is a class called, EmailMessage, which we will use it to bind an E-Mail with an exchange web service, so that we can do some operations on that mail. First, we need to connect to an exchange web service with necessary credential information. private ExchangeService service = new
Continue reading Use Exchange Managed API to Access a MS Exchange Server – Part 2
Use Exchange Managed API to Access a MS Exchange Server – Part 1
It is tedious and error-prone to write codes that consume a Microsoft Exchange web service by using standard support from the Visual Studio. For example, you want to retrieve all the emails from a MS Exchange server, and you have implemented your code to find items in the inbox like the following: public static List
Continue reading Use Exchange Managed API to Access a MS Exchange Server – Part 1