This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="PageView.aspx.cs" Inherits="BissellMVPTest.Web.PageView" %> | |
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> | |
</asp:Content> | |
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> | |
<h2>New Post</h2> | |
<asp:Panel ID="savePanel" Visible="<%# isVisible %>" runat="server"> | |
<p> | |
Title: <%# Model.Title %> | |
</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace BissellMVPTest.BLL.Views.EventArguments | |
{ | |
public class BlogPostArgs : EventArgs | |
{ | |
public string PostTitle { get; set; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using WebFormsMvp; | |
using BissellMVPTest.BLL.Views.Models; | |
using BissellMVPTest.BLL.Views; | |
using BissellMVPTest.BLL.Views.EventArguments; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Web.UI; | |
using System.Web.UI.WebControls; | |
using WebFormsMvp; | |
using WebFormsMvp.Web; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var KeyMap = { | |
"Enter":13, | |
"Shift":16, | |
"Tab":9, | |
"LeftArrow":37 | |
}; | |
for (var key in KeyMap) { | |
KeyMap["is" + key] = function(compare,ev) { | |
return ev.keyCode == compare |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String.prototype.DateWCF = function () { | |
var d = new Date(parseInt(this.substr(6))); | |
return (d.getUTCMonth() + 1) + '/' + d.getUTCDate(); | |
}; | |
//usage | |
var option = //some shipping option object returned from a RESTful WCF service | |
option.DeliveryEnd.DateWCF() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//AOP powers rely on invoke() being used instead of () | |
Function.prototype.invoke = function(args) { | |
if (this.before) { | |
this.before(args); | |
} | |
val = this(args); | |
if (this.after) { | |
this.after(args); | |
} | |
return val; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Infrastructure\BinarySocket; | |
class BinarySocket | |
{ | |
protected $socket; | |
public function __construct($ip,$port) | |
{ | |
$this->socket = @socket_create(AF_INET,SOCK_STREAM,SOL_TCP); | |
$connected = @socket_connect($this->socket,$ip,$port); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace DMSSubscriberUpdate.Domain | |
{ | |
public class Attempt | |
{ | |
public int ChannelID { get; set; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace DMSSubscriberUpdate.Domain.Services | |
{ | |
class SubscriberProcessor | |
{ | |
protected Subscriber Subscriber { get; set; } |