Tuesday, November 23, 2010

Best Practices for Mobile Web Interfaces

Best Practices for Mobile Web Interfaces: "

We’ve seen tremendous growth in the mobile market since smart phones have taken over. Most of the tech-savvy adopters who understand the benefits couldn’t go a day without their precious iPhone or Android device. Websites are continually required to hold up to these standards and have adapted to fit a dire need.


The increase for demand of mobile-fashioned websites will drive webmasters into a scuttle. Website layouts have to be updated and require tweaks to the formatting so everything will display properly on mobile devices. I’ve described some best practices below and how you can re-build your site to be entirely mobile friendly.



Create through Simplicity


No matter which device you’re working with all mobile hardware just isn’t built up to standards with a desktop platform. Simplicity is the name of the game and it will determine whether you can hold onto your mobile visitors or lose the market entirely.



Large graphics, videos, and unfitted page content will surely cause visitors to cringe. Each visitor stays on your website under the mission to gain some type of information. And they want to find it as quickly as possible with the least amount of distractions.


Try re-designing your page menu structure and setting up a different layout for your content. Often times a single column is enough for a great mobile design layout. Branding and core links should remain at the very top of the page since it’s the most accessible area.


Implement Mobile Stylesheets


CSS is a great language for applying edits and new formatting. The letter “C” in the acronym stands for cascading, meaning you can apply styles in one file and import or roll over newer properties in a later file. This creates an atmosphere for detailed customizations and a lot of power over any template.



The process of designing new style rules isn’t very complex. In fact it should fit nicely into the task of re-formatting the entire HTML structure of your pages and doesn’t require much attention. Below is an example of a simple CSS import code to apply 2 different stylesheets.


@import url('/css/styles.css');
@import url('antiscreen.css') handheld;

This method works well if you’re looking to present an overall mobile template that fits on generally all devices. This supports most older browsers from Windows Mobile and Symbian operating systems as well as iOS, Android, BlackBerry and others. The security in backwards compatibility is nice, but if you’re looking to get the best response from the larger mobile audience it’s best to define specific CSS files for unique occasions.


Working with Media Queries


This is a new set of functionality added into the CSS library with the release of CSS3 and HTML5. By focusing on the HTML code used to embed external stylesheets we can play around with the media attribute by calling upon CSS selectors.



This may all seem a bit confusing since it’s never been used in the semantic web before recently. Check out the W3C docs page for more details. Looking at CSS syntax we can break down media queries into just data values parsed via HTML and used to determine how to display page styles. I’ve demonstrated a possible example below.


By defining the max-width property the parsing engine can check the total width of whatever device the user is on and display a set stylesheet accordingly.


<link href="/css/mobile.css" rel="stylesheet" type="text/css" media="only screen and (max-width: 767px)" />


The example above is code you could use to include a stylesheet for iOS devices such as an iPhone and iPod Touch. The max-width property checks to see the overall screen size and will only append the styles if the condition is met. 767px is the specific size of an iOS device’s screen in landscape mode. This means we will catch and apply changes to all devices at this width value or less.


Although not a necessary component you may also consider adding the following meta tag into your header.


<meta content="width=device-width" />

Safari on iOS devices has great zooming functionality that will break most versions of your stylesheet. If you plan to set fluid page widths and allow content to rearrange dynamically this code will keep styles from breaking. This tells the browser to trust our stylesheet and keep the page in full zoom at all times.


Always Offer a “Normal” Mode


Some visitors will become agitated with a mobile template after an extended period of use. It happens, and there’s nothing you can do as a developer to please everybody.



The best solution is to offer a link for changing back to the default site layout. In most applications this is placed at the very bottom of the page. Here it is out of harm’s way yet still in place for visitors to easily find the resource. Facebook and Digg are good examples of this.


A secret technique many web services implement is redirecting mobile devices to a sub-domain containing the alternative mobile version of the site layout. For example m.domain.com is a common trend seen among web 2.0 apps. This provides a few benefits, namely the ability to store configuration files in separate directories. This is a clean separation for removing a veil of confusion over how to structure web apps.



The era has only just begun as we start to see more consumers of mobile data and mobile phones. iPhone and Android sales are through the roof and show no signs of stopping. We can assume the amount of mobile Internet users will skyrocket over this holiday season with devices going on sale around the globe.


These tips are a great introduction into the mobile development environment. There are also many other mobile-friendly tools to check out if you’re interested in delving deeper. Trends will continue to fluctuate as the market changes but the core values of individual users will mostly stay the same. The truly successful webmasters will learn from this and scale their operations to fit their consumer base.

"

Monday, November 15, 2010

Building Pure CSS Mega Menus

Building Pure CSS Mega Menus: "Ecd-css-orange_thumb

Mega menus, which are alternatively called multi-level, fly-out, or tiered menus, are an excellent form of website navigation.

These menus—whether arranged horizontally or vertically—allow visitors to quickly and intuitively browse a site's hierarchy, which is of particular importance on ecommerce sites.

Frequently, mega menus are executed using either JavaScript or Flash and ActionScript. While these are both excellent choices, there may be certain times or certain projects wherein a lighter, all CSS solution, is called for. So in this quick tutorial, I will describe one approach to building a pure-CSS mega menu.

Building the HTML

For this tutorial, I set up a simple page that has a header and a short, four-anchor menu.



Within m...

"

100 Visual C# Training Videos

100 Visual C# Training Videos: "

Here are over
100 Visual C# Training Videos
, hosted by Microsoft. These are
designed for all Visual C# (C Sharp) developers, from the beginner (novice) to
the more advanced (professional).





Visual C# Video Topics:



C# 4.0 Video Series

How Do I Use the Visual Studio IDE

SharePoint Development with Visual Studio
2010 Video Series


Office Development with Visual Studio 2010
Video Series


WPF Forms with Entity Framework

Practical Entity Framework for C#

WPF Forms over Data Series

Windows Forms Controls Series

Developing Windows Azure Applications





Named and Optional Parameters in C# 4.0:



The
new Named and Optional Parameters feature in C# 4.0 provides an
alternative to method overloading. (Requires Visual Studio 2010.) Presented
by Sam Ng




Length: 10 minutes 22 seconds

Video Downloads: WMV (Zip) | WMV | iPod | MP4 | 3GP | Zune | PSP

Audio Downloads: AAC | WMA | MP2 | MP3 | MP4





C# 4.0 Video Series:



This video series shows new features in pre-release versions of C# 4.0
and explains how to use them.



#1 | How Do I: Named and Optional Parameters in C# 4.0?

(10 minutes, 9 seconds)



#2 | How Do I: COM Interop and Office in C# 4.0?

(10 minutes, 13 seconds)



#3 | How Do I: Use Covariance and Contravariance in VS
2010 Part I?


(8 minutes, 22 seconds)



#4 | How Do I: Use Covariance and Contravariance in VS
2010 Part II?


(11 minutes 19 seconds)





How Do I Use the Visual Studio IDE:



This
series features techniques you can use to enhance the development
process in the Visual Studio IDE. Tips for C# and VB developers
highlight how they can use built in features of the IDE to create code
more quickly and more efficiently. Presented
by Charlie Calvert




#1
| How Do I Use Highlight References in the Visual Studio 2010 IDE


(4 Minutes, 8 Seconds)



#2
| How Do I use Code Snippets in the Visual Studio IDE


(9 Minutes, 42 Seconds)



#3
| How Do I Use Generate from Usage in Visual Studio 2010?


(7 Minutes, 35 Seconds)



#4
| How Do I: Use the Call Hierarchy with DJ Park?


(6 Minutes, 39 Seconds)



#5
| How Do I: Step with The Debugger in Visual Studio?


(7 Minutes, 56 Seconds)



#6
| How Do I: Refactor my Code in Visual Studio?


(08 Minutes, 16 Seconds)



#7
| How Do I: Refactor my Code with Visual Studio Part II?


(8 Minutes, 41 Seconds)





SharePoint Development with Visual Studio 2010 Video Series:



This
how-to video series is focused on SharePoint 2010 development using
Visual Studio 2010. You will need Visual Studio 2010 Professional or
higher and SharePoint 2010 Foundation or Server installed. For more
information see Setting Up the Development Environment for
SharePoint Server
.
Presented by Ben Hedges




#1 | How Do I: Create Visual Web Parts for SharePoint
2010 in Visual Studio 2010?


(05 minutes, 44 seconds)



#2 | How Do I: Create Sequential Workflows for
SharePoint 2010 in Visual Studio 2010?


(6 minutes, 26 seconds)



#3 | How Do I: Create State Machine Workflows for
SharePoint 2010 in Visual Studio 2010?


(15 minutes, 50 seconds)



#4 | How Do I: Create Event Receivers for SharePoint
2010 in Visual Studio 2010?


