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 matching tags of Custom
C#
namespace Nowcom.Quicksilver
{
  public interface IMessage
  {
  }
}
 
namespace Nowcom.Quicksilver
{
    using System.ComponentModel.Composition;
652 Views
no comments
 
C#
/// <summary> 
/// Summary description for CustomCatalogZone 
/// </summary> 
public class CustomCatalogZone : CatalogZone 
{ 
// Fields 
private ITemplate _zoneTemplate; 
 
protected override CatalogPartChrome CreateCatalogPartChrome () 
{ 
by Athens Springer   October 29, 2009 @ 7:35am
165 Views
no comments
 
C#
/// <summary>
 /// A replacement for the declarative catalog part meant for limiting the webparts on a page to a single instance by hiding the webparts that already exist on the page.
 /// </summary>
 [Designer ( "System.Web.UI.Design.WebControls.WebParts.DeclarativeCatalogPartDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ), AspNetHostingPermission ( SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal ), AspNetHostingPermission ( SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal )]
 public class CustomCatalog : CatalogPart
 {
  // Fields
  private WebPartDescriptionCollection _descriptions;
  private string _webPartsListUserControlPath;
  private ITemplate _webPartsTemplate;
by Athens Springer   October 29, 2009 @ 7:34am
389 Views
no comments
 
C#
public class CustomWebPartChrome : WebPartChrome 
{ 
private WebPartZone thisZone; 
private WebPartManager thisMgr; 
 
public CustomWebPartChrome(WebPartZone zone, WebPartManager mgr) : base(zone, mgr) 
{ 
thisZone = zone; 
thisMgr = mgr; 
} 
by Athens Springer   October 29, 2009 @ 7:33am
347 Views
no comments
 
C#
public void DateValidate(object source, ServerValidateEventArgs value)
{
    // even number?
    if (IsDate(value.Value))
    {
        value.IsValid = true;
    }
    else
    {
        value.IsValid = false;
by LukCAD   July 16, 2009 @ 12:20am
134 Views
2 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