|
1/9/2012 5449 Views MongoDb Enterprise Design with C# .NET, the Repository Pattern, and NoSQL
Introduction
There is a growing change in the software development world around considering the choice of a NoSQL database platform over the more typical SQL database. SQL databases are centered around the idea of relational tables. Data is normalized and separate..
12/1/2011 2536 Views Creating a Slick Login Form in MVC3 C# ASP .NET with Attribute Security, CSS3
Introduction
A common task for many MVC3 C# ASP .NET web applications is the creation of a login form. Along with the common login form comes an array of required functionality, including login validation, authentication, storing of credentials, and of course, sec..
11/15/2011 1205 Views Loading Web Navigation from XML with MVC3 Partial Views, C# .NET
Introduction The navigation menu is a common control on almost every MVC3 C# ASP .NET web site, containing sets of links for navigating to various portions of the web site. Traditionally, menu navigation links are statically embedded within an MVC3 control or directly within the HTML of a web page..
10/5/2011 5413 Views Creating a Simple Paint App with HTML5 Canvas and Javascript
Introduction Although HTML5's formal specification is still under development, the technology is already growing in popularity. HTML5, as supported by many popular web browsers, already brings together a set of client-side technologies for producing highly interactive and responsive applications. ..
9/12/2011 1492 Views Remote Debugging with Pastebin and Automatic Logging of Errors
Introduction Debugging software applications typically occurs within the context of an IDE (integrated development environment), such as Eclipse, XCode, Visual Studio, etc. This allows developers to step line by line through sections of code, analyzing variables, and tracing the stack. Occasionall..
8/29/2011 2679 Views Cross Domain Policy Violation, And How to Get Around It (JSONP, AJAX, JavaScript)
Introduction Web services are an important part of the architecture for many software systems. While many web applications use JavaScript AJAX requests to make calls to local web service methods, occasionally the need arises to call outside web services to retrieve data for the current request. Ex..
5/14/2011 6062 Views Creating a C# .NET Jabber Chatbot that Talks on Gmail with XMPP and AIML
Introduction User interfaces for software applications can come in a variety of formats, ranging from command-line, graphical, web application, and even voice. While the most popular user interfaces include graphical and web-based applications, occasionally the need arises for an alternative inter..
5/5/2011 10746 Views Creating an ASP .NET MVC 3 User Control with a Partial View
Introduction It's common in ASP .NET Web Forms to create user controls that encompass frequently accessed user interface components. WebForms user controls can be created which allow setting of properties, customization, and placement on any aspx web form for display of content. However, with ASP ..
4/5/2011 2409 Views Consuming a C# .NET WCF Web Service from Perl / CGI
Introduction The chief argument for a web service is to provide a platform and language independent means of accessing a software API. This allows client programs, written in a variety of programming languages, to interact with the web service. Of course, web services also provide additional benef..
2/27/2011 7963 Views Creating a C# .NET External Domain Specific Language to Map a Dungeon
Introduction Creating your own programming language can be a daunting task. After all, that's why developers choose existing programming languages, such as C#, Ruby, Perl, JavaScript or other traditional languages. However, in certain instances, a case may arise where non-developer business users ..
2/7/2011 5372 Views Fluent Interfaces in C# .NET with Expression Builder Method Chaining and RPG Games
Introduction Domain specific language (DSL) is a method of programming where variables, functions, and classes are descriptive of business-domain definitions and methodology. It allows software developers to more easily communicate with business matter experts and non-technical users, even to the ..
12/22/2010 5929 Views Generating Flying Creatures in NoSQL RavenDB with C# ASP .NET MVC Razor
Introduction C# ASP .NET web applications have grown to encompass varying degrees of complexity and enterprise-level flexibility. With the latest release of the Microsoft ASP .NET MVC Model View Controller (Release Candidate) framework, C# web applications can be designed using the fluent view tem..
12/5/2010 3786 Views Web Gardens, Web Farms, Clouds, and Session State in C# ASP .NET
Introduction The majority of C# ASP .NET web applications are often developed with the intention of running in a single web server environment. They'll often take advantage of ASP .NET's Session State to store variables and data on the server, per user. As an ASP .NET web application grows in usag..
10/31/2010 5621 Views Using Silverlight Graph Charts and WCF to Visualize Stock Dividends in C# .NET
IntroductionSilverlight is a graphical toolkit for providing advanced visual displays and animation in web pages, using C# ASP .NET. The Silverlight API contains a flexible list of graph and chart controls, used for visualizing a vast array of data. As the Silverlight graph and chart controls are ..
9/30/2010 13777 Views Using the Entity Framework Repository and UnitOfWork Pattern in C# ASP .NET
Introduction Web application data access layers have evolved over time to provide increasing flexibility and maintainability in software architecture. Often, many web applications begin by manually maintaining database connections and SQL query strings. However, as architecture designs grow, more ..
7/10/2010 9642 Views Displaying SOAP XML Messages in a Simple WCF Web Service
Introduction The Windows Communication Foundation WCF is growing in popularity and becoming the mainstream method for creating web services. While WCF can provide a powerful interoperable service, which many different programs and languages can comminute with, it becomes increasingly important to ..
3/17/2010 21101 Views Using the NHibernate Repository Pattern in C# ASP .NET
Introduction A large variety of ORM object relational mapping tools exist for use with developing C# ASP .NET web applications. Some of the more popular ORM tools include LINQ to SQL, the Entity Framework, and NHibernate. While previous articles have discussed developing web applications with LINQ..
2/2/2010 18615 Views Creating Silverlight Microsoft Bing Maps with Editable Pushpins in .NET
IntroductionA variety of software mapping development kits are available for use in C# ASP .NET web applications, including Google Maps, Mapquest, Bing, and more. However, with Microsoft's recently released Bing Maps for Silverlight and C# ASP .NET, it's become quite easy to develop a mapping web ..
1/18/2010 8727 Views Populating a DropDownList with Linquify and the Entity Framework in C# ASP .NET
Introduction Linquify is a Visual Studio add-in and business class generator for LINQ to SQL and the Entity Framework, providing quick and easy development for ASP .NET data layers. In this tutorial, we'll go through the steps of setting up a basic C# ASP .NET web application, which populates a Dr..
12/28/2009 15720 Views Creating Silverlight Web Applications with Linquify, LINQ to SQL, WCF
Introduction Linquify, our recently released Visual Studio Add-in, is a .NET business class generator for LINQ to SQL and the Entity Framework, providing quick and easy development for ASP .NET data layers. In this tutorial, we'll demonstrate some of Linquify's features by guiding you through the ..
11/15/2009 5817 Views Converting and Compiling 32-bit to 64-bit Visual Studio 2008 Projects
Introduction The average lifespan of a typical computer is about 3-5 years. Today, the majority of users are running 32-bit architecture PCs. However, as users begin upgrading to faster computers, they will be moving to the newer 64-bit platforms, requiring some software developers to port their W..
11/11/2009 10657 Views Securing PDF Files in ASP .NET with Custom HTTP Handlers
Introduction It's quite common to include PDF and other static file formats in a C# ASP .NET web application for access by the user. However, many developers overlook the fact that the built-in .NET authentication and security framework does not apply to static files, such as PDF files, Word docs,..
9/18/2009 7496 Views Managing SQL Strings in C# ASP .NET Applications
Introduction Many ASP .NET business web applications involve the usage of a database in one form or another. Depending on the architecture of the web application, database calls may exist in the user interface, business tier, or data tier. Regardless of the layer, many developers include raw SQL q..
8/13/2009 36513 Views Implementing the Repository Design Pattern in C# ASP .NET
Introduction Writing a C# ASP .NET web application which utilizes a database can create increasingly complex code. The more complex code gets, the more difficult it becomes to debug, maintain, and enhance. The Repository design pattern is a way of introducing architecture into your C# ASP .NET web..
6/2/2009 17987 Views Sending Email From a Gmail Account with C# .NET and Web Services
IntroductionSending email notifications from C# ASP .NET web applications can often become a troublesome process. Automatic emails from software may be marked as junk or spam by many ISP mail servers. This can make it difficult for users to properly receive email notifications from software produc..
5/26/2009 8827 Views Creating Artificial Life with Cellular Automata in C# .NET
IntroductionCellular automata is a model of artificial intelligence involving the creation of single-celled programmatic life forms, within a computer program. John von Neumann, the first scientist to implement cellular automata, came about the discovery while in search of a way to create self rep..
5/6/2009 15311 Views Using Neural Networks and Genetic Algorithms in C# .NET
IntroductionNeural networks are one of the methods for creating artificial intelligence in computers. They are a way of solving problems that are too difficult or complicated to solve using traditional algorithms and programmatic methods. Some believe that neural networks are the future of compute..
4/7/2009 10888 Views Looking Up Zip Codes with C# ASP .NET MVC and AJAX
IntroductionWith the release of the ASP .NET MVC (model view controller) framework for Visual Studio and .NET, many developers are considering the move to the new MVC architecture, in place of classic ASP .NET. The MVC framework for C# ASP .NET provides a loosely-coupled and robust architecture fo..
2/15/2009 19653 Views Detecting Browsers, Crawlers, and Web Bots in C# ASP .NET
IntroductionThere are a lot of different entities crawling around your web applications in the wild, including web browsers, web crawlers, web spiders, web bots, and automated scripts. Determining the difference between a regular user visiting your site and an automated web bot can help aid you wi..
1/24/2009 35453 Views Using MySQL and LINQ to SQL in C# ASP .NET
IntroductionLINQ is one of the most popular Microsoft technologies for reading and writing to SQL Server databases. LINQ to SQL builds upon LINQ technology to allow working with business objects, generated from the database tables. Tranditionally, LINQ to SQL is compatible with SQL Server database..
1/21/2009 3880 Views Fixing: DbLinq Slow MySql Queries, Linq to SQL
The following is a fix for an issue with slow queries in DbLinqwhen usingMySql. The problem causes very slow MySQL queries when using LINQ to SQL with DbLinq, and displays a list of ArgumentExceptions, thrown before the query is executed. The query can take up to 8-10 seconds to execute.Here is a ..
10/8/2008 42935 Views Redirect a Login By Role in C# ASP .NET
IntroductionRedirecting a user after login to a C# ASP .NET web application is a common feature found in most web applications. It's also quite common to have multiple types of users logging into the ASP .NET web application, differing by the type of role membership they belong to, and each requir..
10/2/2008 18234 Views Customizing Membership Role Providers and Login Control in C# .NET
IntroductionSooner or later many web sites realize they need to allow users to login to their C# ASP .NET web applications. This can be as a result of web application functionality, feature restrictions, or simply to gauge web site traffic better by keeping track of users in the .NET application. ..
7/3/2008 45278 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 18856 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 64446 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 13351 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 9441 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 39521 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 65621 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 12870 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 74469 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 81202 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 50508 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 17041 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 20259 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 14938 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 17615 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 15722 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 23116 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 47329 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 67117 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 43666 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 61760 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 8045 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 38110 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 29058 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 111296 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 76801 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 62912 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 28832 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 32117 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 14742 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..
|