Skip to content

Instantly share code, notes, and snippets.

@aloker
aloker / gist:4d53960d0dc9e038522e
Created June 18, 2015 07:51
A possible fix for Albacore #167
diff --git a/lib/albacore/cross_platform_cmd.rb b/lib/albacore/cross_platform_cmd.rb
index dd7f58c..acec3d0 100644
--- a/lib/albacore/cross_platform_cmd.rb
+++ b/lib/albacore/cross_platform_cmd.rb
@@ -191,8 +191,8 @@ module Albacore
cmd = ::Rake::Win32.windows? ? 'where' : 'which'
parameters = []
- parameters << Paths.normalise_slashes(file) if dir == '.'
- parameters << Paths.normalise_slashes("#{dir}:#{file}") unless dir == '.'
namespace DFS
{
using System;
using System.Collections.Generic;
using System.Linq;
public class Control
{
public Control(string id)
{
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:DropDownList ID="monthDropDown" runat="server">
<asp:ListItem Value="1">Jan</asp:ListItem>
<asp:ListItem Value="2">Feb</asp:ListItem>
<asp:ListItem Value="3">Mar</asp:ListItem>
<asp:ListItem Value="4">Apr</asp:ListItem>
<asp:ListItem Value="5">May</asp:ListItem>
<asp:ListItem Value="6">Jun</asp:ListItem>
<asp:ListItem Value="7">Jul</asp:ListItem>
<asp:ListItem Value="8">Aug</asp:ListItem>
protected void btnRefresh_Click(object sender, EventArgs e)
{
selectSource.SelectParameters["userName"].DefaultValue = User.Identity.Name;
results.DataBind();
}
routes.Add(New CustomRoute("Issue{IssueNumber}-{PageNumber}", _
New With { Key .IssueNumber = 1, Key .PageNumber = 1 }, _
New With { Key .IssueNumber = "\d+", Key .PageNumber = "\d+" _
}))
Imports System.Web
Imports System.Web.Routing
Public Class CustomRoute
Inherits Route
Public Sub New(url As String, defaults As Object, constraints As Object)
MyBase.New(url, New RouteValueDictionary(defaults), New RouteValueDictionary(constraints), New PageRouteHandler("~/Dummy.aspx"))
End Sub
Public Overrides Function GetRouteData(httpContext As HttpContextBase) As RouteData