CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets for: Rob
 
<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
<div id="calendars">
<div id="calendar"></div>
<div id="minical" style="width:250px;" ></div>
</div>
 
 
<button id="test" type="button" ></button>
by Rob   May 18, 2010 @ 10:26am
Tags:
357 Views
no comments
 
C#
DateTime origin = new DateTime(1970, 1, 1, 0, 0, 0, 0);
origin = origin.AddSeconds(1272168000);
by Rob   May 18, 2010 @ 9:19am
Tags:
127 Views
no comments
 
    <div id="tableframe" style="width: 80%; padding-left:50px; padding-right:50px;">
        <%var customers = (List<Customer>)ViewData["customers"]; %>
        
        <%=Html.Grid(customers).Columns(columns =>
{
                columns.For(x => x.CustomerID).Named("ID");
                columns.For(x => x.ContactName).Named("Name");
                columns.For(x => x.CompanyName).Named("Company");
                columns.For(x => x.Country).Named("Country");
            }).Attributes(new Dictionary<string, object>() { { "id", "customers" },{"width","100%"} }) %>
by Rob   May 07, 2010 @ 7:30am
Tags:
230 Views
no comments
 
$("#one").show('fast').html("did you mean <strong><em>test</em></strong>? <a href='#'>yes</a>|<a href='#'>no</a>").position(
{
    of:$("table tr td:eq(2)"),
    my:'right bottom',
    at:'left bottom',
    offset:'-3 -3',
    collision:'flip flip',
});
by Rob   May 07, 2010 @ 7:29am
Tags:
111 Views
no comments
 
//    <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/themes/smoothness/jquery-ui.css" rel="Stylesheet" type="text/css" />
//    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
//    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"></script>
//    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/i18n/jquery-ui-i18n.min.js"></script>    
//   
//    <script type="text/javascript" src="<%=Url.Content("~/Scripts/jqueryfy.js") %>"></script>
 
function jQueryfy() {
    $("head link[href$=Site.css]").remove();    
    $("div#header, div#main").addClass("ui-widget");
by Rob   April 27, 2010 @ 12:25pm
Tags:
246 Views
no comments
 
<div id="tableframe" style="width: 80%; padding: 120px;">
    <%var customers = (List<Customer>)ViewData["customers"]; %>
    
    <%=Html.Grid(customers).Columns(columns => {
            columns.For(x => x.CustomerID).Named("ID");
            columns.For(x => x.ContactName).Named("Name");
            columns.For(x => x.CompanyName).Named("Company");
            columns.For(x => x.Country).Named("Country");
        }).Attributes(new Dictionary<string, object>() { { "id", "customers" },{"width","100%"} }) %>
    <div id="leftpos" class="pos" style="width: 70px; height: 20px; position: absolute;
by Rob   March 26, 2010 @ 1:11pm
Tags:
197 Views
no comments
 
C#
<#@ template language="C#v3.5" hostspecific="True" debug="True" #> 
<#@ output extension="cs" #>
<#@ assembly name="Microsoft.SqlServer.ConnectionInfo" #>
<#@ assembly name="Microsoft.SqlServer.SqlEnum" #>
<#@ assembly name="Microsoft.SqlServer.Smo" #>
<#@ assembly name="System.Data" #>
<#@ assembly name="System.Core.dll" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="Microsoft.SqlServer.Management.Smo" #>
<#@ import namespace="Microsoft.SqlServer.Management.Common" #>
by Rob   March 19, 2010 @ 12:44pm
400 Views
no comments
 
<input id="pname" type="text" autocomplete="off" />
<input id="pname_h" type="text" />
<input id="vname" type="text" autocomplete="off"/>
<script type="text/javascript">
    function formatItem(row) {
        return row[0] + " (<strong>id: " + row[1] + "</strong>)";
    }
    function findValueCallback(event, data, formatted) {
        $("#pname").val(data.Name);
        $("#pname_h").val(data.Id);
by Rob   March 18, 2010 @ 10:51am
Tags:
196 Views
no comments
 
C#
<#@ template language="C#v3.5" hostspecific="True" debug="True" #> 
<#@ output extension="cs" #>
<#@ assembly name="Microsoft.SqlServer.ConnectionInfo" #>
<#@ assembly name="Microsoft.SqlServer.Smo" #>
<#@ assembly name="System.Data" #>
<#@ import namespace="Microsoft.SqlServer.Management.Smo" #>
<#@ import namespace="Microsoft.SqlServer.Management.Common" #>
<#@ import namespace="System.Data.SqlClient" #>
<#@ import namespace="System.Collections.Specialized" #>
<#
by Rob   March 04, 2010 @ 7:47am
Tags: T4, Sql, c#
1126 Views
no comments
 
C#
public static IEnumerable<TSource> Except<TSource>(this IEnumerable<TSource> first, IEnumerable<TSource> second, Func<TSource, TSource, bool> comparer)
{
      return first.Except(second, new LambdaComparer<TSource>(comparer));
}
public class LambdaComparer<T> : IEqualityComparer<T>
    {
        private readonly Func<T, T, bool> _lambdaComparer;
        private readonly Func<T, int> _lambdaHash;
 
        public LambdaComparer(Func<T, T, bool> lambdaComparer) :
by Rob   January 22, 2010 @ 10:58am
Tags:
169 Views
no comments
 
C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace System.Linq
{
    public static class LinqExtensionMethods
    {
        public static IEnumerable<TSource> DistinctBy<TSource, TKey> (this IEnumerable<TSource> source, Func<TSource, TKey> keySelector)
by Rob   January 22, 2010 @ 10:56am
Tags:
310 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate