Unless you limit yourself to one-page web sites, you’ll need to design navigation. In fact, navigation is among the most important parts of any web design, and requires a great deal of thought if visitors are to move around your site easily.
Maand: november 2007
Take the Leap: First Steps in Freelancing
Very few people will ever achieve their greatest life goals. How many people do you know who have achieved their dream?
Running ASP.NET applications under Community Server
In this article you will learn how to successfully setup your own ASP.NET 2.0 application to run as a virtual directory under the Community Server 2.1 website.
UML TOOLBOX: 20+ UML Tools & Tutorials
UML is a globally accepted standard for software modeling in the technology community. Visualization with UML gives a punch to the whole development process. We’ve gathered over 20 Tools & Tutorials to help you get going with UML.
VectorMagic | The Online Tool for Precision Bitmap to Vector Conversion
The Online Tool for Precision Vectorization
VectorMagic – The Online Tool for Precision Bitmap to Vector Conversion
Dust-Me Selectors Version 2.0
After many months of toiling in our secret underground laboratories, Dust-Me Selectors Version 2.0 is finally here!
If you’re one of the many people who made suggestions or commented on the original version, you’ll be pleased to know that the new version incorporates everything you asked for and more.
It was quite a challenge to bring all this together, particularly since Mozilla’s documentation is so … er … erratic (in fact for some functionality I had to look in Firefox’s source code just to figure out how it’s done!) But there’s nothing like a challenge to exercise the mind, and I think you’ll agree that the final result is well worth the gritty struggle.
How To Create A Custom Control
- Create a new ASP.NET Web Application, Windows Forms Control Library or Class Library project
- Create a new class and inherit from System.Web.UI.WebControls.WebControl or from a specific control (like TextBox)
- Override the Render method and call writer.write() to write raw HTML to the page. ASP.Net server tags won’t work
- Use WriteBeginTag(), WriteEndTag(), RenderBeginTag(), RenderEndTag(), AddAttribute(), AddStyleAttribute() and WriteAttribute() to create HTML tags and attributes
- Add design-time attributes to properties, like:
[Category(“Appearance”)]
[Description(“The text to be shown in the control”)] - Define a tagprefix attribute:
[assembly: System.Web.UI.TagPrefix(“Anthoro.WebControls”, “awc”)]
namespace Anthoro.WebControls
{ … - Add a toolbox icon:
- Create a 16×16 pixel bitmap (BMP 16 colors) with the same name as the control.
- Add it to the root of your project
- Set its Build Action to “Embedded Resource”
- Add additional resources (stylesheet, images, text files, …) and mark them as “Embedded Resource” also
- Add an Assembly attribute for each resource to your AssemblyInfo.cs:
[assembly: WebResource(“Anthoro.Controls.style.css”, “text/css”, PerformSubstitution = true)]
When the PerformSubstitution parameter is set to true, the resource will be processed and other webresource URL’s inside it will be parsed and replaced (works only for text-based resources:
background-image: url(‘<%= WebResource("Anthoro.Controls.back.png")%>‘); - Pay attention to the full namespace and folder structure where your resources are stored. The resource name is build as: Namespace + Subfolders + filename
- At design-time, the control is displayed by running the rendering logic. To override this, use the GetDesignTimeHtml(), GetEmptyDesignTimeHtml() and GetErrorDesignTimeHtml() methods
Update: Unlike in C#, in VB.Net the subfolders are not taken into account with the namespace. So the example above in point 10 will be: Namespace + filename
.NET Design Guidelines & Coding Conventions
.NET Framework Developer’s Guide:
Design Guidelines for Developing Class Libraries
.NET Framework General Reference:
Design Guidelines for Class Library Developers
CSS: The Great Spicificity Swindle
Great understandable article about the 3 most important subjects in CSS: the cascade, inheritance and specificity!I recently held a workshop for my colleagues covering these as the primary subjects and more advanced CSS techniques. This article explains them in an understandable non-technical language.
How To Minimize Your Javascript and CSS Files for Faster Page Loads
Over the last 11 years I’ve spent a great deal of time trying to improve client websites with an eye for minimalist interface design and code. While the minimalist design esthetic is not the choice for every client the notion of less code and faster load times always goes over well. Today, many of web applications I design and code for have a plethora of Javascript and CSS files. Fortunately, there are many options to solve this rather simple problem. Compression, obfuscation and bundling are all great options.
Below you’ll find a list of the sites I’ve visited to learn more about Javascript and CSS compression. Please let me know through email or a comment if you know of any other great compression resources, and I’ll be glad to post them. Most of the descriptions below are taken from the developers of the example. Thanks, Max.
Max Kiesler – How To Minimize Your Javascript and CSS Files for Faster Page Loads
Powered by ScribeFire.
Google Code Revamps with jQuery
We have revamped Google Code, the site which is the home to developers, and open source hosting. A ton of work went into cleaning up the UI integrating and unifying content, and simplifying.
The site uses jQuery for a lot of its work, and also eats a lot of dogfood.
Ajaxian – Google Code Revamps with jQuery
Powered by ScribeFire.
C# MYSQLWrapper Class and PHPWrapper-Script
The MYSQLWrapper Class is a small and simple to use solution for accessing serverside MySQL Databases at a standard webspace that supports php and mysql.
I thought it would be useful because many of you have got those cheep php/mysql supported sites and want to use data at client side.
SQL queries and non query commands proceed as follows:
- The client side c# programm passes the needed sql command to the serversided script using http request.
- The serversided script performs sql statement an returns the result, if there is any, back to the client
- Now the client parses returned data and creates a Resultset that behaves simliar to the sqlDataReader
The Code Project – C# MYSQLWrapper Class and PHPWrapper-Script
Powered by ScribeFire.