Using Select Method on a DataTable in C# .Net

by a Guest on October 18, 2010 0 Comments

In previous article I populated a DataTable called 'leagueTable' with data read in from a comma delimited text file and performed operations on this data to get it into the format I wanted.

The league table has the name of the team and number of wins and draws home and away ready to calculate the relative strengths of each result. For each home team I will re evaluate the rating of its opponent based on all its other away results excluding the current fixture.

For example the fixture Team A v Team B, would require re evaluating all away matches for Team B excluding the current one against Team A. To do this I need to run a query on the DataTable that holds all the result data called 'importResultsTable'.

One feature of the DataTable is that it can perform SQL queries on the data it holds in memory by ...

read more

AJAX in C# ASP.NET Web Pages

by a Guest on October 18, 2010 0 Comments

What is AJAX? AJAX stands for asynchronous JavaScript and XML, and is a technology that allows your ASP.Net web pages to work much more dynamically.

An AJAX-enabled website has three major benefits:

 

  • Less bandwidth use
  • More responsive
  • More like a desktop application

 

A normal ASP.Net page does a full postback whenever certain events are triggered, more specifically button Click events. What that means is the state of the whole page is sent to the server, updated, and then the whole page is returned to display to the user.

What AJAX does is allow the webpage to do a postback on small parts of the page. By creating an UpdatePanel, only the part of the page inside of it will postbacked. Thus the rest of the page can remain intact.

The obvious benefit of not having to resend the entire page is the reduced use of bandwidth. Also not ...

read more

Writing a URL Checker in C#

by a Guest on October 18, 2010 0 Comments

Leveraging the .NET Framework, developers can make some interesting .NET programs to interact with the web. In this case we are going to make a simple application that will check if a link is valid.

The definition of a valid link varies depending on who you ask. For some, a valid link is a URL that takes the user somewhere, anywhere at all. For others it is a URL that points to a valid page, which means error pages (404, etc.) are no good. We will cover mainly the first case, but some of the second case.

The first of the conditions is to check if a link takes the user anywhere. To do that in C#.NET, the application will try to visit the page. If it finds data there, then it will determine that the link is at least pointing to some page in the web. If it ...

read more

Encrypting Data With a Symmetric Key in C#

by a Guest on October 18, 2010 0 Comments

Protecting data is important in many software applications. The field of cryptography has come up with methods to keep data secure, one of which is symmetric key encryption. Symmetric key encryption in natively supported in C#.NET. But first, what is symmetric key encryption?

Symmetric encryption is a method to encrypt data. More specifically, a single key is used for encryption and decryption. This allows the process to be fast and to work on large amounts of data. The size of the key is important since a long key ensures attempts to decrypt the data without the key become infeasible.Even more important than the key is the symmetric key encryption algorithm. Let's go over some of the most common ones:

DES is an outdated algorithm used by older systems. The DES algorithm uses a relatively short key which makes it vulnerable to cracking attempts by today's fast ...

read more

C# Progress Bar Tutorial

by a Guest on October 18, 2010 0 Comments

Ok so as I explained above we are going to be writing a program in Visual C# that allows a progress bar to advance by button click or by a timer that we have set up.

1.First thing we want to do is open up our Visual Studio or C# Express Edition which you can download from Microsoft's website. Please note that Dreamspark users are allowed to download a free copy of Visual Studio from their campuses online store. Dream Spark is for Students currently enrolled in some kind of education

2.Second your going to want to create a new project and name it whatever you see fit I named mine C Sharp tutorial 1

3.Make a button by opening the tool box which should be located on the left side of the Visual Studio/C# Express Edition Interface and double click on it. Next scroll ...

read more

Nivo Slider is One Awesome jQuery Image Slider

by a Guest on October 3, 2010 0 Comments

Nivo Slider is the most awesome jQuery image slider, manual and auto slide transaction with cool effect. jqFancyTransitions is easy-to-use jQuery plugin for displaying your photos as slideshow with fancy transition effects.

Nivo Slider Home Page

Do You Prefer Visual Basic over C#?

by a Guest on August 16, 2010 0 Comments

Do you prefer using Visual Basic instead of C#? Does your company not allow the coding in C#?

Page 1 of 1.

Post categories

Post archives