Changed the source control from Mercurial to git and added new examples.
This commit is contained in:
parent
2e5b85e798
commit
f9258fa976
13 changed files with 546 additions and 641 deletions
43
.gitattributes
vendored
Normal file
43
.gitattributes
vendored
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
*.doc diff=astextplain
|
||||||
|
*.DOC diff=astextplain
|
||||||
|
*.docx diff=astextplain
|
||||||
|
*.DOCX diff=astextplain
|
||||||
|
*.dot diff=astextplain
|
||||||
|
*.DOT diff=astextplain
|
||||||
|
*.pdf diff=astextplain
|
||||||
|
*.PDF diff=astextplain
|
||||||
|
*.rtf diff=astextplain
|
||||||
|
*.RTF diff=astextplain
|
||||||
|
|
||||||
|
*.bmp binary
|
||||||
|
*.gif binary
|
||||||
|
*.ico binary
|
||||||
|
*.jpg binary
|
||||||
|
*.png binary
|
||||||
|
|
||||||
|
*.ascx text
|
||||||
|
*.cmd text
|
||||||
|
*.coffee text
|
||||||
|
*.config text
|
||||||
|
*.cs text diff=csharp
|
||||||
|
*.csproj text merge=union
|
||||||
|
*.css text
|
||||||
|
*.cshtml text
|
||||||
|
*.htm text
|
||||||
|
*.html text
|
||||||
|
*.js text
|
||||||
|
*.msbuild text
|
||||||
|
*.resx text merge=union
|
||||||
|
*.ruleset text
|
||||||
|
*.Stylecop text
|
||||||
|
*.targets text
|
||||||
|
*.tt text
|
||||||
|
*.txt text
|
||||||
|
*.vb text
|
||||||
|
*.vbhtml text
|
||||||
|
*.vbproj text merge=union
|
||||||
|
*.xml text
|
||||||
|
*.xunit text
|
||||||
|
*.asp text
|
||||||
|
|
||||||
|
*.sln text eol=crlf merge=union
|
16
.gitignore
vendored
Normal file
16
.gitignore
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
App_Data
|
||||||
|
[Bb]in
|
||||||
|
[Oo]bj
|
||||||
|
[Tt]est[Rr]esults
|
||||||
|
*.suo
|
||||||
|
*.user
|
||||||
|
*.[Cc]ache
|
||||||
|
*[Rr]esharper*
|
||||||
|
packages
|
||||||
|
NuGet.exe
|
||||||
|
_[Ss]cripts
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.nupkg
|
||||||
|
*.ncrunchsolution
|
||||||
|
*.dot[Cc]over
|
|
@ -1,5 +1,7 @@
|
||||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio 2010
|
# Visual Studio 2013
|
||||||
|
VisualStudioVersion = 12.0.21005.1
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{244AF685-4E12-4893-89DA-939A2964C0FB}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{244AF685-4E12-4893-89DA-939A2964C0FB}"
|
||||||
ProjectSection(SolutionItems) = preProject
|
ProjectSection(SolutionItems) = preProject
|
||||||
License.txt = License.txt
|
License.txt = License.txt
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
@ -15,7 +16,8 @@
|
||||||
<FileUpgradeFlags>
|
<FileUpgradeFlags>
|
||||||
</FileUpgradeFlags>
|
</FileUpgradeFlags>
|
||||||
<OldToolsVersion>4.0</OldToolsVersion>
|
<OldToolsVersion>4.0</OldToolsVersion>
|
||||||
<UpgradeBackupLocation />
|
<UpgradeBackupLocation>
|
||||||
|
</UpgradeBackupLocation>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
@ -127,8 +129,13 @@
|
||||||
<Name>Asp.VS2010</Name>
|
<Name>Asp.VS2010</Name>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
||||||
|
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||||
|
</PropertyGroup>
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
|
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
|
||||||
|
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
<Target Name="BeforeBuild">
|
<Target Name="BeforeBuild">
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<string>>" %>
|
|
||||||
|
|
||||||
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
|
||||||
Azure Store Products
|
|
||||||
</asp:Content>
|
|
||||||
|
|
||||||
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
|
||||||
<h1><span class="product-category"><%=User.IsInRole("Home") ? "Home" : "Enterprise"%></span> Products</h1>
|
|
||||||
<label for="items">Select a product from the list:</label>
|
|
||||||
<% using (Html.BeginForm("Add", "Home")) { %>
|
|
||||||
<select name="selectedItem" class="product-list" id="items" size="4">
|
|
||||||
<% foreach (string product in ViewData.Model)
|
|
||||||
{ %>
|
|
||||||
<option value="<%=product%>"><%=product%></option>
|
|
||||||
<% } %>
|
|
||||||
</select>
|
|
||||||
<a href="javascript:document.forms[0].submit();">Add item to cart</a>
|
|
||||||
<% } %>
|
|
||||||
</asp:Content>
|
|
|
@ -1,76 +0,0 @@
|
||||||
<%@ Language="C#" Inherits="System.Web.Mvc.ViewUserControl<NerdDinner.Controllers.DinnerFormViewModel>" %>
|
|
||||||
|
|
||||||
<%= Html.ValidationSummary("Please correct the errors and try again.") %>
|
|
||||||
|
|
||||||
<% using (Html.BeginForm()) { %>
|
|
||||||
|
|
||||||
<fieldset>
|
|
||||||
|
|
||||||
<div id="dinnerDiv">
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<label for="Title">Dinner Title:</label>
|
|
||||||
<%= Html.TextBox("Title", Model.Dinner.Title) %>
|
|
||||||
<%= Html.ValidationMessage("Title", "*") %>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<label for="EventDate">Event Date:</label>
|
|
||||||
<%= Html.TextBox("EventDate", String.Format("{0:g}", Model.Dinner.EventDate)) %>
|
|
||||||
<%= Html.ValidationMessage("EventDate", "*") %>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<label for="Description">Description:</label>
|
|
||||||
<%= Html.TextArea("Description", Model.Dinner.Description) %>
|
|
||||||
<%= Html.ValidationMessage("Description", "*")%>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<label for="Address">Address:</label>
|
|
||||||
<%= Html.TextBox("Address", Model.Dinner.Address) %>
|
|
||||||
<%= Html.ValidationMessage("Address", "*") %>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<label for="Country">Country:</label>
|
|
||||||
<%= Html.DropDownList("Country", Model.Countries) %>
|
|
||||||
<%= Html.ValidationMessage("Country", "*") %>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<label for="ContactPhone">Contact Phone #:</label>
|
|
||||||
<%= Html.TextBox("ContactPhone", Model.Dinner.ContactPhone) %>
|
|
||||||
<%= Html.ValidationMessage("ContactPhone", "*") %>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<%= Html.Hidden("Latitude", Model.Dinner.Latitude)%>
|
|
||||||
<%= Html.Hidden("Longitude", Model.Dinner.Longitude)%>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<input type="submit" value="Save" />
|
|
||||||
</p>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="mapDiv">
|
|
||||||
<% Html.RenderPartial("Map", Model.Dinner); %>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
$(document).ready(function() {
|
|
||||||
$("#Address").blur(function(evt) {
|
|
||||||
//If it's time to look for an address,
|
|
||||||
// clear out the Lat and Lon
|
|
||||||
$("#Latitude").val("");
|
|
||||||
$("#Longitude").val("");
|
|
||||||
|
|
||||||
var address = jQuery.trim($("#Address").val());
|
|
||||||
if (address.length < 1)
|
|
||||||
return;
|
|
||||||
|
|
||||||
FindAddressOnMap(address);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<% } %>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<NerdDinner.Models.Dinner>" %>
|
|
||||||
|
|
||||||
<% if (Model.IsHostedBy(Context.User.Identity.Name)) { %>
|
|
||||||
|
|
||||||
<%= Html.ActionLink("Edit Dinner", "Edit", new { id=Model.DinnerID })%>
|
|
||||||
|
|
|
||||||
<%= Html.ActionLink("Delete Dinner", "Delete", new { id = Model.DinnerID })%>
|
|
||||||
|
|
||||||
<% } %>
|
|
|
@ -1,30 +0,0 @@
|
||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<NerdDinner.Models.Dinner>" %>
|
|
||||||
|
|
||||||
<script src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2" type="text/javascript"></script>
|
|
||||||
|
|
||||||
<script src="/Scripts/Map.js" type="text/javascript"></script>
|
|
||||||
|
|
||||||
<div id="theMap" style="width:520px">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
$(document).ready(function() {
|
|
||||||
var latitude = <%=Model.Latitude %>;
|
|
||||||
var longitude = <%=Model.Longitude %>;
|
|
||||||
|
|
||||||
if ((latitude == 0) || (longitude == 0))
|
|
||||||
LoadMap();
|
|
||||||
else
|
|
||||||
LoadMap(latitude, longitude, mapLoaded);
|
|
||||||
});
|
|
||||||
|
|
||||||
function mapLoaded() {
|
|
||||||
var title = "<%= Html.Encode(Model.Title) %>";
|
|
||||||
var address = "<%= Html.Encode(Model.Address) %>";
|
|
||||||
|
|
||||||
LoadPin(center, title, address);
|
|
||||||
map.SetZoomLevel(14);
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
|
@ -1,36 +0,0 @@
|
||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<NerdDinner.Models.Dinner>" %>
|
|
||||||
|
|
||||||
<script src="/Scripts/MicrosoftAjax.js" type="text/javascript"></script>
|
|
||||||
<script src="/Scripts/MicrosoftMvcAjax.js" type="text/javascript"></script>
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
function AnimateRSVPMessage() {
|
|
||||||
$("#rsvpmsg").animate({ fontSize: "1.5em" }, 400);
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<div id="rsvpmsg">
|
|
||||||
|
|
||||||
<% if (Request.IsAuthenticated) { %>
|
|
||||||
|
|
||||||
<% if (Model.IsUserRegistered(Context.User.Identity.Name)) { %>
|
|
||||||
|
|
||||||
<p>You are registered for this event!</p>
|
|
||||||
|
|
||||||
<% } else { %>
|
|
||||||
|
|
||||||
<%= Ajax.ActionLink( "RSVP for this event",
|
|
||||||
"Register", "RSVP",
|
|
||||||
new { id=Model.DinnerID },
|
|
||||||
new AjaxOptions { UpdateTargetId="rsvpmsg", OnSuccess="AnimateRSVPMessage" }) %>
|
|
||||||
<% } %>
|
|
||||||
|
|
||||||
<% } else { %>
|
|
||||||
|
|
||||||
<a href="/Account/Logon">Logon</a> to RSVP for this event.
|
|
||||||
|
|
||||||
<% } %>
|
|
||||||
|
|
||||||
</div>
|
|
|
@ -41,6 +41,8 @@ namespace Dlrsoft.VBScript
|
||||||
//feo = engine.ExecuteFile(filename, feo);
|
//feo = engine.ExecuteFile(filename, feo);
|
||||||
feo.SetVariable("response", System.Console.Out);
|
feo.SetVariable("response", System.Console.Out);
|
||||||
compiledCode.Execute(feo);
|
compiledCode.Execute(feo);
|
||||||
|
Console.WriteLine("Type any key to continue..");
|
||||||
|
Console.Read();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,6 +48,7 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="test\array.vbs" />
|
<Content Include="test\array.vbs" />
|
||||||
<Content Include="test\builtin.vbs" />
|
<Content Include="test\builtin.vbs" />
|
||||||
|
<Content Include="test\datetime.vbs" />
|
||||||
<Content Include="test\foreach.vbs" />
|
<Content Include="test\foreach.vbs" />
|
||||||
<Content Include="test\dotnet.vbs" />
|
<Content Include="test\dotnet.vbs" />
|
||||||
<Content Include="test\dountil.vbs" />
|
<Content Include="test\dountil.vbs" />
|
||||||
|
|
4
aspclassiccompiler/VBSC/test/datetime.vbs
Normal file
4
aspclassiccompiler/VBSC/test/datetime.vbs
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
imports system
|
||||||
|
|
||||||
|
dim dt = System.DateTime.Now
|
||||||
|
response.write dt.toString()
|
|
@ -65,7 +65,7 @@
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Web" />
|
<Reference Include="System.Web" />
|
||||||
<Reference Include="System.Web.Abstractions" />
|
<Reference Include="System.Web.Abstractions" />
|
||||||
<Reference Include="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
|
<Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
|
||||||
<Reference Include="System.Web.RegularExpressions" />
|
<Reference Include="System.Web.RegularExpressions" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
<Reference Include="System.Web.Routing" />
|
<Reference Include="System.Web.Routing" />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue