WHAT'S HOT
Prev | Current Page 322 | Next

Satheesh, N Kumar

"LINQ Quickly"

Visible = true;
lblTotalItems.Visible = true;
lblCount.Text = iCount.ToString();
}
else
{
lblCount.Visible = false;
lblTotalItems.Visible = false;
}
}
In the above code, the source for GridView1 is a LINQ query which fetches all items
for the selected category. The same query with the Count operator is used for getting
the total number items retrieved for the selected category.
The final output of the web page would be as follows:
LINQ with Outlook
In this appendix we will make use of LINQ to access an Outlook object and get
details of contacts.
Create a new .NET Console application using the File | New | Project | Windows |
Console application option in Visual Studio. Add a reference to the Outlook Object
Library to the project folder, as shown below.
LINQ with Outlook
[ 230 ]
The above image shows Microsoft Outlook 11.0 Object Library added to the project.
This provides an interface to access Outlook properties, which will let us collect
contact information from Outlook.
Add the following namespace to the project:
using Microsoft.


Pages:
310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329
życzenia urodzinowe pozycjonowanie pozycjonowanie busy do niemiec szkolenia bhp warszawa