(5 minutes, 4 seconds)



#5 | How Do I: Create Content Types for SharePoint
2010 in Visual Studio 2010?


(4 minutes, 14 seconds)



#6 | How Do I: Create List Definitions for SharePoint
2010 in Visual Studio 2010?


(6 minutes, 21 seconds)



#7 | How Do I: Create Site Definitions for SharePoint
2010 in Visual Studio 2010?


(5 minutes, 36 seconds)



#8 | How Do I: Import a SharePoint Site Definition
using Visual Studio 2010?


(6 minutes, 13 seconds)



#9 | How Do I: Create a Business Data Connectivity
Model for SharePoint 2010 Using Visual Studio 2010?


(11 minutes, 48 seconds)





Office Development with Visual Studio 2010 Video Series:



This
how-to video series is focused on Office development using Visual
Studio 2010. You will need Visual Studio 2010 Professional or higher
and Office 2007 or 2010 installed.



#1 | How Do I: Retarget an Outlook Add-In from .NET
Framework 3.5 to .NET Framework 4?


(10 minutes, 06 seconds)



#2 | How Do I: Retarget a Word 2007 Add-In from .NET
Framework 3.5 to .NET Framework 4 that uses Smart Tags?


(9 minutes, 11 seconds)



#3 | How Do I: Take Advantage of C# 2010 Language
Improvements in Office Projects?


(9 minutes, 37 seconds)



#4 | How Do I: Deploy Multiple Office 2010 Projects in
One Package?


(13 minutes, 29 seconds)



#5 | How Do I: Write a Post Deployment Action in
Visual Studio 2010 to Copy Office Documents to End User Computers?


(8 minutes, 55 seconds)



#6 | How Do I: Deploy Office 2007 and Office 2010
Projects that Target .NET Framework 3.5 and .NET Framework 4?


(10 minutes, 44 seconds)





WPF Forms with Entity Framework Video Series:



This
how-to video series is focused on data-based application development in
Windows Presentation Foundation using Entity Framework for data access
in Visual Studio 2008 Service Pack 1.
It is recommended you watch these videos in order because each one
builds upon techniques shown in the previous video. Presented
by Beth Massi




You will need: SQL
Server
or SQL
Server Express
and Visual Studio 2008 Service Pack 1 or Visual Basic 2008 Express Service Pack 1

Download Code and Discuss on Code Gallery: http://code.msdn.microsoft.com/wpfdatavideos



#1 | How Do I: Get Started with Entity Framework in
WPF Applications?


(17 minutes, 33 seconds)



#2 | How Do I: Build a WPF Data Entry Form Using
Entity Framework?


(24 minutes, 42 seconds)



#3 | How Do I: Create a WPF Lookup Combobox using
Entity Framework?


(24 minutes, 27 seconds)



#4 | How Do I: Hook Up and Display Validation in WPF
using Entity Framework?


(29 minutes, 24 seconds)



#5 | How Do I: Build a WPF Master-Detail Data Entry
Form Using Entity Framework?


(36 minutes, 20 seconds)





Practical Entity Framework for C#:



#1 | Practical Entity Framework for C#: Explore Entity
Framework


(11 minutes 52 seconds)



#2 | Practical Entity Framework for C#: Compiled
Queries in Entity Framework


(6 minutes 16 seconds)



#3 | Practical Entity Framework for C#: Entity
Framework for
ASP.NET

(12 minutes 8 seconds)



#4 | Practical Entity Framework for C#: Stored
Procedures in Entity Framework


(7 minutes 52 seconds)



#5 | Practical Entity Framework for C#: Paging

(11 minutes 52 seconds)





WPF Forms over Data Video Series:



This
how-to video series is focused on data-based application development in
Windows Presentation Foundation using Visual Studio 2008 Service Pack
1. Presented by Beth Massi



You will need: SQL
Server
or SQL Server Express and Visual
Studio 2008 Service Pack 1
or Visual Basic 2008 Express Service Pack 1

Download Code and Discuss on Code Gallery: http://code.msdn.microsoft.com/wpfdatavideos



#1 | How Do I: Create a Simple Data Entry Form in WPF?

(24 minutes, 32 seconds)



#2 | How Do I: Display Data in a List in WPF?

(11 minutes, 47 seconds)



#3 | How Do I: Create a Lookup Combobox in WPF?

(23 minutes, 43 seconds)



#4 | How Do I: Hook Up and Display Validation in WPF?

(22 minutes, 20 seconds)



