Unit testing is an integral part of the application design. Unit testing is applied at different levels of the application. In this article we will focus on the User Interface level unit testing. We will use WatiN to test our ASP.NET application
How to use Visual Studio's post-build events to help automate unit testing for your solutions.
When developing ASP.NET MVC applications, most examples or sites have shown you starting from complete scratch. This is all and well if you have the time to completely re-write an existing application for 6+ months or have started a v1 product. Right, in the "real-world" the former rarely happens and if your a developer wanting to stay on the bleeding edge, introducing a new architecture into an existing ASP.NET application is fairly tedious. From converting existing pages, supporting legacy routes, and possibly the lack of allowing multiple forms all prove to be a challenge.
Quite often we need to load js files dynamically right from javascript. With ASP.NET AJAX it is simple. ASP.NET AJAX library has internal ScriptLoader class that can be used to load js files, specify callbacks that will be invoked when script is downloaded and ready, and execute functions inside newly loaded files. I will not list all available methods from ScriptLoader class - you can see them in more details in AJAX source. I will demonstrate how to load files and execute some functions in it.
How to use LINQ to order directories by creation date, pretty neat piece of code
I was recently working on a project where there was an option to export data from the database. The export function simply exported 2 hard-coded columns that were returned by a stored procedure into a tab-delimited text file.
Validators are a great part of the ASP.NET framework: they provide a standardized and easy way to add validation to form fields. But even if the framework provides different kinds of validators, there are so many different validations patterns that sometimes you have to write custom code to match your specific requirements.
3 Editors for ASP.NET and why I chose FreeTextBox.
Security is a hot topic these days; developers are slowly learning more and more how to make their code more secure and how to learn defensive programming techniques. Years ago defensive secure programming used to be a luxury but not anymore. With the increased threats around us in the computer world, we, as developers, should keep in mind security concepts as we do our coding. One type of applications is web applications and specifically in this article I will be talking about ASP.NET applications. However the ideas and concepts here can be adapted to any web programming language. You always read how cookies play an important role in the security of a web application.
Sponsors
More tags
Apple Design Hardware Programming Security unix-linux ajax how-to javascript php java tools trends frameworks books research gui web design ruby open source reviews web 2.0 eclipse other languages perl python humor announcement News mobile Microsoft Windows usability database standards tech c-and-cpp server web services web development css wiki webdesign games reference development flash online web2.0 library Magazine engine utilities asp.net seo tools xml opinion visual basic msdn url domain hibernate programmieren cheatsheet authentication ironpython dotnet webmaster css-html methodology login asp searchengine toolkit c%23 webhost visualstudio 3.0 csv dan thies domainnames domain tools org domini aspnet2 form authentication membership controls adapters web controls urlrewriting
When we first came up with the idea for IdeaPipe (no pun intended), we saw a need to fill a void in the social networking landscape. There are countless sites dedicated to connecting friends, classmates and business associates, sites that provide opinions and commentary around a specific topic and even sites that simply point to other sites, but there were few if any that enabled individuals or groups to share their ideas for the purposes of gathering feedback, collaborating or simply being heard.
The second development chunk focuses on creating documents to index, and munging them into a format to hand off to an external library. There are examples of calling a .NET library from F#, mutable values, function composition, and several other spiffy sounding things.
Not true – you can start with code and create mappings later. In fact, you can write plain-old CLR object like this:
A nice tutorial on how to get image metadata using C#. The tutorial includes a easy to follow walk through and a usable class for retrieving image metadata - if you just want the code.
Languages that support multiline quotes such as C#, Perl and PHP make it easy for developers to embed SQL code in applications in a readable and maintainable way
Designers can use Expression Blend and Design to create their artifacts and the XAML end result can be handed off to developers. Now, most people have heard this type of marketing hype ad-nauseum over the past year. So, here's what sold me:
Lately the use of client centric development model in .NET is getting increasingly popular. In contrast to the traditional server model where html tags are rendered in server side and then sent to the browser, the client centric approach consist of the use of asynchronous HTTP requests to retrieve data from server side and then do the html rendering in client side code.
An alternative to the built in thumbnail generator with better quality and much smaller file sizes.
While we develop AJAX applications, we often carelessly ignore giving up bad practices, which cause effects which are not so significantly visible when the site is not so large in volume. But, it’s often severe performance issue when it is the case for sites that make heavy use of AJAX technologies such as Pageflakes, NetVibes etc.
In ASP.Net 1.x days Datagrid is one of the most common control that is used to display a table of data. With the introduction of ASP.Net 2.0 we have Gridview in the place of Datagrid while the Datagrid control is still supported. With the introduction of Gridview we can prevent some of the standard code we will repeat for edit, update, delete, sort etc
There are some disadvantages in using string if we want to store some important information’s like password, credit card numbers, bank pins, etc for some manipulations. The following list will help you understand it better.
Learn how to use the Dictionary collection object in C#.
When Rich Internet Applications reach a certain level of complexity, you start having concurrency problems similar, but not identical, to the problems with multiple threads -- the root cause is that http request callbacks and user interface events can come in an arbitrary order. This article works out an example that explains how this happens, as understanding the nature of asynchronous communication is the first step towards developing reliable apps.
Exceptions provide a consistent mechanism for identifying and responding to error conditions. Effective exception handling will make code more robust and easier to debug. Exceptions are a tremendous debugging aid because they help answer:
ASP.NET validation controls provide an easy-to-use but powerful mechanism of ensuring that data is entered correctly on the forms. There are 6 validation controls included in the ASP.NET 2.0 and ASP.NET 3.5 versions.In this article, let us see some tips and tricks that can be applied to the validation controls.
What does the future bring for the sell of CodeGear to Embarcadero? My take on it.
There are two applications on CodePlex that are interesting to compare and contrast. The MVC Storefront and Background Motion. MVC Storefront is Rob Conery's work. You can watch Rob lift up the grass skirt as he builds this application in a series of webcasts (currently up to Part 8). Rob is using the ASP.NET MVC framework and LINQ to SQL. The Storefront is a work in progress and Rob is actively soliciting feedback on what you want to see.
On a recent project, I need a quick and dirty report that would give a breakdown of statistics for orders that have been placed. I didn’t need any fancy drill down, hover help, or transition effects. This sounds like a perfect use for the Google Chart API! There is no limit on use.
This text discusses the differences between checked and unchecked exceptions in Java, and argues that unchecked exceptions are often a cleaner alternative. The text finishes with references to Anders Hejlsberg (creator of C#) and James Goslings (creator of Java)'s interviews on the subject at artima.com
The CalendarExtender is an ASP.NET AJAX control that is associated with a TextBox control. When the user clicks on the TextBox, a client-side Calendar control pops up. The user can then set a date by clicking on a day, navigate months by clicking on the left and right arrow and perform other such actions without a postback. In this article, we will see some tips and tricks that can be applied to a CalendarExtender control.
In this installment, I continue working on the UI as I ready the demo for the client. I also talk at length with Scott Hanselman about Routing and ways you can test your Routes with Phil Haack's cool Route Debugger.
12345678910111213 ... 42 »










