Sunday, September 30, 2007

What is a Fluent Interface?

Full article "How to design a Fluent Interface", compares and examples see HERE

Get last day of the month

DateTime GetLastDayOfMonth(DateTime date) 
{
return
new DateTime(date.Year,
date.Month,
DateTime.DaysInMonth(
date.Year,
date.Month));
}

Thursday, September 20, 2007

Accordion 2.0 by Kevin Miller

Kevin Miller has updated  to version 2.0 his extraordinary  AJAX  control ACCORDION


AJAX Accordion

New futures:

  • Open/Close functionality added (Click on an active accordion).
  • Nested Vertical Accordions
  • Accordions will dynamically resize on content added REAL TIME!
  • ...lots of bug fixes!

 Very simple using:

Include 3 JavaScript files to HTML page

<script type="text/javascript" 
src="javascript/prototype.js"></script>
<script type="text/javascript"
src="javascript/effects.js"></script>
<script type="text/javascript"
src="javascript/accordion.js"></script>
and...
<h2 class="accordion_toggle">Title Bar</h2>
<div class="accordion_content">...</div>
...
...
...
<h2 class="accordion_toggle">Title Bar</h2>
<div class="accordion_content">...</div>

More option see here (In toggle "How to use")


kick it on DotNetKicks.com


Sunday, September 16, 2007

Sunday, September 09, 2007

Determining when a procedure has been changed

SELECT 
[StoredProcedure name]
,Modify_date
,Create_date
,*
FROM
sys.procedures

Labels:

Wednesday, September 05, 2007

CSS Table Gallery

Candy style
CSS Candy style

Red and Black style
CSS Red and Black style

The OC style
CSS The OC style

To more styles click here

10 SQL Server Functions That You Hardly Use But Should

A using and explanation next SQL functions:

BINARY_CHECKSUM
SIGN

COLUMNPROPERTY
DATALENGTH
ASCII, UNICODE
NULLIF
PARSENAME
STUFF
REVERSE
GETUTCDATE

Labels:

Tuesday, September 04, 2007

Clear cache and buffers in MSSQL

Use this to clear the cache and buffers to ensure comparison are accurate.

dbcc freeproccache
go
dbcc dropcleanbuffers
go
Labels:
 
Labels:

20 Tips to Improve ASP.net Application Performance

Read full article

by Real World Software Development

ASP.NET AJAX Shorthand Syntax

CommandShortcut to
$get('YourControlName') Sys.UI.DomElement.getElementById - gets a reference to the DOM element, same as document.getElementById
$find() Sys.Application.findComponent
$create() Sys.Application.Component.create
$addHandler(FormElement, EventName, HandlerMethod)  Sys.UI.DomEvent.addHandler  
$clearHandlers(FormElement)Sys.UI.DomEvent.clearHandlers
$removeHandler(FormElement)Sys.UI.DomEvent.removeHandler

kick it on DotNetKicks.com

Sunday, September 02, 2007