#5 | How Do I: Edit Tabular Data in WPF?

(31 minutes, 3 seconds)



#6 | How Do I: Create a Master-Detail Data Entry Form
in WPF?


(24 minutes, 58 seconds)



#7 | How Do I: Format Data in WPF Controls?

(11 minutes, 22 seconds)





Windows Forms Controls Series:



This
how-to video series is dedicated to getting beginner Visual C#
developers productive with some of the most common Windows Forms
controls, showing how to use them in Visual C#.



#1: How to Add Audio Part 1

(6 minutes, 28 seconds)



#2: How to add Audio Part 2

(5 minutes, 3 seconds)



#3: Customizing the Button Control

(9 minutes, 4 seconds)



#4: How to use the Dialog Controls

(12 minutes, 24 seconds)



#5: How to use the FlowLayout Panel

(6 minutes, 23 seconds)



#6: How to create a System Tray application using the
NotifyIcon control


(6 minutes, 45 seconds)



#7: How to call other applications using the Process
control


(7 minutes, 34 seconds)



#8: How to use the SplitContainer control

(5 minutes, 34 seconds)



#9: How to use the TableLayout control

(11 minutes, 26 seconds)



#10: How to use the Timer control

(6 minutes, 38 seconds)



#11: How to use the BackgroundWorker control

(9 minutes, 3 seconds)



#12: How to use the ListView control Part 1

(16 minutes, 42 seconds)



#13: How to use the ListView control Part 2

(17 minutes, 14 seconds)



#14: How to use the MenuStrip control

(11 minutes)



#15: How to use the PictureBox control

(9 minutes, 57 seconds)



#16: How to use the RichTextBox control

(9 minutes, 43 seconds)



#17: How to use the Status Strip control

(14 minutes, 54 seconds)



#18: How to use the Tab control

(8 minutes, 36 seconds)



#19: How to use the ToolStrip control

(7 minutes, 19 seconds)



#20: How to use the TreeView control

(17 minutes, 50 seconds)



#21: How to use the WebBrowser control

(13 minutes, 32 seconds)



#22: How Do I: Add Controls to a Document at Run Time
in an Application-Level Add-In?


(6 minutes, 5 seconds)



#23: Deploying Excel Application-level Add-ins with
Windows Installer


(6 minutes, 5 seconds)



#24: Deploying Excel Document-level Customizations
with Windows Installer


(6 minutes, 5 seconds)



#25: How Do I:Create a report from a database?

(10 minutes, 12 seconds)



#26: How Do I:Create a report from a business object?

(11 minutes, 38 seconds)



#27 | How Do I: Create a Detail Edit Form for Tabular
Data or Data in a Grid?


(21 minutes, 50 seconds)





The Developing Windows Azure Applications with Visual Studio
Video Series
:



In this series Jim Nakashima shows how to develop Windows Azure
applications with the tools provided in Visual Studio.

Presented by: Charlie Calvert



#1 | Windows Azure: Getting the Tools, Creating a
Project, Creating Roles and Configuration


(14 minutes, 26 seconds)



#2 | Running and Debugging a Windows Azure
Application Locally with Visual Studio


(6 minutes, 11 seconds)



#3 | Deploying Windows Azure Applications from Visual
Studio


(6 minutes, 56 seconds)


"

WebMatrix Beta 3: Now Available!

WebMatrix Beta 3: Now Available!: "Laurence Moroney announces the release of WebMatrix Beta 3, complete with some FAQ's and links for more info."

Tuesday, October 26, 2010

Web Development Tips and Tools for Beginners (and Experts)

Web Development Tips and Tools for Beginners (and Experts): "

Every great web developer starts with HTML. From there comes an array of tools that every developer can use to create great websites.The basics would be a text editor and an image editing software.

"

7 Best Open Source Projects for .NET Developers

7 Best Open Source Projects for .NET Developers: "

Despite the considerable time and resources Microsoft and the .NET community have invested in open source initiatives in recent years, it’s surprising how often the two camps are treated as antithetical to one another.

Yet the reality is that reliance upon open source development tools within the Microsoft community is significant and growing. In this article we’ll shed some insight into this widespread practice, introducing seven open source solutions embraced by millions of .NET developers around the globe.

AJAX Control Toolkit

In a mere five years since the term AJAX was first coined, the practice of using a blend of JavaScript, XML, and asynchronous communications to enhance the user’s online experience has grown from one of novelty to necessity. Because Ajax-driven features have become so commonplace, it wasn’t long before developers were hard at work creating AJAX frameworks which would make certain functionality and controls such as calendars and client-side form validation readily available.

