Format:
Recent snippets for: Arjan
Imports System Imports EnvDTE Imports EnvDTE80 Imports EnvDTE90 Imports EnvDTE90a Imports EnvDTE100 Imports System.Diagnostics Public Module Module1
183 Views
no comments
<Rectangle x:Name="myRect2" Width="20" Height="20" > <Rectangle.Fill> <ImageBrush ImageSource="Images/nav_logo13.png" Stretch="None" AlignmentX="Left" AlignmentY="Top" > <ImageBrush.Transform> <CompositeTransform TranslateX="-20" TranslateY="-20"/> </ImageBrush.Transform> </ImageBrush> </Rectangle.Fill> </Rectangle>
324 Views
no comments
{http://laptop-03:18982/_layouts/GEMRoot/Locations.aspx?locationFilter=straat}
AbsolutePath: "/_layouts/GEMRoot/Locations.aspx"
AbsoluteUri: "http://laptop-03:18982/_layouts/GEMRoot/Locations.aspx?locationFilter=straat"
Authority: "laptop-03:18982"
DnsSafeHost: "laptop-03"
Fragment: ""
Host: "laptop-03"
HostNameType: Dns
IsAbsoluteUri: true
IsDefaultPort: false
160 Views
no comments
<membership defaultProvider="HellemansMembershipProvider"> <providers> <add name="HellemansMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="GEMBusinesDB" applicationName="GEM" requiresQuestionAndAnswer="false" passwordFormat="Hashed" minRequiredNonalphanumericCharacters="0" /> </providers> </membership>
181 Views
no comments
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web.UI.WebControls; using MontfoortIT.WebControls.Extensions; namespace Hellemans.GEM.SharePoint.WebControls.Collections { public class BaseListView : ListView
363 Views
no comments
public static IEnumerable<ValidationResult> Validate(object component) { return from descriptor in TypeDescriptor.GetProperties(component).Cast<PropertyDescriptor>() from validation in descriptor.Attributes.OfType<System.ComponentModel.DataAnnotations.ValidationAttribute>() where !validation.IsValid(descriptor.GetValue(component)) select new ValidationResult( validation.ErrorMessage ?? string.Format(CultureInfo.CurrentUICulture, "{0} validation failed.", validation.GetType().Name), new[] { descriptor.Name }); }
233 Views
no comments
public static Control FindControlUsingStack(Control root, string id) { // Seed it. Stack<Control> stack = new Stack<Control>(); stack.Push(root); while(stack.Count > 0) { Control current = stack.Pop(); if (current.ID == id)
152 Views
no comments
public class MonthCollection : List<string> { public MonthCollection() { DateTimeFormatInfo dfi = Thread.CurrentThread.CurrentCulture.DateTimeFormat; foreach (string monthName in dfi.MonthNames) { Add(monthName); } }
174 Views
no comments
// Iphone Javascript Clock var timerID = null; var timerRunning = false; function stopclock() { if (timerRunning) clearTimeout(timerID); timerRunning = false; } function showtime() { var timeValue;
192 Views
no comments
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Collections.Specialized; namespace WebControls { /// <summary>
264 Views
no comments
<location path="Dashboard.aspx"> <system.web> <authorization> <allow roles="Administrator, Developer ,Customer" /> <deny users="*"/> </authorization> </system.web> </location>
164 Views
no comments
//Accordion $('.accordion> .accordionContent').hide(); $('.accordion> .accordionHeader').click(function() { var $nextDiv = $(this).next(); var $header = $(this); var $visibleSiblings = $nextDiv.siblings('div:visible'); if ($visibleSiblings.length) { $visibleSiblings.prev().toggleClass("open");
195 Views
no comments
//UpdatePanel BusyIndicator // gif: http://www.ajaxload.info // html: <span id="busyIndicator" class="floatRight"></span> // #busyIndicator {width:16px; height:16px;} // .busy {background:transparent url(../Images/ajax-loader.gif) no-repeat scroll left top;} var prm = Sys.WebForms.PageRequestManager.getInstance(); prm.add_initializeRequest(InitializeRequest); prm.add_endRequest(EndRequest);
294 Views
no comments
//Document Ready $(document).ready(function() { }); //Add ie6 class if ($.browser.msie && $.browser.version == "6.0") $('body').addClass("ie6"); //Jquery loaded check
278 Views
no comments
//Collapsible Panel $('.titleRow').click(function(){ var $el = $(this); $el.next().slideToggle('fast'); $el.toggleClass('open'); }); //Collapsible Panel width class only $('.itemRow').click(function() { var $el = $(this); $el.next().toggleClass('hide');
280 Views
no comments
//Disable Textbox $('#<%=CommentCheckBox.ClientID%>').click(function() { if ($("#<%=CommentCheckBox.ClientID%>").attr('checked')) $("#<%=CommentTextBox.ClientID%>") .val("U heeft er voor gekozen geen opmerkingen te plaatsen") .toggleClass('disabled') .attr("disabled", "disabled").blur(); else $("#<%=CommentTextBox.ClientID%>") .val("")
240 Views
no comments
// Howto to add the sql Memberschip provider and configure a default web application
// Register the sql membership provider tables in sql server
// -E Authenticate with current Windows credentials.
// -S server
// -d Database
// -A mr -> Membership and Role manager
C:\Windows\Microsoft.NET\Framework\v2.0.5027>aspnet_regsql.exe -E -S server-01 -d MyDatabaseCatalogName -A mr
// Add membership and roleprovider to Web.config and configure connectionstings:
306 Views
no comments
string hostingPage = Convert.ToString(HtmlPage.Document.GetProperty("referrer")); string xapUrl = Current.Host.Source.AbsoluteUri; string applicationRoot = xapUrl.Substring(0, xapUrl.LastIndexOf("ClientBin"));
244 Views
no comments
// Select all ItemList.Items.Cast<ListItem>().All(a => a.Selected = true); // Select correct value in Dropdownlist dropDownList.SelectedIndex = dropDownList.Items.IndexOf( dropDownList.Items.FindByValue(BusinessCollection.ID.ToString())); radioButtonList.SelectedIndex = radioButtonList.Items.IndexOf(
197 Views
no comments
//Uneven Row <%# Container.DisplayIndex % 2 == 0 ? "" : "altRow" %> // Datetime Formatter with Culture <%# ((DateTime)Eval("LogDatum")).ToString("t", System.Globalization.CultureInfo.CurrentCulture) %> // Datetime Formatter <%#Eval("LogDatum", "{0:HH:mm}")%> //Nullable Boolean
219 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
