Lets understand how to embed code formatting in Asp.net Application. This can be useful while user enters the code online, and we need to format the code and able the preview the same. Example, on online forum or blog if user enters code, application should be smart to understand the part of code and able to format. This Code Format utility used Manoli Csharp Format, I have used the sourcecode and demonstrate how this can be useful to implement code format in asp.net application. Step1: Download Sourcecode from Manoli Online Code Format To accomplish this task, download source code of manoli csharpformat. Direct link for downloading Sourcecode of Manoli CsharpFormat Step2: Compile the Class Library Project to generate binaries. Step3: Create an asp.net application, while will be used to display Formatted Code. Step4: Right Click project and Add Reference. - Add Reference of binaries generated by Manoli Code Format Class Library Project Step5: Add csharp.css file available with Manoli Code Format Sourcecode. - Right Click and Add Existing Item and browse through location where csharp.css file is located. (This file will be available with sourcecode) - And add link reference in default.aspx <link href="csharp.css" rel="stylesheet" type="text/css" /> After adding .dll file and .css file your solution explorer. Step6: Add the 2 textbox controls, 1 button control and 1 label control. 2 – Textbox control, 1 for taking input and other for displaying generated html code. 1 – Label control for displaying preview. Step7: Add ValidateRequest="false" in page derective for taking HTML Input <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Step8: Looking class diagram of Manoli Code Formatter - You can create object for each language you wish to format. Step9: Writing a Code to make everything works. protected void btnPreview_Click(object sender, EventArgs e) { |
Collection and sharing of, interview questions and answers asked in various interviews, faqs and articles.....
how to embed code formatting in Asp.net Application?
how to trim Characters in SQL Server ?
If you are looking for following solution than probably this post can help you out:
Note: The Example I am going to discuss is the solution for above mention criteria, understand it and you can be able to derive solution for your problem. I want to sort a string like this. Nodes1-49 100-249 1000-2499 10000+ 250-499 2500-4999 50-99 500-749 5000-9999 750-999 Step1: To undergo this task I need to extract characters from left till this "-" or "+" character. Let find length till this "-" select distinct MyExpr,charindex('-',MyExpr)-1 as Nodes from MyTable
So I also require separate statement for select distinct MyExpr,charindex('-',MyExpr)-1 as Nodes from MyTable
Now lets extract part of string by using substring function and case select statement. select distinct MyExpr as Nodes, substring(MyExpr,1,( case when charindex('-',MyExpr)-1 = '-1' then charindex('+',MyExpr)-1 else charindex('-',MyExpr)-1 end ) ) as 'NodesSort' from MyTable Order by 'NodesSort'
So this gives us extraction of Part of string from string. You can also see trim right portion of string.
Casting string to int and applying order by for sorting. select distinct MyExpr as Nodes, -- SORT Logic cast( substring(MyExpr,1,( case when charindex('-',MyExpr)-1 = '-1' then charindex('+',MyExpr)-1 else charindex('-',MyExpr)-1 end ) ) as int) as 'NodesSort' from MyTable order by 'NodesSort'
|
What's next for csUnit?
The next area we are looking at is usability. We'd like to improve usability significantly.
For instance, as test suites grow it may become more and more time consuming to locate a particular test or test fixture. The next version of csUnit will therefore feature an easy to use search capability, available for both the stand-alone GUI and the addin for Visual Studio.
We are also putting quite some effort into improving the test tree view. We believe that all users will benefit from improvements in this area.
And finally, csUnit has become very feature rich over time. Some people prefer a simpler UI. We want to serve both groups of users the ones who prefer the rich functionality, and the ones who prefer to keep it simple. The idea is to add some configurability to the UI so that depending on your preference more or less elements become visible.
Stay tuned! And if there is a feature you'd like to see, don't hesitate to visit csUnit's web site and follow the link to "Suggest a feature" that you can find on most pages.
What's the alternative of MySQL ? Because MySQL may be closed-source
For instance, if you want to continue using an open-source database, PostgreSQL might be an alternative worth looking at. Developing for the Microsoft platform, it offers native interfaces for C, C++, and .NET, and even the "good old" (?) ODBC is available.
Tips for Debugging Custom Actions in dotnet
Tip 2: In the dialog box for attaching the debugger to a process make sure you tick "Show processes from all users" as it might be that the msiexec.exe instance you are interested in is not displayed.
What is Union in C#?Explain with sample code
One can simulate union in C# with the help of StructLayout and FieldOffset attributes.
StructLayout attribute allows the user to control the physical layout of the data fields of a class or structure. Specify the LayoutKind the first parameter as LayoutKind.Explicit.
Tag each field with FieldOffset attribute. The attribute must be applied so that the type members are overlaying the same memory area.
using System;
using System.Runtime.InteropServices;
// Above namespace required for StructLayout attribute
namespace UnionTest
{
class Program
{
static void Main(string[] args)
{
Union test = new Union();
test.x = 256;
//Setting value 256 makes high-order byte to be set to 1. Byte ranges up to 255.
Console.WriteLine("Low:" + test.lowx + "\nHigh:" + test.highx);
}
}
[StructLayout(LayoutKind.Explicit,Size=2)]
public struct Union
{
//2 bytes
[FieldOffset(0)]public short x;
//1 byte
[FieldOffset(0)]public byte lowx;
//1 byte -->represents high-order byte.
[FieldOffset(1)]public byte highx;
}
}
What is Local Type Inference in C# 3.0?
C# 3.0 has new feature called "Local Type Inference". Type Inference lets compiler decide the data type of variable/object. Variable initializing data value helps compiler to decide the data type. C# 3.0 introduces new keywaord "var" to declare such variables. No explicit type declaration is required.
Local Type Inference has type inference only for local variables. One cannot declare class-/struct-level fields with keyword "var". "var" cannot act as return type for function and cannot appear in function parameter i.e. no "var" should be used in function signature.
namespace TypeInference
{
class Program
{
static void Main(string[] args)
{
var i = 5;
var intArray = new int[] { 1, 2, 3, 4, 5 };
//Variables declared with var cannot be assigned to null if no type has been inferred.
var str = default(string);
Console.WriteLine("Data Type Of i:"+i.GetType().Name);
Console.WriteLine("Data Type of intArray:" + intArray.GetType().Name);
//Console.WriteLine("Data Type of str:" + str.GetType().Name); -->Null Reference Exception
str = "";
Console.WriteLine("Data Type of str:" + str.GetType().Name);
}
}
}
What is Extension Methods in C# 3.0?
Developer code for assemblies. Compile it & publish it for client use. User of assembly may like to have some additional functionality in data types of the assembly. e.g int or Int32 do not have function to convert integer to complex number. ComplexNumber is the new data type defined by user.
Now with C# 3.0 has provided with the concept of extension methods. Extension methods enable us to extend the functionality of data types already defined. No source code of the assembly is available to modify & recompile the assembly. Still one can extend the data types functionality.
Inheritance also provides capability to extend the functionality but the extended functionality is available only for derived classes & not to the base class. e.g Consider I'd like to have a ToInt function in String class. If I use inheritance approach, I have to create new derived type. So I cannot use methods of derived type on my String objects.
Extension methods are written in static class. The method should also a static method. First parameter of the method must be of type being extended. The first parameter must have this keyword before it.
See the code below.
{
public static Complex ToComplex(this int val)
{
Complex temp = new Complex();
temp.Real = val;
return temp;
}
}
Complex is the type defined as follows:
{
public int Real;
public int Imag;
public override string ToString()
{
return (Real.ToString() + "+i" + Imag.ToString());
}
}
Use the method ToComplex for int or Int32.
{
int i = 5;
Console.WriteLine(i.ToComplex().ToString());
}
Sealed classes can take advantage of extension methods. LINQ makes use of extension methods defined in Enumerable static class. The class extends functionality of objects implementing IEnumerable interface. To use the extension methods from Enumerable class refer the assembly System.Core.
how to Fetch System Information in C#?
System.Windows.Forms namespace has SystemInformation class. The class has various static properties. To get information about the current system environment, use the class.
To determine the startup mode of the system, use BootMode property. The property can have values : Normal, FailSafe or FailSafeWithNetwork. All these values are defined in BootMode enumeration of System.Windows.Forms namespace.
using System.Windows.Forms;
//Add reference to System.Windows.Forms assembly.
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(SystemInformation.BootMode.ToString());
}
}
}
To access the computer name, use ComputerName property.
To find out number of displays connected to machine, MonitorCount propery will help us.
Availability of mouse can be checked with the help of property MousePresent.
{
if(SystemInformation.MousePresent)
Console.WriteLine("System has the mouse connected");
}
To check for network connection availability, use Network property.
Console.WriteLine("System is connected to the network.");
What is Delegates in C#? Explain Delegates
Delegates in C#
Pointer is a variable, which stores address of some memory location. The memory location can be the storage for some value or beginning of function. When it points to function, it is function pointer. Function pointer has address of the function.
Function pointers are not safe. In thousand lines of code, if we have to invoke the function using function pointer, we cannot assure that the pointer points to function without going through the code.
We cannot ensure the number of parameters to the function or the order of parameters. Order of parameters refer to data types. What will happen if we invoked a function with function pointer & pointer is not pointing to function? What will happen if we invoked a function with function pointer & number of arguments are more or less passed? What will happen if we invoked a function with function pointer & order of parameters is wrong? (e.g. Function accepts int first & we pass string first.)
In all cases, our application will crash. In essence, Function pointers are not type-safe.
.NET has got a concept of delegates which are type-safe function pointers with ability to point to multiple functions. Delegates are declared in C# using keyword delegate.
Declaration of delegate is just like function declaration. That is, the delegate must be declared with return data type & parameters. Parameter names are not relevant.
Internally, a class "DisplayDelegate" is generated which derives from System.MulticastDelegate. System.MulticastDelegate derives from System.Delegate. System.Delegate is the base class. One can create the object of "DisplayDelegate" class. The constructor accepts the function which has same signature as that of delegate declaration.
namespace DelegateDemo
{
public delegate void DisplayDelegate(string msg);
class Program
{
static void Main(string[] args)
{
DisplayDelegate del = new DisplayDelegate(Show);
del("Hello, delegate!!!");
//Or del.Invoke("Hello, delegate!!!");
}
static void Show(string str)
{
Console.WriteLine(str);
}
}
}
Let's see, how delegates are type-safe? When one creates a delegate object, the delegate is aware of the parameters required. Wherever you call the function using delegate, compiler will not compile the program if,
- function specified in constructor is not with appropriate function signature.
- the number of parameters are less or more while invoking the function.
- the order of parameters is not appropriate.
System.Delegate class has two static methods Combine and Remove. Use the methods to provide the delegate with multiple functions.
using System.Windows.Forms;
namespace DelegateDemo
{
public delegate void DisplayDelegate(string msg);
class Program
{
static void Main(string[] args)
{
DisplayDelegate del = new DisplayDelegate(Show);
DisplayDelegate del1 = new DisplayDelegate(Print);
del = (DisplayDelegate)Delegate.Combine(del, del1);
del("Hello,World!!!");
del = (DisplayDelegate)Delegate.Remove(del, del1);
del("Hi!!!");
}
static void Show(string str)
{
MessageBox.Show(str);
}
static void Print(string msg)
{
Console.WriteLine(msg);
}
}
}
System.Delegate has two properties Method and Target. The derived class have these properties inherited. "Method" property gets the method represented by delegate. "Target" gets the instance/object on which the delegate operates. "Target" returns null for static methods.
{
DisplayDelegate del = new DisplayDelegate(Show);
Console.WriteLine(del.Method.Name);
if(del.Target!=null)
Console.WriteLine(del.Target.ToString());
}
If delegate has multiple functions, one can use GetInvocationList method of System.Delegate class to retrieve System.Delegate[] array.
{
DisplayDelegate del = new DisplayDelegate(Show);
DisplayDelegate del1 = new DisplayDelegate(Print);
del = (DisplayDelegate)Delegate.Combine(del, del1);
foreach (DisplayDelegate minf in del.GetInvocationList())
{
Console.WriteLine(minf.Method.Name);
}
}
CodeProject-New articles added Last week
New articles added Last week
Combo & List Boxes
- Read Only Combo Box Provider - RanceDowner1234How to create a read only combo box user IExtenderProvider (Unedited)
VB (VB 8.0, VB), .NET (.NET, .NET 2.0), WinForms, Dev, Intermediate
Dialogs and Windows
- A Plugin Wizard Framework - Marc CliftonA wizard framework that supports plugins for the wizard pages (Unedited)
C#, Windows, WinForms, Design, Arch, Dev, Intermediate
Grid & Data Controls
- Extending the DataGridView - Chris_McGrathA few minor modifications to improve the DataGridView (Unedited)
C# (C# 1.0, C# 2.0, C# 3.0, C#), .NET (.NET, .NET 2.0, .NET 3.5, .NET 3.0), WinForms, Beginner - Editable and Multi-Functional Datagridview - ViramThe article or rather a code snippet demonstrates a simple application of insert, update, delete using datagridview. There are some unique features in this datagridview.
VB.NET 2.0, Dev, Intermediate
Miscellaneous
- Painless Persistence of Windows Forms positions - Phil Martin...A no-pain way of retaining your Windows Form positions between application runs (Unedited)
C# (C# 1.0, C# 2.0, C# 3.0, C#), .NET (.NET, .NET 2.0, .NET 3.5), WinForms, Dev, Beginner, Intermediate
Status Bar
- Read and Update CAPS or NUM lock status from your application - Bilal HaiderIt describes how to read and update the toggle keys (NUM lock, CAPS lock etc) using WIN32 API in a C# application (Unedited)
C# (C# 1.0, C# 2.0, C# 3.0, C#), WinForms, Win32, Dev, Intermediate
Ajax and Atlas
- Ajax Page Life Cycle Event Handler Arguments - asithangaeExplained about client event handler arguments of partial page render - PageRequestManager (Unedited)
Javascript, CSS, HTML, XHTML, .NET (.NET, .NET 1.1, .NET 2.0, .NET 3.0), ASP, ASP.NET, WebForms, Ajax, Dev, Beginner, Intermediate - Using AJAX in Microsoft MVC applications (with Entity Framework) - sea_catyThe article shows how to use AJAX in your applications based on the Microsoft MVC Framework.
C# (C# 3.0, C#), Javascript, SQL, Windows, .NET (.NET, .NET 3.5), ASP.NET, Visual Studio (VS2008, VS), ADO.NET, Ajax, Dev, Intermediate - How to call Server Side function from Client Side Code using PageMethods in ASP.NET AJAX - SouvikHow to call Server Side function from Client Side Code using PageMethods in ASP.NET AJAX (Unedited)
C# (C# 1.0, C# 2.0, C# 3.0, C#), ASP.NET, ADO.NET, WebForms, Beginner, Intermediate
ASP.NET
- A Chat with ASP.NET and Ajax - codegod.deAn article on developing a Chat-application with ASP.NET and Ajax
C#, .NET (.NET 2.0, .NET), Ajax, ASP.NET, Dev, Intermediate - Developing Facebook Application with .NET - part 2 - aleksisaDeveloping Facebook Application with .NET - part 2 - FBML tabs, setFBML, FB:multi-friend-selector, setRefHandle, PublishAction and much more... (Unedited)
SQL, HTML, C#, Windows, .NET, SQL, ASP.NET, Arch, DBA, Dev, Design, Beginner, Intermediate - Office Web Component v11.0 Spreadsheet And AJAX Interoperatibility Part 1 - Gautam SharmaThis article demonstrate, how OWC and AJAX can be used to store spreadsheet content as XML data into database.This XML in turns rendered as spreadsheet in OWC control from database source. (Unedited)
VB, Office, WebForms, Ajax, ASP.NET, Visual Studio (VS2005, VS), Dev, Design, Advanced - UFrame: goodness of UpdatePanel and IFRAME combined - Omar Al ZabirUFrame makes a DIV behave like an IFRAME that can load any ASP.NET/PHP/HTML page and allows all postback and hyperlink navigation to happen within the DIV - a painless way to make regular pages fully AJAX enabled (Unedited)
Javascript, CSS, HTML, XHTML, WebForms, Ajax, ASP, ASP.NET, Design, Arch, Intermediate, Advanced
Custom Controls
- How to make Google Map Tooltip with Flyout - Ned ThompsonThis article will show how to use Flyout to make a cool tooltip on a map, just like the one in Google maps.
Javascript, CSS, HTML, ASP.NET, Dev, Design, Beginner, Intermediate
Silverlight
- Reusable Silverlight Popup Logic - Chuck KinnanEncapsulated Popup logic for easy reusable Silverlight popups. (Unedited)
C# (C# 3.0, C#), ASP.NET, Dev, Beginner
Web Security
- .NET Role-Based Security in a Production Environment - Ralph in BoiseEdit web.config to Update the Data Provider for Shared Hosting with Role-Based Security: SQL Server, ODBC, Active Directory, ADAM, SQLite, MySQL, Access, XML (Unedited)
.NET (.NET 2.0, .NET 3.0, .NET 3.5, .NET), WebForms, ASP.NET, Arch, Dev, Beginner, Intermediate
Web Services
- Web Services For Ecologists - Andrew Birt, Rahul RavikumarA framework for distributing scientific models over the web (Unedited)
C++, C#, Windows, Visual Studio, ATL, ASP.NET, Beginner
SharePoint Server
- Handling Error Centrally in a SharePoint Application - Anupam RankuAn article on handling errors centrally in a SharePoint application, using IHttpModule.
XML, C#, Windows, .NET (.NET 2.0, .NET), ASP.NET
Audio and Video
- Multimedia PeakMeter control - Ernest LaurentinMultimedia PeakMeter control - .NET version (Unedited)
C# (C# 1.0, C# 2.0, C# 3.0, C#), .NET CF, .NET, GDI+, WinForms, Design, Dev, Beginner - Hands Gesture Recognition - Andrew KirillovSome ideas about Hands Gesture Recognition in still images and video feeds, using the AForge.NET framework (C#).
C#, Windows, .NET (.NET 2.0, .NET), WinForms, GDI+, DirectX, Arch, Dev, Intermediate
GDI+
- GDI+ Code Generator - Richard BlytheAllows the user to draw vector graphic shapes, then converts them to GDI+ code. (Unedited)
C# (C# 1.0, C# 2.0, C# 3.0, C#), .NET, GDI+, Design, Intermediate
SQL Reporting Services
- A Simple GUI Tool for SQL 2005 Reports deployment without using BI Development Studio - Ahmed IGA Simple GUI Tool for SQL 2005 Reports deployment without using BI Development Studio (Unedited)
C#, SQL, Windows, SQL (SQL 2005, SQL), DBA, Dev
.NET Framework
- .NET 2.0 Configuration and Provider Model - Sergey SorokinUse .NET 2.0 configuration features for building a pluggable provider framework for your application. (Unedited)
C# (C# 1.0, C# 2.0, C# 3.0, C#), .NET (.NET, .NET 2.0, .NET 3.5, .NET 3.0), Visual Studio (VS2008, VS), Arch, Dev, Design, Intermediate
Libraries
- Genetic Algorithm Library - Mladen JankovicFramework for genetic algorithms (Unedited)
C++, Windows, Win32, Visual Studio, MFC, STL, Arch, Dev, Design, Intermediate
LINQ
- Poor Man's Linq in Visual Studio 2005 - QwertieA way you can use Linq to Objects in C# 2.0 with .NET Framework 2.0 (Unedited)
C# (C# 2.0, C#), .NET CF, .NET (.NET, .NET 2.0), Dev, Advanced - Change The Default CommandTimeout of LINQ DataContext - S. M. SOHANAn article that shows a simple way of changing the default value of the DataContext CommandTimeout
SQL, C# 3.0, Windows, .NET 3.5, ADO.NET, LINQ, Dev, Intermediate
Windows Communication Foundation
- WCF Error Handling and Fault Conversion - Sasha GoldshteinThis article describes the WCF error-handling paradigm, and provides a mechanism for automatic mapping of exceptions to WCF faults.
C#, Windows, WCF, Arch, Dev, Intermediate, Advanced
Windows Powershell
- Saving Powershell commands across sessions - Gideon EngelberthA set of functions to provide the ability to save commands to be used in future Powershell sessions. (Unedited)
Windows (WinXP, Win2003, Vista, Windows), .NET (.NET 2.0, .NET), SysAdmin, DBA, Dev, Intermediate
Windows Presentation Foundation
- Moving Toward WPF Data Binding One Step at a Time - Josh SmithA gradual introduction to the world of WPF data binding (Unedited)
C# (C# 3.0, C#), .NET (.NET, .NET 3.5), XAML, Arch, Dev, Beginner - Simplifying the WPF TreeView by Using the ViewModel Pattern - Josh SmithReviews how using a ViewModel can abstract away the complexities of the WPF TreeView control. (Unedited)
C# (C# 3.0, C#), .NET (.NET, .NET 3.5), XAML, Arch, Dev, Intermediate - Setting two bindings on a single WPF control - NirajRulesThis article demonstrates how to set two bindings on a WPF control, yielding significant amount of code reduction for developers & boosting their productivity. (Unedited)
C# (C# 1.0, C# 2.0, C# 3.0, C#), WPF, Arch, Dev, Intermediate, Advanced - Understanding WPF via ASP.NET - Pete O'HanlonShows how certain WPF concepts can be easily understood via ASP.NET.
C# (C# 3.0, C#), .NET (.NET, .NET 3.5, .NET 3.0), XAML, Dev, Beginner - Integrate WPF UserControls in WinForms - codegod.deAn article on embedding WPF- UserControls into WinForms
C#, Windows, .NET (.NET 3.0, .NET), WPF, Dev, Intermediate
C / C++ Language
- C++ Coding Practices Guide - Chesnokov YuriyThe article describes C++ coding styles and practices to be followed to develop robust and reliable code that is easily comprehended and maintained by other developers.
C++ (VC6, VC7, VC7.1, VC8.0, C++), C++/CLI, C, Windows, .NET, MFC, WinForms, Dev, Intermediate
C#
- EnumOperators - PIEBALDconsultA class to help ease the burden of not being able to specify enum as a generic constraint
C#.NET 2.0, Dev, Intermediate - Plugins manager - Luca BonottoA plugins manager class to menage a plugins structure (Unedited)
C# (C# 1.0, C# 2.0, C# 3.0, C#) - C# DAL Method Code Generator - Saravanan.BGenerates C# data access layer method code for SQL sever stored procedures (Unedited)
C# (C# 2.0, C#), .NET (.NET, .NET 2.0), WinForms, Dev, Beginner - Developing Visual Studio Add-in to enforce company's standard modification history - Rahil ManasiaUsing Visual Studio.net to developing Add-in to enforce company's standard modification history (Unedited)
C# (C# 1.0, C# 2.0, C# 3.0, C#), .NET, Visual Studio, Arch, Dev, Design, Beginner, Intermediate
VB.NET
- Schema Generator - dnproUtility to generate schema description from existing SQL Server database (Unedited)
C# (C# 2.0, C#), VB 7.x, VB 8.0, VB 9.0, VB 6, .NET (.NET, .NET 2.0), WinForms, DBA, Dev, Intermediate - A Process viewer with alert notification - dnproSimple process viewer that is capable of setting alerts for process events. (Unedited)
VB (VB 9.0, VB), .NET (.NET, .NET 2.0), WinForms, SysAdmin, Dev, Intermediate
XML
- XML to C++ structures using a schema definition and a schema builder - Giuseppe RecalcatiThe technique described allows you to define structures in XML format and to create their tree in C++ programs.
C++, XML, Windows, Dev, Intermediate
Algorithms & Recipes
- Wordmills are coming... - Chesnokov YuriyThe article describes how a computer-being can be trained to write text articles, poems, compose music, or paint contemporary paintings.
C# (C# 1.0, C# 2.0, C# 3.0, C#), .NET (.NET, .NET 3.5), Dev, Intermediate - Using memory mapped files to conserve physical memory for large arrays - Mikael SvensonThe article shows how to implement a value type array as a memory mapped file to conserve physical memory. (Unedited)
C# (C# 2.0, C# 3.0, C#), .NET (.NET, .NET 3.5, .NET 2.0), Arch, Dev, Intermediate, Advanced - Evaluation Engine - Donald SnowdyThe Evaluation Engine is a parser and interpreter that can be used to define rules for Business Rules Engine. (Unedited)
C#, .NET, Visual Studio, WinForms, WebForms, Design, Arch, Dev, Intermediate, Advanced
Cryptography & Security
- Creating a secure channel - Efi MerdlerThe purpose of this article is to explain how a secure channel is built. The article will explain the structure of a Very Simple Secured Protocol (VSSP) that sits above the TCP/IP layer.
C# (C# 2.0, C#), Windows (Windows, WinXP), Dev, Intermediate, Advanced
Book Chapters
- Building Spring 2 Enterprise Applications: Chapter 4: Spring AOP 2.0 - aPressThe open-source Spring Framework has become a popular application framework for building enterprise Java apps. This chapter explores the newest features in Spring AOP (Aspect-Oriented Programming), including @AspectJ-style annotations, the AspectJ pointcut language, Spring AOP XML tags and more. (Unedited)
Dev, Design, Advanced
Product Showcase
- Static Analysis on Steroids: Parasoft BugDetective - Parasoft CorporationData flow analysis enables early and effortless detection of critical runtime errors like exceptions, resource leaks, and security vulnerabilities. It can also check if exceptions reported from automated unit testing are "real bugs."
C++, Java, .NET, Linux, Arch, Dev, QA, Intermediate
Articles updated added Last week
Miscellaneous
- Create a simple time tracking tool with System.Windows.Forms.Timer. - hawkesedArticle shows readers how to use basic C# 2.0 WinForms to make a working application. (Unedited)
C# (C# 1.0, C# 2.0, C# 3.0, C#), .NET, WinForms, Dev, Beginner - XGradientZoneBar - an MFC color gradient indicator bar - Hans DietrichXGradientZoneBar displays an indicator bar that allows you to specify multiple zones that are filled with a color gradient, and includes APIs to set the bar orientation, font, and tick marks. (Unedited)
C++ (VC6, VC8.0, C++), Windows, Visual Studio (VS2005, VS6, VS), MFC, Dev, Intermediate
Progress Controls
- ColorBar - A Gradient Colored ProgressBar - CopperColorBar is a gradient colored progress bar control written using VB.NET. (Unedited)
VB (VB 8.0, VB), Windows, .NET (.NET, .NET 2.0), GDI+, WinForms, Dev, Intermediate, Advanced
Shell and IE programming
- A File Checksum Shell Menu Extension Dll - Jeffrey WaltonCreate a File Checksum Shell Menu Extension using ATL and Crypto++ (Unedited)
VC6, VC7, VC7.1, VC8.0, VC9.0NT4, Win2K, WinXP, Win2003, Vista, ATL, STL, COM, VS.NET2002, VS.NET2003, VS6, Dev, Intermediate
Ajax and Atlas
- Load and Display Page Contents Asynchronously with Full Postback Support - iuconAn AJAX UpdatePanel with less communication overhead and better performance
C# (C# 2.0, C# 3.0, C#), Javascript, HTML, .NET (.NET, .NET 3.5), IIS (IIS 7, IIS 5, IIS 5.1, IIS 6, IIS), ASP.NET, Ajax, Dev, Intermediate, Advanced - The Page Life Cycle of Client [Browser] - asithangaeExplained the client side page life cycle, ajax partial render. (Unedited)
Javascript, CSS, HTML, XHTML, WebForms, Ajax, ASP, ASP.NET, Design, Dev, Intermediate, Advanced
Applications & Tools
- Simple Component Inheritance In ExtJS - Paul ColdreyHow to create an ExtJS component to render arbitrary HTML (Unedited)
Javascript, CSS, HTML, XHTML, WebForms, Ajax, ASP, ASP.NET, Dev, Intermediate, Advanced - ToDoList 5.5.4 - A simple but effective way to keep on top of your tasks - .dan.g.A hierarchical task manager with native XML support for custom reporting.
VC6, VC7, VC7.1, VC8.0Win2K, WinXP, Win2003, Vista, MFC, VS6, CEO, Arch, DBA, Dev, QA, Intermediate
ASP.NET
- Event Calendar [ ASP.NET 2.0 / C# ] - Neeraj SalujaBasic Calendar Control of ASP.NET 2.0 can be extended to cater one of most frequent requirement of tracking events, project milestones, history, schedule etc. (Unedited)
C# 2.0.NET 2.0, ASP.NET, VS2005, Dev, Intermediate - Age Calucate Web Custom Control - ArthaCreating Web Custom Control using ASP.NET 2.0 (Unedited)
VB, .NET (.NET 2.0, .NET), ASP.NET, Dev, Intermediate - Handle Session Timeouts on DotNetNuke Through an HttpModule - Ricky WangThis article provides an HttpModule that tackles the session-timeout problem on DotNetNuke (DNN) platform. It will redirect users' subsequent requests to a page that prompts some informative messages after session timeouts occur.
C# 2.0, Windows, .NET 2.0, ASP.NET, Dev, Intermediate - ASP.NET Internals: Viewstate and Page Life Cycle - mohamad halabiDiscusses asp.net viewstate and page life cycle in depth (Unedited)
C# 2.0, .NET (.NET, .NET 2.0, .NET 3.0), ASP.NET, Advanced
ASP.NET Controls
- Google's Static Map API WebControl - Florian DREVETShows you how to build an image based WebControl displaying static maps with markers
C# (C# 2.0, C#), .NET (.NET, .NET 2.0), ASP.NET, Dev, Design, Intermediate
Internet / Network
- MailMergeLib - A .NET Mail Client Library - Norbert BietschMailMergeLib is a mail client library. It makes use of .NET System.Net.Mail and provides comfortable mail merge capabilities. MailMergeLib corrects a number of the most annoying bugs and RFC violations that .NET 2.0 to .NET 3.5 suffer from.
C# 2.0, C# 3.0.NET 2.0, Win2K, WinXP, Win2003, Vista, ASP.NET, VS2005, VS2008, Dev, Beginner, Intermediate
Database
- Check Validity of Sql Server Stored Procedures/Views/Functions (updated) - Emil LerchCommand line tool to check validity of objects in SQL Server databases (Unedited)
C# (C# 2.0, C#), SQL, Windows (Windows, Win2K, WinXP, Win2003, Vista), .NET (.NET, .NET 3.0, .NET 3.5, .NET 2.0), SQL (SQL 2000, SQL 2005, SQL), Visual Studio (VS2008, VS), ADO.NET, Beginner, Intermediate, Advanced
.NET Framework
- User Settings Applied - Jani GiannoudisExtending the .NET User Configuration for Windows Forms and WPF
C# (C# 3.0, C# 2.0, C#), .NET (.NET, .NET 3.0, .NET 2.0), XAML, WPF, WinForms, Dev, Intermediate - NetMassDownloader Download .Net Framework Source Code At Once Without Any Visual Studio Installed , Enables Offline Debug In VS 2008,VS2008 Express Edition,2005 And CodeGear Rad Studio. - Izzet Kerem KusmezerWith this tool you can download whole .Net Framework Source Code at once, and enjoy offline browsing With it , you can have whole the source code without any Visual Studio Product Installed. (Unedited)
C# (C# 3.0, C# 2.0, C#), VB (VB 8.0, VB 9.0, VB), .NET (.NET, .NET 3.0, .NET 2.0, .NET 3.5), Win32, Arch, Dev, Intermediate
Game Development
- More Texas Holdem Analysis in C#: Part 1 - Keith RuleUsing C# to do sophisticated analysis of Texas Holdem
C#, Windows, .NET 2.0, Visual Studio, Dev, Intermediate - More Texas Holdem Analysis in C#: Part 2 - Keith RuleUsing C# to do sophisticated analysis of Texas Holdem
C#, Windows, .NET 2.0, Visual Studio, Dev, Intermediate
Libraries
- DNS.NET Resolver (C#) - alphonsFull implementation of a reusable DNS resolver component and a Dig.Net example application (Unedited)
C# (C# 1.0, C# 2.0, C# 3.0, C#), Windows, .NET (.NET, .NET 2.0), Visual Studio (VS2005, VS), Dev, Advanced
Mobile Development
- Termie : a simple RS232 terminal - milkplusTermie opens a serial port and allows you to communicate with it in a chat-like interface. (Unedited)
C# (C# 2.0, C# 3.0, C#), Windows, .NET, Dev, Intermediate
Windows Presentation Foundation
- A more generic way of sorting a WPF ListView with IComparer - wpfdevelopment.comAn easy way of sorting the WPF ListView with a generic method.
C# (C# 1.0, C# 2.0, C# 3.0, C#), .NET (.NET, .NET 3.5, .NET 3.0), XAML, WPF, Design, Arch, Dev, Intermediate - WPF: A Beginner's Guide - Part 5 of n - Sacha BarberAn introduction into WPF Databinding (Unedited)
C# (C# 3.0, C#), .NET (.NET, .NET 3.0), WPF, Design, Arch, Dev, Beginner - Animating Interactive 2D Elements in a 3D Panel - Josh SmithExplores Panel3D, a custom WPF panel that displays its children in 3D space
C# (C# 3.0, C#), .NET (.NET, .NET 3.5), XAML, WPF, Design, Arch, Dev, Intermediate
Windows Workflow Foundation
- Navigational Workflows Unleashed In WWF/ASP.NET 3.5 - Pero MatićCase-study on the internals of a Navigational Workflow engine for a fictional dating website called "World Wide Dating." (Unedited)
C# (C# 3.0, C#), .NET (.NET, .NET 3.5), LINQ, ASP.NET, Arch, Dev, Intermediate
C#
- NArrange - .NET Code Organizer - James NiesUsing NArrange to Organize C# Source Code (Unedited)
C#, VB, .NET, Visual Studio, Dev, Intermediate - List Comprehensions for C# 2.0 - Frohwalt EgererWriting nice list comprehensions for C# 2.0.
C# (C# 2.0, C#), .NET, Dev, Intermediate - Index XML Documents with VTD-XML - Jimmy ZhangIntroduce a simple, efficient, human-readable XML index called VTD+XML (Unedited)
C, C# (C# 1.0, C# 2.0, C# 3.0, C#), Javascript, XML, CSS, HTML, ASM, MSIL, UML, Forth.NET, XSLT, Office, XBox, Windows (Windows, Win2K, WinXP, Win2003, Vista), WinCE, .NET CF, .NET (.NET, Mono, DotGNU, .NET 3.5), ASP, ASP.NET, Win32, Win64, SQL (SQL 2000, SQL 2005, SQL), IIS, GDI, GDI+, OpenGL, DirectX, LINQ, Ajax, WCF, XAML, WPF, COM, COM+, ADO, ADO.NET, VS.NET2002, VS.NET2003, VS2005, VS2008, Design, CEO, Arch, DBA, Dev, QA, Beginner, Intermediate, Advanced - Windows Services in Action I - Umut ŞİMŞEKExplains windows services basics and deployment with details. (Unedited)
C# (C# 1.0, C# 2.0, C# 3.0, C#), Windows (Windows, NT4, Win2K, WinXP, Win2003, Vista, TabletPC, Embedded), .NET (.NET, .NET 3.5, .NET 3.0, .NET 1.0, .NET 1.1, .NET 2.0, Mono, DotGNU), Win32, Beginner - VTD-XML: XML Processing for the Future (Part II) - Jimmy ZhangReveal XML processing issue #1 and explain why document-centric XML Processing is the future (Unedited)
C#, XML, .NET (DotGNU, .NET), Dev - Multiple Ways to do Multiple Inserts - Neeraj SalujaVarious ways to do Multiple Inserts in SQL Server 2000/2005 or Oracle Database using ADO.NET in single database round trip. (Unedited)
C# (C# 1.0, C# 2.0, C#), .NET (.NET, .NET 1.1, .NET 2.0), ADO.NET, Dev, Intermediate - Schemaless C#-XML data binding with VTD-XML - Jimmy ZhangAgile, efficient XML data binding without schema (Unedited)
C# (C# 1.0, C# 2.0, C# 3.0, C#), XML, .NET CF, .NET (.NET, .NET 3.5, .NET 3.0, .NET 1.0, .NET 1.1, .NET 2.0), ASP, Win32, Win64, ADO.NET, WCF, Ajax, Design, CEO, Arch, DBA, Dev, QA, Beginner, Intermediate, Advanced
C++ / CLI
- DirectoryList 2.0 - nirvansk815A custom listbox control to help visually manipulate data (Unedited)
C++ (C++, VC9.0), C++/CLI, .NET (.NET, .NET 2.0), Win32, Visual Studio (VS2005, VS2008, VS), WinForms, Intermediate
VB.NET
- Adding custom skins for Forms in VB.Net - Ferminus MuthuCustom skins for VB.NET forms, Skinning VB.NET forms, WinForm Skins (Unedited)
VB (VB 8.0, VB 9.0, VB), .NET (.NET, .NET 2.0), Visual Studio (VS2005, VS), WinForms, Design, Beginner
Algorithms & Recipes
- C++ Strtk Tokenizer - Arash PartowA brief introduction to a tokenizer implementation in C++ (Unedited)
C++ (VC7.1, VC8.0, C++), C++/CLI, C, Dev, Beginner - Implementing a super-fast, size-constrained generic cache - Alexander MossinThe article shows how to combine two of the most common data structures into a high-performance, self-organizing cache with a maximum size.
C# (C# 1.0, C# 2.0, C# 3.0, C#), .NET (.NET, .NET 2.0, .NET 3.5, .NET 3.0), Dev, Intermediate - Genetic Algorithms in Artificial Neural Network Classification Problems - Chesnokov YuriyThe article demonstrating application of genetic algorithms for classification problems with artificial neural networks (Unedited)
C++ (VC6, VC7, VC7.1, VC8.0, C++), C++/CLI, C, Windows, Dev, Intermediate - Permutations, Combinations and Variations using C# Generics - Adrian AkisonDiscusses the six major types of combinatorial collections with examples and formulas for counting. Expands with a C# generics-based set of classes for enumerating each meta-collection. (Unedited)
C# (C# 2.0, C# 3.0, C#), .NET (.NET, .NET 2.0, .NET 3.5, .NET 3.0), Arch, Dev, QA, Design, Beginner, Intermediate - Inner Product Experiment: CPU, FPU vs. SSE* - Chesnokov YuriyThe article demonstrating inner product operation performed with shorts, ints, floats and doubles with CPU/FPU and SSE for comparison. (Unedited)
C++ (VC6, VC7, VC7.1, VC8.0, C++), C++/CLI, C - Inner Product Experiment: C# vs. C/C++ - Chesnokov YuriyThe article demonstrating speed of inner product operation performed with shorts, ints, longs, floats, doubles and decimals in C# compared to C/C++ (Unedited)
C#, Windows, .NET, Visual Studio, Dev, Intermediate - 2D Vector Class Wrapper SSE Optimized for Math Operations - Chesnokov YuriyThe article demonstrates a 2D vector wrapper, optimized with SSE intrinsics, for math operations with floating point precision.
C++ (VC6, VC7, VC7.1, VC8.0, C++), C++/CLI, C, Dev, Intermediate - Backpropagation Artificial Neural Network in C++ - Chesnokov YuriyThe article demonstrating backpropagation artificial neural network console application with validation and test sets for performance estimation using uneven distribution metrics. (Unedited)
C++ (VC6, VC7, VC7.1, VC8.0, C++), C++/CLI, C, Windows, Dev, Intermediate
Cryptography & Security
- Cryptographic Interoperability: Digital Signatures - Jeffrey WaltonSign and verify messages using Crypto++, Java, and C#.
C++ (VC7, VC7.1, VC8.0, C++), C# (C# 2.0, C# 3.0, C#), Java, Windows (Windows, Win2K, WinXP, Win2003, Vista), Win32, Dev, Intermediate
Threads, Processes & IPC
- A C++ plugin ThreadPool design - Alex C. PunnenThe Command Pattern and Chain of Responsibility for implementing a plugin ThreadPool library (Unedited)
C++ (VC6, VC7, VC7.1, VC8.0, C++, VC9.0), Windows (Windows, WinXP, Win2003, Vista), Win32, STL, Arch, Dev, Design, Intermediate, Advanced
Design and Architecture
- Secrets for Setting Up Continuous Integration - wallismA few simple tips that should help when you are considering setting up CI (Unedited)
SQL, C# (C# 1.0, C# 2.0, C# 3.0, C#), VB (VB 7.x, VB 8.0, VB 9.0, VB), .NET (.NET, .NET 3.5, .NET 3.0, .NET 1.1, .NET 2.0), SQL (SQL 2005, SQL), WinForms, WebForms, ASP.NET, Arch, DBA, Dev, Beginner, Intermediate, Advanced
Hardware & System
- Tray Me! - Malli_S A Beginner's Guide to Windows Hooks
C++, Windows, Visual Studio, Dev, Intermediate - Howto: (Almost) Everything In Active Directory via C# - thund3rstruckA collection of the most common Active Directory Tasks in C#
C# 2.0, Windows, .NET 2.0VS2005, Dev, Intermediate
Best Wireless Keyboard and Mouse.
Is best keyboard and mouse, how lets consider few factor on which i came to conclusion and which turns to right decision. Few days back i was like one of you searching on net for best wirless keyboard and mouse, i had read reviews on circuity city, bestbuy websites, but they were making me more confuse., oops and schemes, discount, special offer for buying low cost keyboard, mouse were making the situation worst. Ok let me share how i have conclude that Logitech Cordless Desktop S 510 is best keyboard and mouse.
About price i had purchase for 49.99 USD + Tax I am personally using these pair of keyboard and mouse from last 3 months and it had made my life so easy that made me share my experience. |
10 Keys to a Successful Job Search
1. Take stock - (Know Yourself) If you know your strengths and weaknesses and what you want in a career, then you have a much better chance of finding your perfect job. Finding that dream position starts with understanding your personality, values and what drives you. Taking a career and personality assessment is a huge first step towards optimizing your personal career path. TheMyers-Briggs Type Indicator assessment is the most widely used personality instrument. More than 2 million worldwide assessments are performed each year by job seekers, professionals, and organizations, including 89 of the Fortune 100. Take a Free Personality Test now to find out what motivates you and find the perfect job today. 2. Networking - (Know others) Many jobs are obtained through networking. It is a very important tool for job seekers and is an extremely fast and effective way to find your next job or career. While many employers advertise open positions on internet job boards like Job Bank USA, you should find out about the "hidden job market" as well by talking to as many people as possible and letting them know you are looking for a job. 3. Accomplishment oriented resume - (Know how to write it well) The purpose of a resume is not to get you a job, but to land an interview. An organized, industry-specific and accomplishment-oriented resume will get employers to take notice. In todays hyper-competitive job market, you simply cannot afford to send out a resume that is less than perfect. 4. Job proposal - (Know your value) Get the attention of decision-makers at a company through a Job proposal. It's a one or two page "mini business plan" that's intended to get you an interview with the decision-maker of a targeted prospective employer. While a resume tells someone what you have done in the past, a job proposal shows in some detail what you are going to do for the company down the road. Specifically, it lays out how you will help them achieve their vision of success. It generally explains the vision you have for a new product or service, how to enhance an existing program, or why to implement a new process. It may also outline your plan to increase company sales or improve accounts receivable. When you challenge the relevance of traditional job search strategies and begin utilizing tools and techniques that clearly distinguish you from the pack, most anything is possible, including winning a dream job with a great company during a down economy. 5. Industry Knowledge - (Know your market) During your job search, it is imperative to show initiative and drive while continually looking to improve your industry knowledge. In today's competitive job market, staying up-to-date on your industry is crucial to your future success. To be a truly outstanding business professional, you must not only understand trends and developments in your own industry, but the trends and developments in an average consumer's industry. 6. Research - (Know the players) There is no substitute for hard work and research. Knowing which companies are hiring in your area is only half the battle. Take your search to another level by getting access to key contacts, decision makers, and hiring managers. Check out sites like Hoovers.com to gain access to these types of lists. You can visit CareerConsultation.com for more information regarding customized research to meet your needs. 7. Interviewing - (Know how to communicate) The biggest mistake in interviewing is not being fully prepared. It is crucial for job-seekers to use every conceivable means possible to prepare for an interview and to allow ample time to fully prepare. Understand that interviewing is a skill; as with all skills, preparation and practice enhance the quality of that skill. Preparation can make the difference between getting an offer and getting rejected. 8. Marketing - (Know how to sell yourself) An interactive marketing portfolio of yourself pulls together your accomplishments, education, experience and awards in one place. It is a highly-effective job-hunting tool that you develop that gives employers a complete picture of who you are -– your experience, your education, your accomplishments, your skill sets, and what you have the potential to become -– much more than just a cover letter and resume can provide. You can use your career portfolio in job interviews to showcase a point, to illustrate the depth of your skills and experience, or to use as a tool to get a second interview. Dont forget to setup your portfolio at Job Bank USA. The best kinds of portfolios can be built and distributed to employers through the internet. 9. Background Check - (Know your history) With thousands of resumes to choose from, employers often select from pre-screened candidates first, as these job seekers appear more serious in their job quest and commitment. Pre-screening by the job seeker saves the employer valuable time and money, and places pre-screened candidates ahead of the competition. For more information on getting a background check, you can take a look in our Career Resources section at Job Bank USA 10. Learning never ends - (Know more) The investment of time and money in continuing your education sends a powerful message to prospective employers that you are serious about improving your skills and abilities. Employers are more likely to hire candidates that show the desire and commitment for lifelong learning. Whether it's a certificate program, associates, bachelors, or masters degree, there is a program to fit your lifestyle, schedule and budget. To find a school that fits your needs, browse our index of over 200 schools or try out our school matching program. |