.NET developers have a particularly rich solution at their disposal in the ASP.NET AJAX Control Toolkit. Jointly developed by Microsoft and the developer community, the AJAX Control Toolkit offers dozens of powerful controls such as a starred rating widget, modal popup window, password strength validator, and a draggable panel.

Check out the project’s page on the ASP.NET website for a comprehensive list of control demos, in addition to dozens of tutorials which show you how to take advantage of the toolkit’s many features.

ASP.NET MVC

The MVC architecture plays a central role in the modern website development, with solutions such as Ruby on Rails and the Zend Framework using MVC as the fundamental basis for framework-driven development. Thanks to the ASP.NET MVC Framework, .NET developers also have a powerful open source framework solution at their disposal. Supporting MVC tier separation, test-driven development, and a series of best practices typically summarized as the “convention over configuration” paradigm, the ASP.NET MVC Framework offers .NET developers a powerful solution for building complex websites. Further, because it’s .NET-based, developers can continue taking advantage of other ASP.NET features such as data caching and forms authentication. You’ll also find a number of other projects created to further enhance the ASP.NET MVC Framework’s capabilities, including notably MvcContrib, which extends the ASP.NET MVC framework to include features such as UI helpers and model binders.

The ASP.NET MVC Framework website provides newcomers with an impressive array of learning resources, including a video-based tutorial series which guides viewers through the creation of a sample web application.

CruiseControl

The complex nature of today’s software has required the software development community to reconsider the development process, introducing practices which both reduce development time and increase quality. This reevaluation has led to numerous best practices which have become widespread within enterprise environments, notably test-driven development and continuous integration. The latter practice attempts to minimize the time and effort involved in integrating a complex project’s many pieces by regularly and rigorously integrating the project’s components throughout the entire development process. This allows the developers to detect and resolve integration issues quickly rather than allow the problem’s complexity to grow over time.

CruiseControl. Offering tools for automating the build process, browsing the build results, and producing build reports, CruiseControl has become such a popular continuous integration solution that a large extension ecosystem has emerged.

DotNetNuke

With businesses busy migrating all aspects of their operations online, the need for powerful web-based content management tools stretches far beyond those used to update a website’s marketing copy. Indeed, today’s website is often a conduit for not only selling a business’ products and services, but also managing sales leads and other contacts, maintaining documentation, and serving multimedia such as pictures and video. The most effective way to manage and organize these myriad types of content is through a centralized content management tool. One of the most popular such solutions is DotNetNuke, a powerful .NET-driven content management platform used by hundreds of thousands of small businesses and Fortune 500 corporations alike around the globe.

Mono

The 2002 release of .NET Framework 1.0 represented a watershed in the history of software development, as among other features it provided developers with the ability to create applications using any language which supported the .NET Common Language Runtime. Not surprisingly, Microsoft understandably targeted the Windows operating system as the sole platform for running .NET applications, leaving those running Linux or OS X in the dark. Yet because .NET was based on a series of published standards, a group of enterprising developers created the Mono project which brought .NET capabilities to non-Microsoft platforms.

Be sure to check ut the Mono project website for more information, in addition to links to developer resources such as Mono-specific tools for Microsoft Visual Studio.

NAnt

Even novice Java and .NET developers are well acquainted with the code and compile development cycle, a process which becomes increasingly time consuming and tedious as the project grows in size and complexity. Tired of dealing with a growing jumble of build difficulties, developer James Davidson created Ant, a build tool for Java projects which subsequently became the most diffuse build solution for the Java community. A subsequent tool named NAnt brings similar capabilities to the .NET community.

Using NAnt you can create build scripts which automate all aspects of your .NET project’s build process, ranging from executing tests to creating documentation. See this list for a complete breakdown of natively supported tasks.

NHibernate

Despite the ubiquitous use of relational databases within all sectors of software development, the relationship between developer and database is often a rocky one. The friction arises due to the difficulties involved in effectively transforming data passed between the application and database into formats supported by the respective components. Developers have gone to great lengths to create solutions which do much of the heavy transformative lifting for them, notably within object-relational mapping (ORM) frameworks such as Hibernate.

The NHibernate website offers an enormous number of useful resources which can help you get started using this powerful ORM solution, including a detailed manual.

Are you using a .NET open source project not listed here? Tell us about it in the comments!

"