| C# .NET Articles by Primary Objects |
 |
|
7/3/2008 34 Views Three Ways to Bind a DropDownList with LINQ and C# ASP .NET
IntroductionWith the latest release of C# ASP .NET 3.5, Visual Studio 2008, and LINQ, there is a whole new way of working with the data layer in C# ASP .NET web applications. Prior to LINQ, many developers would either generate or custom-code a data layer based upon the usage of SqlConnection, Sql..
4/30/2008 2378 Views Writing a Simple Role Playing Game with C# .NET and the State Pattern
IntroductionThe State Pattern is an interesting design pattern in that it allows us to separate out portions of code into individual related modules, or states. This pattern is particularly useful for applications which need to retain state information, such as the current phase a program is in. W..
1/29/2008 1140 Views Preventing Session Timeouts in C# ASP .NET Web Applications
IntroductionC# ASP .NET has a setting in the web.config file which allows selecting the desired session timeout. When the session timeout value expires, the currently logged in user's session is deleted and the user is directed back to the login page. The default timeout value usually hovers aroun..
1/29/2008 524 Views Using the Iterator Pattern in C# ASP .NET
IntroductionThe Iterator design pattern provides us with a common method of enumerating a list of items or array, while hiding the details of the list's implementation. This provides a cleaner use of the array object and hides unneccessary information from the client, ultimately leading to better ..
1/7/2008 1594 Views A C# .NET Adventure Game Sim and the Strategy Pattern
IntroductionThe strategy design pattern is a useful pattern for pulling out frequently changing pieces of code and encapsulating them within individual classes. The strategy pattern allows us to reference these new classes in a loosely-coupled fashion, without directly referencing the concrete imp..
12/10/2007 3104 Views Using the Model View Controller Pattern in C# ASP .NET
IntroductionWith the release of Visual Studio 2008, Microsoft is working on including an add-on for C# ASP .NET web application developers to include the Model view Controller (MVC) design pattern within their software architecture. While one of the add-on's core purposes is to enhance URL functio..
11/16/2007 6258 Views Implementing a Database Factory Pattern in C# ASP .NET
IntroductionDesigning a C# ASP .NET web application which utilizes a database is a common and straight-forward task for developers. The web application accesses various tables, stored procedures, executes SQL script, and retrieves records. Often, developers not familiar with design patterns will u..
10/10/2007 1049 Views Using the Memento Design Pattern in C# ASP .NET
IntroductionThe Memento design pattern is a useful pattern in C# ASP .NET for saving the state of an object for retrieval at a later time. A common example of the Memento pattern would be the Undo command of various programs. With the Undo command, the current state information for the task at han..
10/2/2007 11008 Views Passing Arrays to SQL Stored Procedures with C# ASP .NET
IntroductionStored procedures provide a powerful extension to C# ASP .NET by allowing us to move large portions of data manipulation logic to the database server. Stored procedures are optimized to process data and their associated logic faster than the application layer and are therefore the pref..
8/13/2007 10861 Views Using the Microsoft Message Queue MSMQ and C# ASP .NET
IntroductionThere are several different kinds of queues available in the C# ASP .NET framework with the most popular one being the standard Queue collection object. While these collections are easy to work with and fairly robust they are still stored in memory and therefore temporary. Often, in en..
8/6/2007 11499 Views Exporting XML in a C# ASP .NET Web Application
IntroductionXML (extensible markup language) is a popular format of data for importing and exporting between different applications designed using different programming languages. Since XML uses a standardized format of data, applications can easily parse the XML data to pull out specific fields, ..
5/29/2007 3662 Views Designing Software Generics and Reflection in C# ASP .NET
IntroductionAs software becomes more complex, the ability to design a modular and re-usable architecture into your software becomes increasingly important. Using the programming concept of generics with interfaces, included in C# ASP .NET 2.0, software developers can abstract algorithms and classe..
5/17/2007 3687 Views Using the Observer Design Pattern in C# ASP .NET
IntroductionSimilar in nature to the Chain of Responsibility design pattern, the Observer pattern allows linking of several listener classes to a subject class. When a change or event occurs within the subject class, all listeners are made aware of the event and may take action. This essentially c..
5/15/2007 2137 Views Using Chain of Responsibility Design Patterns in C# ASP .NET
IntroductionA powerful design pattern geared towards handling an event is the Chain of Responsbility design pattern. This pattern helps decouple related algorithms in C# ASP .NET and can help your software become more scalable and easier to control.In general, the Chain of Responsbility design pat..
5/11/2007 3636 Views Using the Command Object Design Pattern in C# ASP .NET
IntroductionThe Command Object design pattern can be a powerful tool to use in development of C# ASP .NET web applications. The Command design pattern brings object oriented design to an otherwise non-object oriented piece of data - a command.It is common to create classes and functions which oper..
5/8/2007 3589 Views Using Microsoft Silverlight to Fade an HTML Form
IntroductionMicrosoft has recently released the beta version of Silverlight. For those unfamiliar with what Silverlight is, it is essentially a plug-in technology to create web pages and web applications that look much closer to desktop applications. It appears to combine the best of AJAX, DHTML, ..
5/7/2007 3644 Views Using the Strategy Design Pattern in C# ASP .NET
IntroductionDeveloping software can quickly become a complicated process, with lists of funtions, procedures, loops, and repetitive code. Understanding theories of design patterns and implementing them, when neccessary, can help simplify a software's design.Design patterns have been around for man..
12/21/2006 13161 Views How to Kill MySQL Sleeping Connections in C# ASP .NET
IntroductionMySQL is a free database includedwith many web hosting services on linux and Windows platforms. C# ASP .NET developers, using a MySQL database back-end, may notice an unnecessarily large list of sleeping connections that remain online in MySqlAdministrator. This can cause wasteful use ..
12/3/2006 17150 Views Connecting to a MySQL Database with C# ASP .NET
IntroductionIf you're creating a web application using C# ASP .NET, you will more than likely be using one of the three top database engines MySQL, MSSQL (Microsoft SQL Server), or Oracle to store your online data. From the developer's view, all three databases are virtually the same. You use the ..
10/27/2006 11426 Views Creating XML RSS Feeds with C# ASP .NET
IntroductionAn RSS feed is really just a fancy term for an XML file, specifically used to re-distribute web content to aggregators. The most commonly used form of an RSS feed comes from blogs, which are constantly increasing in popularity. Combine the interest in blogs with the major web browsers'..
10/18/2006 14807 Views Resetting Passwords in Active Directory with C# ASP .NET
IntroductionOne of the most common functions to perform in Active Directory from a desktop application or C# ASP .NET application is resetting user passwords. Due to the security features of Windows, resetting a password can be a little tricker than you think. After throwing in the security featur..
10/9/2006 2336 Views Fixing: VC Package not available or not registered
IntroductionRecently, an error occured on a PC with bothVisual Studio .NET 2003 and Visual Studio 2005 installed, where new forms could no longer be added to a web project and new projects could not longer be created in VS2003. Upon trying to perform either task, an error message would display sta..
10/7/2006 11559 Views Internet Streams and Downloading Files in C# ASP .NET
IntroductionC# ASP .NET is one of the first programming platforms which provides a vast array of easy-to-use libraries for accessing the Internet, download files and web pages, and manipulating the Internet stream. With this comes the ability toprogram your own C# ASP .NET web spiders, crawlers, a..
10/2/2006 7975 Views Search Engine Friendly Links in C# ASP .NET
IntroductionWhen designing a large C# ASP .NET web application, containing hundreds or thousands of dynamically generated pages, a common after thought is how the search engine robots will handle your site. Often, generated pages contain numerous parameters in the URL query string, including conte..
9/20/2006 25161 Views Using Active Directory in a C# .NET Web Application
Active Directory is the primary user management system used by business and enterprise networks. It's basically just another kind of database, similar to MSSQL or Oracle, but with its own type of query language and protocol, which is based on LDAP.Being able to query objects in Active Directory fr..
9/14/2006 26584 Views Saving and Loading Images in MSSQL Database with C# .NET
Microsoft's MSSQL database can store a variety of data types in its columns including varchar strings, int, double, float, date/time, binary, and image. The data type name "image" may seem mysterious at first, but it is actually another representation of a binary data type. This field in..
9/3/2006 13299 Views Using CSS Styles in C# ASP .NET Web Applications
CSS has become a fundamental part of designing C# ASP .NET web applications. All web applications designed by Primary Objects include CSS styles and inner-html effects for a professional polished look. With the importance of cross-browser compatibility, neatness, and world wide web standards, CSS ..
8/31/2006 7092 Views Detecting Blocked Cookies in Web Applications
Enabling your C# ASP .NET web application to detect if a user has turned off cookies is an important stepin designing any successful online software.At Primary Objects, many of the web applications we create for our clients will be used by hundreds or thousands of users on the Internet. With this ..
8/24/2006 8775 Views ASP .NET Security, C# Web Application Security
In all projects developed by Primary Objects, security is our first and foremost concern. We work very hard to assure our web applications contain the highest levels of security suitable for the project at hand.As we develop applications using C# ASP .NET, there are several choices of security mod..
8/18/2006 1206 Views ASP .NET Web Site Design At Primary Objects we design professional custom ASP .NET web sites for your individual needs. We can create your web site from a designed template which your company may already have or take advantage of thousands of professional pre-made templates to give your site the perfect look.Professional In..
|
|