C#


Below are some code snippets / recipes that I have had prepared for myself and I thought of sharing with ya’ll as a firs post in C# category. If you do not find one that you are looking for or want more, just drop me a request or comment below, I’d try to address the request.

Example Description Download
Global Variables in C# Different scenarios as your requirement and need zip
Text to SQL Server Read a text file and insert all records in SQL Server. zip
Update combobox items according to selection of column-name in other combobox zip
MySQL(SQL Server) To MsAccess Copy table of Ms-Access from the data of the MySQL zip
(Basic) Reading Ms-Excel spreadsheets Reading data from Excel sheets using C# zip
Updating Ms-Excel spreadsheets Updating data of Excel sheets using C# zip
Accessing .config file The app.config can be used to access some setings (like conn string) anywhere in the project zip
MySQL (SQL Server) database to CSV Convert record set from MySQL query to csv file zip
String Delimiter Various illustrations in a single project, demonstrating ways to use the String.Split() function zip
Date – Times Gets the beginning and ending dates of

  • This Week
  • Last Week
  • This Month
  • Last Month
  • Last 6 Months
  • This Year
  • Last 3 Years
zip
Update/Delete CSV Here is the work around for Updating / Deleting records from CSV, which usually is just a file IO operation otherwise zip
json json in C# using JSON .NET & LINQ zip
json serialization serialization/de-serialization of json zip
Stateful iterations By using yield keyword, difference b/w IEnumerable and IEnumerator zip

Unobtrusive validation from scratch in ASP.Net 4.5 WebForms


Jupaol’s blog post

Repository Index


I am going to share all the code snippets that I have. At the moment, this page is being updated, every, single, day. You can download most of the archives from here, at once.

C#
Most posts in this section would be describing Mid to advanced level of features of C#, mainly as
a console application [View]
ASP.NET
Most posts in this section would be describing Mid to advanced level of features of ASP.NET / C# ,
mainly as simple web projects [View]
LINQ
Mostly in this section would be describing features of LINQ, mainly as a C# console application [View]
API / SDK
Mostly in this section would be describing features of in-demand tools & libraries like TFS, twitter, facebook, using C# mainly [View]
Modern Web & Windows App
Most posts in this section would be describing javascript/HTML 5 – CSS 3 for Web Apps and/or Windows Store Apps [View]
telerik ASP.NET AJAX Controls
This section would be talking about ASP.NET AJAX Controls in, code snippets.
Windows Phone
Most posts in this section would be describing Windows Phone, Applications