Archive for the ‘ASP.NET’ Category

Custom paging with Subsonic 3 and ObjectDataSource in ASP.NET

Here is how I created a paged items list in ASP.NET 3.5 using Subsonic for data access, and ASP.NET Controls for the display.
I use Subsonic 3.0.0.4 with ActiveRecord and ASP.NET 3.5 SP1 webforms.
For this example, we are creating a blog post list and that the DAL is created (the data class we use is “DAL.BlogPost”).
The [...]

More »

Use ASP.NET Validators with the SharePoint:DateTimeControl

If you want to use asp.net validation system with the SharePoint’s DateTimeControl, the first thing you need to know is that this control is “just” a wrapper around simple ASP.NET controls (textbox, dropdownlist).
If you want to set the ControlToValidate property of an ASP.NET validator to the DateTimeControl’s ID, it will throw an error!
As you can [...]

More »

CSS Mixer

 Css mixer is a tool I’ve developped in C# winforms, .NET framework 3.5
You can use it to improve you ASP.NET Themes or your CSS files for all your web projects.
If you have many css files linked to a page, you can group them in a single file with CSS Mixer.
You can also minify CSS files [...]

More »

How to build a “visible on hover” action menu with jQuery ?

Here is a quick way to use jQuery library to create a “visible on hover” action menu.
I’ll explain step by step how to do that.
1.) Create an html page with actions in a container

<html>
<head>
<title>Sam Beauvois | jQuery usage demo 1</title>
</head>
<body>
<h2>Visible on hover with jQuery demo.<h2>
<h3>Please put you mouse hover [...]

More »

Don’t repeat your common CSS between your different themes

To fully understand this article, you need an Asp.Net Themes system knowledge
The case :
You have an application with a CSS layout, and a few themes.
There is just a little change between the different themes, by example you change only the color scheme.
A solution to do that is to repeat all CSS files in all your [...]

More »