Search Results

C# .NET - Hash Algorithms - MD5, SHA1, SHA256, SHA512

By Utkarsh Patel on 11-May-09 23:42. View Comments
Tags: ,
One of the great problems I have had with OO languages such as .NET and Java is that some tasks, that are as simple as calling a function in other languages, are complicated to no end. One such problem is with the different hash functions in .NET available via System.Security.Cryptography. In PHP if I need to get the MD5 of a string I simply call the built in MD5 function. In .NET I need to build my own MD5 function using System.Security.Cryptography and that, even though I understand why it is the way it is, can get a little annoying after a while. I have taken the liberty of simplifying this process by creating a HASH class that can be plugged into your programs as either a new class or by creating a hash.dll of out of it. The code lets you call MD5, SHA1, SHA256 and SHA512 functions and takes care of the process for you.

C# .NET - Creating a Custom MessageBox Dialog

By Utkarsh Patel on 19-Apr-09 05:57. View Comments
Tags: ,
MessageBox.Show() is a great way get user confirmation before performing certain tasks in .NET. However what if your requirements are more complex then simply getting a YES or NO response? What if you want to get the user to enter in a password? Or you just want to change the design of the existing MessageBox to go with the design of your application. Creating a custom MessageBox will solve this problem and bring greater functionality to your application. Article photo

A simple Ajax with .NET tutorial

By Alex Nazarie on 19-Feb-09 16:47. View Comments
Tags: ,
Start Visual Studio 2008 and create a new ASP.NET Web Application project. The opening screen is your default page with one div layer. To begin using AJAX functionality, find the 'AJAX Extensions' tab in the ToolBox and drag a 'Script Manager' on to your page. Once the Script Manager has loaded, drag an 'Update Panel' on to the page and take note of where the Update Panel is located along with its width and height, as any AJAX functionality will only take place on this panel. Article photo

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License.