Archive for February, 2010

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 »

Get the parent Folder for a SPListItem

To retrieve the parent folder
my extension method

public static SPFolder GetParentFolder(this SPListItem spListItem)

{

if (spListItem == null)

return null;

SPFile spFile = spListItem.Web.GetFile(spListItem.Url);

if (spFile == null)

return null;

return spFile.ParentFolder;

}

Use

SPFolder parentFolder = sPListItem.GetParentFolder();

if (parentFolder != null)

{

// do some stuffs..

}

public static SPFolder GetParentFolder(this SPListItem spListItem)
{
if (spListItem == null)
return null;
SPFile spFile = spListItem.Web.GetFile(spListItem.Url);
if (spFile == null)
return null;
return spFile.ParentFolder;
}[/csharp]

More »

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

In my previous post I explain a way to build a “visible on hover” menu using jQuery.
Now, I’ll explain you how to do that without javascript, using only CSS.
First, built the web page and a CSS file

<html>
<head>
<title>Sam Beauvois | CSS on hover menu</title>
<link href="demo.css" type="text/css" rel="stylesheet" />
</head>

<body>
<h2>Visible on hover [...]

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 »

How to get the list of all stored procedures using a specific table

Big projects with a lot of stored procedures can be a mess to maintain.
If you change one field in a table, you have to check if there is no side effect in the stored procedures using this table.
This “sp_depends” system stored procedure can help you finding your stored procedures using the table you modified.
Just create [...]

More »