Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Before:
`
Array
(
[0] => Array
(
[total_sessions] => 24
[study_type_id] => 1
)
[1] => Array
(
[total_sessions] => 24
[study_type_id] => 2
)...
0
1230
posted 16 years ago by iloveitaly
This class uses static methods to create html controls on the fly in .NET
2
1697
posted 16 years ago by mpcircuitry
This will delete all items in a SharePoint list. Better than looping through a SPListItemCollection and doing a .delete();
0
1777
posted 16 years ago by blackf0rk
This is the first version of my PHP DB connection class using ODBC
0
1811
posted 16 years ago by mpcircuitry
In DB.GetData(select) is executed
new SqlDataAdapter(Select, dbConnection).Fill(table)
0
1260
posted 16 years ago by tomaszsimon
You have a white shine on top just by changing the background color in whatever color you like.
0
1286
posted 16 years ago by crs
Here is a nice snippet to open links in pop-up windows. Just add the popup css class to your link to make it work.
3
1927
posted 16 years ago by math89
The target="blank" attribute is not valid XHTML 1.0 Strict.
using jQuery, you can achieve the same functionality without having validation problems.
0
1313
posted 16 years ago by math89
Great way to show the user that something is happening without too much tedious work. As simple to use as putting the following code in Form_Load:
AutoWaitCursor.Cursor = Cursors.WaitCursor;
AutoWaitCursor.Delay = new TimeSpan(0, 0, 0, 0, 25);...
1
3370
posted 16 years ago by pckujawa
Calculate dir size recursive, follow the link above because the version above is better.
0
1530
posted 16 years ago by ginoplusio
Call it in the button click event after in(de)crementing CurrentPage value
0
1107
posted 16 years ago by tomaszsimon
For .net 2.0+ The one limitation to enumerations is revealed when you try to reverse lookup an enumeration value using Enum.Parse(). The parse function will return an inconsistent enum object if ever there are two or more enumerations with the same...
0
2009
posted 16 years ago by bryanlyman