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>
357 Views
no comments
DateTime origin = new DateTime(1970, 1, 1, 0, 0, 0, 0);
origin = origin.AddSeconds(1272168000);
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%"} }) %>
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', });
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");
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;
197 Views
no comments
<#@ 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" #>
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);
196 Views
no comments
<#@ 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" #> <#
1126 Views
no comments
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) :
169 Views
no comments
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)
310 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
