--HG--
extra : convert_revision : svn%3Aa83551a4-30f6-4d81-a974-c6ced450ddbf%4030470
This commit is contained in:
parent
038eeeba6a
commit
ca696d1388
103 changed files with 58375 additions and 0 deletions
BIN
aspclassiccompiler/NerdDinnerAsp/App_Data/ASPNETDB.MDF
Normal file
BIN
aspclassiccompiler/NerdDinnerAsp/App_Data/ASPNETDB.MDF
Normal file
Binary file not shown.
BIN
aspclassiccompiler/NerdDinnerAsp/App_Data/NerdDinner.mdf
Normal file
BIN
aspclassiccompiler/NerdDinnerAsp/App_Data/NerdDinner.mdf
Normal file
Binary file not shown.
BIN
aspclassiccompiler/NerdDinnerAsp/App_Data/NerdDinner_log.ldf
Normal file
BIN
aspclassiccompiler/NerdDinnerAsp/App_Data/NerdDinner_log.ldf
Normal file
Binary file not shown.
BIN
aspclassiccompiler/NerdDinnerAsp/App_Data/aspnetdb_log.ldf
Normal file
BIN
aspclassiccompiler/NerdDinnerAsp/App_Data/aspnetdb_log.ldf
Normal file
Binary file not shown.
|
@ -0,0 +1,4 @@
|
|||
<connectionStrings>
|
||||
<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
|
||||
<add name="NerdDinnerConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\NerdDinner.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
|
||||
</connectionStrings>
|
378
aspclassiccompiler/NerdDinnerAsp/Content/Site.css
Normal file
378
aspclassiccompiler/NerdDinnerAsp/Content/Site.css
Normal file
|
@ -0,0 +1,378 @@
|
|||
/*----------------------------------------------------------
|
||||
The base color for this template is #5c87b2. If you'd like
|
||||
to use a different color start by replacing all instances of
|
||||
#5c87b2 with your new color.
|
||||
----------------------------------------------------------*/
|
||||
body
|
||||
{
|
||||
background-color: #5c87b2;
|
||||
font-size: .75em;
|
||||
font-family: Verdana, Helvetica, Sans-Serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
color: #696969;
|
||||
}
|
||||
|
||||
a:link
|
||||
{
|
||||
color: #034af3;
|
||||
text-decoration: underline;
|
||||
}
|
||||
a:visited
|
||||
{
|
||||
color: #505abc;
|
||||
}
|
||||
a:hover
|
||||
{
|
||||
color: #1d60ff;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:active
|
||||
{
|
||||
color: #12eb87;
|
||||
}
|
||||
|
||||
p, ul
|
||||
{
|
||||
margin-bottom: 20px;
|
||||
line-height: 1.6em;
|
||||
}
|
||||
|
||||
/* HEADINGS
|
||||
----------------------------------------------------------*/
|
||||
h1, h2, h3, h4, h5, h6
|
||||
{
|
||||
font-size: 1.5em;
|
||||
color: #000;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
h1
|
||||
{
|
||||
font-size: 2em;
|
||||
padding-bottom: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
h2
|
||||
{
|
||||
padding: 0 0 10px 0;
|
||||
}
|
||||
h3
|
||||
{
|
||||
font-size: 1.2em;
|
||||
}
|
||||
h4
|
||||
{
|
||||
font-size: 1.1em;
|
||||
}
|
||||
h5, h6
|
||||
{
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
/* this rule styles <h2> tags that are the
|
||||
first child of the left and right table columns */
|
||||
.rightColumn > h1, .rightColumn > h2, .leftColumn > h1, .leftColumn > h2
|
||||
{
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
/* PRIMARY LAYOUT ELEMENTS
|
||||
----------------------------------------------------------*/
|
||||
|
||||
/* you can specify a greater or lesser percentage for the
|
||||
page width. Or, you can specify an exact pixel width. */
|
||||
.page
|
||||
{
|
||||
width: 90%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
#header
|
||||
{
|
||||
position: relative;
|
||||
margin-bottom: 0px;
|
||||
color: #000;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#header h1
|
||||
{
|
||||
font-weight: bold;
|
||||
padding: 5px 0;
|
||||
margin: 0;
|
||||
color: #fff;
|
||||
border: none;
|
||||
line-height: 2em;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 32px !important;
|
||||
}
|
||||
|
||||
#main
|
||||
{
|
||||
padding: 30px 30px 15px 30px;
|
||||
background-color: #fff;
|
||||
margin-bottom: 30px;
|
||||
_height: 1px; /* only IE6 applies CSS properties starting with an underscrore */
|
||||
height: 590px;
|
||||
}
|
||||
|
||||
#footer
|
||||
{
|
||||
color: #999;
|
||||
padding: 10px 0;
|
||||
text-align: center;
|
||||
line-height: normal;
|
||||
margin: 0;
|
||||
font-size: .9em;
|
||||
}
|
||||
|
||||
/* TAB MENU
|
||||
----------------------------------------------------------*/
|
||||
ul#menu
|
||||
{
|
||||
border-bottom: 1px #5C87B2 solid;
|
||||
padding: 0 0 2px;
|
||||
position: relative;
|
||||
margin: 0;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
ul#menu li
|
||||
{
|
||||
display: inline;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
ul#menu li#greeting
|
||||
{
|
||||
padding: 10px 20px;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
line-height: 2.8em;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
ul#menu li a
|
||||
{
|
||||
padding: 10px 20px;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
line-height: 2.8em;
|
||||
background-color: #e8eef4;
|
||||
color: #034af3;
|
||||
}
|
||||
|
||||
ul#menu li a:hover
|
||||
{
|
||||
background-color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
ul#menu li a:active
|
||||
{
|
||||
background-color: #a6e2a6;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
ul#menu li.selected a
|
||||
{
|
||||
background-color: #fff;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/* FORM LAYOUT ELEMENTS
|
||||
----------------------------------------------------------*/
|
||||
|
||||
fieldset
|
||||
{
|
||||
margin: 1em 0;
|
||||
padding: 1em;
|
||||
border: 1px solid #CCC;
|
||||
}
|
||||
|
||||
fieldset p
|
||||
{
|
||||
margin: 2px 12px 10px 10px;
|
||||
}
|
||||
|
||||
fieldset label
|
||||
{
|
||||
display: block;
|
||||
}
|
||||
|
||||
fieldset label.inline
|
||||
{
|
||||
display: inline;
|
||||
}
|
||||
|
||||
legend
|
||||
{
|
||||
font-size: 1.1em;
|
||||
font-weight: 600;
|
||||
padding: 2px 4px 8px 4px;
|
||||
}
|
||||
|
||||
input[type="text"]
|
||||
{
|
||||
width: 200px;
|
||||
border: 1px solid #CCC;
|
||||
}
|
||||
|
||||
input[type="password"]
|
||||
{
|
||||
width: 200px;
|
||||
border: 1px solid #CCC;
|
||||
}
|
||||
|
||||
/* TABLE
|
||||
----------------------------------------------------------*/
|
||||
|
||||
table
|
||||
{
|
||||
border: solid 1px #e8eef4;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
table td
|
||||
{
|
||||
padding: 5px;
|
||||
border: solid 1px #e8eef4;
|
||||
}
|
||||
|
||||
table th
|
||||
{
|
||||
padding: 6px 5px;
|
||||
text-align: left;
|
||||
background-color: #e8eef4;
|
||||
border: solid 1px #e8eef4;
|
||||
}
|
||||
|
||||
/* MISC
|
||||
----------------------------------------------------------*/
|
||||
.clear
|
||||
{
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.error
|
||||
{
|
||||
color:Red;
|
||||
}
|
||||
|
||||
#menucontainer
|
||||
{
|
||||
margin-top:40px;
|
||||
}
|
||||
|
||||
div#title
|
||||
{
|
||||
display:block;
|
||||
float:left;
|
||||
text-align:left;
|
||||
}
|
||||
|
||||
#logindisplay
|
||||
{
|
||||
font-size:1.1em;
|
||||
display:block;
|
||||
text-align:right;
|
||||
margin:10px;
|
||||
color:White;
|
||||
}
|
||||
|
||||
#logindisplay a:link
|
||||
{
|
||||
color: white;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#logindisplay a:visited
|
||||
{
|
||||
color: white;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#logindisplay a:hover
|
||||
{
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.field-validation-error
|
||||
{
|
||||
color: #ff0000;
|
||||
}
|
||||
|
||||
.input-validation-error
|
||||
{
|
||||
border: 1px solid #ff0000;
|
||||
background-color: #ffeeee;
|
||||
}
|
||||
|
||||
.validation-summary-errors
|
||||
{
|
||||
font-weight: bold;
|
||||
color: #ff0000;
|
||||
}
|
||||
|
||||
#dinnerform textarea
|
||||
{
|
||||
width:200px;
|
||||
height:70px;
|
||||
}
|
||||
|
||||
#dinnerDiv textarea
|
||||
{
|
||||
width:200px;
|
||||
height:70px;
|
||||
}
|
||||
|
||||
#rsvpmsg
|
||||
{
|
||||
color:Red;
|
||||
}
|
||||
|
||||
hr
|
||||
{
|
||||
padding:0px, 10px, 0px, 10px;
|
||||
height:1px;
|
||||
}
|
||||
|
||||
#pagination
|
||||
{
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
#dinnerDiv {
|
||||
float: left;
|
||||
width: 280px;
|
||||
}
|
||||
|
||||
#mapDiv {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#mapDivLeft {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#mapDivRight {
|
||||
padding: 30px 0px 0px 20px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
#dinnerList {
|
||||
padding:0px 0px 0px 0px;
|
||||
}
|
||||
|
||||
#searchBox {
|
||||
padding:0px 0px 10px 0px;
|
||||
}
|
||||
|
||||
#theMap {
|
||||
position: relative;
|
||||
width: 500px;
|
||||
height: 450px;
|
||||
}
|
BIN
aspclassiccompiler/NerdDinnerAsp/Content/nerd.jpg
Normal file
BIN
aspclassiccompiler/NerdDinnerAsp/Content/nerd.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
|
@ -0,0 +1,297 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Security.Principal;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
|
||||
namespace NerdDinner.Controllers {
|
||||
|
||||
[HandleError]
|
||||
public class AccountController : Controller {
|
||||
|
||||
// This constructor is used by the MVC framework to instantiate the controller using
|
||||
// the default forms authentication and membership providers.
|
||||
|
||||
public AccountController()
|
||||
: this(null, null) {
|
||||
}
|
||||
|
||||
// This constructor is not used by the MVC framework but is instead provided for ease
|
||||
// of unit testing this type. See the comments at the end of this file for more
|
||||
// information.
|
||||
public AccountController(IFormsAuthentication formsAuth, IMembershipService service) {
|
||||
FormsAuth = formsAuth ?? new FormsAuthenticationService();
|
||||
MembershipService = service ?? new AccountMembershipService();
|
||||
}
|
||||
|
||||
public IFormsAuthentication FormsAuth {
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
public IMembershipService MembershipService {
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
public ActionResult LogOn() {
|
||||
|
||||
return View();
|
||||
}
|
||||
|
||||
[AcceptVerbs(HttpVerbs.Post)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings",
|
||||
Justification = "Needs to take same parameter type as Controller.Redirect()")]
|
||||
public ActionResult LogOn(string userName, string password, bool rememberMe, string returnUrl) {
|
||||
|
||||
if (!ValidateLogOn(userName, password)) {
|
||||
ViewData["rememberMe"] = rememberMe;
|
||||
return View();
|
||||
}
|
||||
|
||||
FormsAuth.SignIn(userName, rememberMe);
|
||||
if (!String.IsNullOrEmpty(returnUrl)) {
|
||||
return Redirect(returnUrl);
|
||||
}
|
||||
else {
|
||||
return RedirectToAction("Index", "Home");
|
||||
}
|
||||
}
|
||||
|
||||
public ActionResult LogOff() {
|
||||
|
||||
FormsAuth.SignOut();
|
||||
|
||||
return RedirectToAction("Index", "Home");
|
||||
}
|
||||
|
||||
public ActionResult Register() {
|
||||
|
||||
ViewData["PasswordLength"] = MembershipService.MinPasswordLength;
|
||||
|
||||
return View();
|
||||
}
|
||||
|
||||
[AcceptVerbs(HttpVerbs.Post)]
|
||||
public ActionResult Register(string userName, string email, string password, string confirmPassword) {
|
||||
|
||||
ViewData["PasswordLength"] = MembershipService.MinPasswordLength;
|
||||
|
||||
if (ValidateRegistration(userName, email, password, confirmPassword)) {
|
||||
// Attempt to register the user
|
||||
MembershipCreateStatus createStatus = MembershipService.CreateUser(userName, password, email);
|
||||
|
||||
if (createStatus == MembershipCreateStatus.Success) {
|
||||
FormsAuth.SignIn(userName, false /* createPersistentCookie */);
|
||||
return RedirectToAction("Index", "Home");
|
||||
}
|
||||
else {
|
||||
ModelState.AddModelError("_FORM", ErrorCodeToString(createStatus));
|
||||
}
|
||||
}
|
||||
|
||||
// If we got this far, something failed, redisplay form
|
||||
return View();
|
||||
}
|
||||
|
||||
[Authorize]
|
||||
public ActionResult ChangePassword() {
|
||||
|
||||
ViewData["PasswordLength"] = MembershipService.MinPasswordLength;
|
||||
|
||||
return View();
|
||||
}
|
||||
|
||||
[Authorize]
|
||||
[AcceptVerbs(HttpVerbs.Post)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes",
|
||||
Justification = "Exceptions result in password not being changed.")]
|
||||
public ActionResult ChangePassword(string currentPassword, string newPassword, string confirmPassword) {
|
||||
|
||||
ViewData["PasswordLength"] = MembershipService.MinPasswordLength;
|
||||
|
||||
if (!ValidateChangePassword(currentPassword, newPassword, confirmPassword)) {
|
||||
return View();
|
||||
}
|
||||
|
||||
try {
|
||||
if (MembershipService.ChangePassword(User.Identity.Name, currentPassword, newPassword)) {
|
||||
return RedirectToAction("ChangePasswordSuccess");
|
||||
}
|
||||
else {
|
||||
ModelState.AddModelError("_FORM", "The current password is incorrect or the new password is invalid.");
|
||||
return View();
|
||||
}
|
||||
}
|
||||
catch {
|
||||
ModelState.AddModelError("_FORM", "The current password is incorrect or the new password is invalid.");
|
||||
return View();
|
||||
}
|
||||
}
|
||||
|
||||
public ActionResult ChangePasswordSuccess() {
|
||||
|
||||
return View();
|
||||
}
|
||||
|
||||
protected override void OnActionExecuting(ActionExecutingContext filterContext) {
|
||||
if (filterContext.HttpContext.User.Identity is WindowsIdentity) {
|
||||
throw new InvalidOperationException("Windows authentication is not supported.");
|
||||
}
|
||||
}
|
||||
|
||||
#region Validation Methods
|
||||
|
||||
private bool ValidateChangePassword(string currentPassword, string newPassword, string confirmPassword) {
|
||||
if (String.IsNullOrEmpty(currentPassword)) {
|
||||
ModelState.AddModelError("currentPassword", "You must specify a current password.");
|
||||
}
|
||||
if (newPassword == null || newPassword.Length < MembershipService.MinPasswordLength) {
|
||||
ModelState.AddModelError("newPassword",
|
||||
String.Format(CultureInfo.CurrentCulture,
|
||||
"You must specify a new password of {0} or more characters.",
|
||||
MembershipService.MinPasswordLength));
|
||||
}
|
||||
|
||||
if (!String.Equals(newPassword, confirmPassword, StringComparison.Ordinal)) {
|
||||
ModelState.AddModelError("_FORM", "The new password and confirmation password do not match.");
|
||||
}
|
||||
|
||||
return ModelState.IsValid;
|
||||
}
|
||||
|
||||
private bool ValidateLogOn(string userName, string password) {
|
||||
if (String.IsNullOrEmpty(userName)) {
|
||||
ModelState.AddModelError("username", "You must specify a username.");
|
||||
}
|
||||
if (String.IsNullOrEmpty(password)) {
|
||||
ModelState.AddModelError("password", "You must specify a password.");
|
||||
}
|
||||
if (!MembershipService.ValidateUser(userName, password)) {
|
||||
ModelState.AddModelError("_FORM", "The username or password provided is incorrect.");
|
||||
}
|
||||
|
||||
return ModelState.IsValid;
|
||||
}
|
||||
|
||||
private bool ValidateRegistration(string userName, string email, string password, string confirmPassword) {
|
||||
if (String.IsNullOrEmpty(userName)) {
|
||||
ModelState.AddModelError("username", "You must specify a username.");
|
||||
}
|
||||
if (String.IsNullOrEmpty(email)) {
|
||||
ModelState.AddModelError("email", "You must specify an email address.");
|
||||
}
|
||||
if (password == null || password.Length < MembershipService.MinPasswordLength) {
|
||||
ModelState.AddModelError("password",
|
||||
String.Format(CultureInfo.CurrentCulture,
|
||||
"You must specify a password of {0} or more characters.",
|
||||
MembershipService.MinPasswordLength));
|
||||
}
|
||||
if (!String.Equals(password, confirmPassword, StringComparison.Ordinal)) {
|
||||
ModelState.AddModelError("_FORM", "The new password and confirmation password do not match.");
|
||||
}
|
||||
return ModelState.IsValid;
|
||||
}
|
||||
|
||||
private static string ErrorCodeToString(MembershipCreateStatus createStatus) {
|
||||
// See http://msdn.microsoft.com/en-us/library/system.web.security.membershipcreatestatus.aspx for
|
||||
// a full list of status codes.
|
||||
switch (createStatus) {
|
||||
case MembershipCreateStatus.DuplicateUserName:
|
||||
return "Username already exists. Please enter a different user name.";
|
||||
|
||||
case MembershipCreateStatus.DuplicateEmail:
|
||||
return "A username for that e-mail address already exists. Please enter a different e-mail address.";
|
||||
|
||||
case MembershipCreateStatus.InvalidPassword:
|
||||
return "The password provided is invalid. Please enter a valid password value.";
|
||||
|
||||
case MembershipCreateStatus.InvalidEmail:
|
||||
return "The e-mail address provided is invalid. Please check the value and try again.";
|
||||
|
||||
case MembershipCreateStatus.InvalidAnswer:
|
||||
return "The password retrieval answer provided is invalid. Please check the value and try again.";
|
||||
|
||||
case MembershipCreateStatus.InvalidQuestion:
|
||||
return "The password retrieval question provided is invalid. Please check the value and try again.";
|
||||
|
||||
case MembershipCreateStatus.InvalidUserName:
|
||||
return "The user name provided is invalid. Please check the value and try again.";
|
||||
|
||||
case MembershipCreateStatus.ProviderError:
|
||||
return "The authentication provider returned an error. Please verify your entry and try again. If the problem persists, please contact your system administrator.";
|
||||
|
||||
case MembershipCreateStatus.UserRejected:
|
||||
return "The user creation request has been canceled. Please verify your entry and try again. If the problem persists, please contact your system administrator.";
|
||||
|
||||
default:
|
||||
return "An unknown error occurred. Please verify your entry and try again. If the problem persists, please contact your system administrator.";
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
// The FormsAuthentication type is sealed and contains static members, so it is difficult to
|
||||
// unit test code that calls its members. The interface and helper class below demonstrate
|
||||
// how to create an abstract wrapper around such a type in order to make the AccountController
|
||||
// code unit testable.
|
||||
|
||||
public interface IFormsAuthentication {
|
||||
void SignIn(string userName, bool createPersistentCookie);
|
||||
void SignOut();
|
||||
}
|
||||
|
||||
public class FormsAuthenticationService : IFormsAuthentication {
|
||||
public void SignIn(string userName, bool createPersistentCookie) {
|
||||
FormsAuthentication.SetAuthCookie(userName, createPersistentCookie);
|
||||
}
|
||||
public void SignOut() {
|
||||
FormsAuthentication.SignOut();
|
||||
}
|
||||
}
|
||||
|
||||
public interface IMembershipService {
|
||||
int MinPasswordLength { get; }
|
||||
|
||||
bool ValidateUser(string userName, string password);
|
||||
MembershipCreateStatus CreateUser(string userName, string password, string email);
|
||||
bool ChangePassword(string userName, string oldPassword, string newPassword);
|
||||
}
|
||||
|
||||
public class AccountMembershipService : IMembershipService {
|
||||
private MembershipProvider _provider;
|
||||
|
||||
public AccountMembershipService()
|
||||
: this(null) {
|
||||
}
|
||||
|
||||
public AccountMembershipService(MembershipProvider provider) {
|
||||
_provider = provider ?? Membership.Provider;
|
||||
}
|
||||
|
||||
public int MinPasswordLength {
|
||||
get {
|
||||
return _provider.MinRequiredPasswordLength;
|
||||
}
|
||||
}
|
||||
|
||||
public bool ValidateUser(string userName, string password) {
|
||||
return _provider.ValidateUser(userName, password);
|
||||
}
|
||||
|
||||
public MembershipCreateStatus CreateUser(string userName, string password, string email) {
|
||||
MembershipCreateStatus status;
|
||||
_provider.CreateUser(userName, password, email, null, null, true, null, out status);
|
||||
return status;
|
||||
}
|
||||
|
||||
public bool ChangePassword(string userName, string oldPassword, string newPassword) {
|
||||
MembershipUser currentUser = _provider.GetUser(userName, true /* userIsOnline */);
|
||||
return currentUser.ChangePassword(oldPassword, newPassword);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,189 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web.Mvc;
|
||||
using NerdDinner.Helpers;
|
||||
using NerdDinner.Models;
|
||||
|
||||
namespace NerdDinner.Controllers {
|
||||
|
||||
//
|
||||
// ViewModel Classes
|
||||
|
||||
public class DinnerFormViewModel {
|
||||
|
||||
// Properties
|
||||
public Dinner Dinner { get; private set; }
|
||||
public SelectList Countries { get; private set; }
|
||||
|
||||
// Constructor
|
||||
public DinnerFormViewModel(Dinner dinner) {
|
||||
Dinner = dinner;
|
||||
Countries = new SelectList(PhoneValidator.Countries, Dinner.Country);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Controller Class
|
||||
|
||||
[HandleError]
|
||||
public class DinnersController : Controller {
|
||||
|
||||
IDinnerRepository dinnerRepository;
|
||||
|
||||
//
|
||||
// Dependency Injection enabled constructors
|
||||
|
||||
public DinnersController()
|
||||
: this(new DinnerRepository()) {
|
||||
}
|
||||
|
||||
public DinnersController(IDinnerRepository repository) {
|
||||
dinnerRepository = repository;
|
||||
}
|
||||
|
||||
//
|
||||
// GET: /Dinners/
|
||||
// /Dinners/Page/2
|
||||
|
||||
public ActionResult Index(int? page) {
|
||||
|
||||
const int pageSize = 10;
|
||||
|
||||
var upcomingDinners = dinnerRepository.FindUpcomingDinners();
|
||||
var paginatedDinners = new PaginatedList<Dinner>(upcomingDinners, page ?? 0, pageSize);
|
||||
|
||||
return View(paginatedDinners);
|
||||
}
|
||||
|
||||
//
|
||||
// GET: /Dinners/Details/5
|
||||
|
||||
public ActionResult Details(int id) {
|
||||
|
||||
Dinner dinner = dinnerRepository.GetDinner(id);
|
||||
|
||||
if (dinner == null)
|
||||
return View("NotFound");
|
||||
|
||||
return View(dinner);
|
||||
}
|
||||
|
||||
//
|
||||
// GET: /Dinners/Edit/5
|
||||
|
||||
[Authorize]
|
||||
public ActionResult Edit(int id) {
|
||||
|
||||
Dinner dinner = dinnerRepository.GetDinner(id);
|
||||
|
||||
if (!dinner.IsHostedBy(User.Identity.Name))
|
||||
return View("InvalidOwner");
|
||||
|
||||
return View(new DinnerFormViewModel(dinner));
|
||||
}
|
||||
|
||||
//
|
||||
// POST: /Dinners/Edit/5
|
||||
|
||||
[AcceptVerbs(HttpVerbs.Post), Authorize]
|
||||
public ActionResult Edit(int id, FormCollection collection) {
|
||||
|
||||
Dinner dinner = dinnerRepository.GetDinner(id);
|
||||
|
||||
if (!dinner.IsHostedBy(User.Identity.Name))
|
||||
return View("InvalidOwner");
|
||||
|
||||
try {
|
||||
UpdateModel(dinner);
|
||||
|
||||
dinnerRepository.Save();
|
||||
|
||||
return RedirectToAction("Details", new { id=dinner.DinnerID });
|
||||
}
|
||||
catch {
|
||||
ModelState.AddModelErrors(dinner.GetRuleViolations());
|
||||
|
||||
return View(new DinnerFormViewModel(dinner));
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// GET: /Dinners/Create
|
||||
|
||||
[Authorize]
|
||||
public ActionResult Create() {
|
||||
|
||||
Dinner dinner = new Dinner() {
|
||||
EventDate = DateTime.Now.AddDays(7)
|
||||
};
|
||||
|
||||
return View(new DinnerFormViewModel(dinner));
|
||||
}
|
||||
|
||||
//
|
||||
// POST: /Dinners/Create
|
||||
|
||||
[AcceptVerbs(HttpVerbs.Post), Authorize]
|
||||
public ActionResult Create(Dinner dinner) {
|
||||
|
||||
if (ModelState.IsValid) {
|
||||
|
||||
try {
|
||||
dinner.HostedBy = User.Identity.Name;
|
||||
|
||||
RSVP rsvp = new RSVP();
|
||||
rsvp.AttendeeName = User.Identity.Name;
|
||||
dinner.RSVPs.Add(rsvp);
|
||||
|
||||
dinnerRepository.Add(dinner);
|
||||
dinnerRepository.Save();
|
||||
|
||||
return RedirectToAction("Details", new { id=dinner.DinnerID });
|
||||
}
|
||||
catch {
|
||||
ModelState.AddModelErrors(dinner.GetRuleViolations());
|
||||
}
|
||||
}
|
||||
|
||||
return View(new DinnerFormViewModel(dinner));
|
||||
}
|
||||
|
||||
//
|
||||
// HTTP GET: /Dinners/Delete/1
|
||||
|
||||
[Authorize]
|
||||
public ActionResult Delete(int id) {
|
||||
|
||||
Dinner dinner = dinnerRepository.GetDinner(id);
|
||||
|
||||
if (dinner == null)
|
||||
return View("NotFound");
|
||||
|
||||
if (!dinner.IsHostedBy(User.Identity.Name))
|
||||
return View("InvalidOwner");
|
||||
|
||||
return View(dinner);
|
||||
}
|
||||
|
||||
//
|
||||
// HTTP POST: /Dinners/Delete/1
|
||||
|
||||
[AcceptVerbs(HttpVerbs.Post), Authorize]
|
||||
public ActionResult Delete(int id, string confirmButton) {
|
||||
|
||||
Dinner dinner = dinnerRepository.GetDinner(id);
|
||||
|
||||
if (dinner == null)
|
||||
return View("NotFound");
|
||||
|
||||
if (!dinner.IsHostedBy(User.Identity.Name))
|
||||
return View("InvalidOwner");
|
||||
|
||||
dinnerRepository.Delete(dinner);
|
||||
dinnerRepository.Save();
|
||||
|
||||
return View("Deleted");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace NerdDinner.Controllers {
|
||||
|
||||
[HandleError]
|
||||
public class HomeController : Controller {
|
||||
|
||||
public ActionResult Index() {
|
||||
return View();
|
||||
}
|
||||
|
||||
public ActionResult About() {
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using NerdDinner.Models;
|
||||
|
||||
namespace NerdDinner.Controllers
|
||||
{
|
||||
public class RSVPController : Controller {
|
||||
|
||||
IDinnerRepository dinnerRepository;
|
||||
|
||||
//
|
||||
// Dependency Injection enabled constructors
|
||||
|
||||
public RSVPController()
|
||||
: this(new DinnerRepository()) {
|
||||
}
|
||||
|
||||
public RSVPController(IDinnerRepository repository) {
|
||||
dinnerRepository = repository;
|
||||
}
|
||||
|
||||
//
|
||||
// AJAX: /Dinners/Register/1
|
||||
|
||||
[Authorize, AcceptVerbs(HttpVerbs.Post)]
|
||||
public ActionResult Register(int id) {
|
||||
|
||||
Dinner dinner = dinnerRepository.GetDinner(id);
|
||||
|
||||
if (!dinner.IsUserRegistered(User.Identity.Name)) {
|
||||
|
||||
RSVP rsvp = new RSVP();
|
||||
rsvp.AttendeeName = User.Identity.Name;
|
||||
|
||||
dinner.RSVPs.Add(rsvp);
|
||||
dinnerRepository.Save();
|
||||
}
|
||||
|
||||
return Content("Thanks - we'll see you there!");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using NerdDinner.Models;
|
||||
|
||||
namespace NerdDinner.Controllers {
|
||||
|
||||
public class JsonDinner {
|
||||
public int DinnerID { get; set; }
|
||||
public string Title { get; set; }
|
||||
public double Latitude { get; set; }
|
||||
public double Longitude { get; set; }
|
||||
public string Description { get; set; }
|
||||
public int RSVPCount { get; set; }
|
||||
}
|
||||
|
||||
public class SearchController : Controller {
|
||||
|
||||
IDinnerRepository dinnerRepository;
|
||||
|
||||
//
|
||||
// Dependency Injection enabled constructors
|
||||
|
||||
public SearchController()
|
||||
: this(new DinnerRepository()) {
|
||||
}
|
||||
|
||||
public SearchController(IDinnerRepository repository) {
|
||||
dinnerRepository = repository;
|
||||
}
|
||||
|
||||
//
|
||||
// AJAX: /Search/FindByLocation?longitude=45&latitude=-90
|
||||
|
||||
[AcceptVerbs(HttpVerbs.Post)]
|
||||
public ActionResult SearchByLocation(float latitude, float longitude) {
|
||||
|
||||
var dinners = dinnerRepository.FindByLocation(latitude, longitude);
|
||||
|
||||
var jsonDinners = from dinner in dinners
|
||||
select new JsonDinner {
|
||||
DinnerID = dinner.DinnerID,
|
||||
Latitude = dinner.Latitude,
|
||||
Longitude = dinner.Longitude,
|
||||
Title = dinner.Title,
|
||||
Description = dinner.Description,
|
||||
RSVPCount = dinner.RSVPs.Count
|
||||
};
|
||||
|
||||
return Json(jsonDinners.ToList());
|
||||
}
|
||||
}
|
||||
}
|
3
aspclassiccompiler/NerdDinnerAsp/Default.aspx
Normal file
3
aspclassiccompiler/NerdDinnerAsp/Default.aspx
Normal file
|
@ -0,0 +1,3 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="NerdDinner._Default" %>
|
||||
|
||||
<%-- Please do not delete this file. It is used to ensure that ASP.NET MVC is activated by IIS when a user makes a "/" request to the server. --%>
|
13
aspclassiccompiler/NerdDinnerAsp/Default.aspx.cs
Normal file
13
aspclassiccompiler/NerdDinnerAsp/Default.aspx.cs
Normal file
|
@ -0,0 +1,13 @@
|
|||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.UI;
|
||||
|
||||
namespace NerdDinner {
|
||||
public partial class _Default : Page {
|
||||
public void Page_Load(object sender, System.EventArgs e) {
|
||||
HttpContext.Current.RewritePath(Request.ApplicationPath, false);
|
||||
IHttpHandler httpHandler = new MvcHttpHandler();
|
||||
httpHandler.ProcessRequest(HttpContext.Current);
|
||||
}
|
||||
}
|
||||
}
|
1
aspclassiccompiler/NerdDinnerAsp/Global.asax
Normal file
1
aspclassiccompiler/NerdDinnerAsp/Global.asax
Normal file
|
@ -0,0 +1 @@
|
|||
<%@ Application Codebehind="Global.asax.cs" Inherits="NerdDinner.MvcApplication" Language="C#" %>
|
37
aspclassiccompiler/NerdDinnerAsp/Global.asax.cs
Normal file
37
aspclassiccompiler/NerdDinnerAsp/Global.asax.cs
Normal file
|
@ -0,0 +1,37 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Routing;
|
||||
using Dlrsoft.Asp.Mvc;
|
||||
|
||||
namespace NerdDinner {
|
||||
|
||||
public class MvcApplication : System.Web.HttpApplication {
|
||||
|
||||
public void RegisterRoutes(RouteCollection routes) {
|
||||
|
||||
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
|
||||
|
||||
routes.MapRoute(
|
||||
"UpcomingDinners",
|
||||
"Dinners/Page/{page}",
|
||||
new { controller = "Dinners", action = "Index" }
|
||||
);
|
||||
|
||||
routes.MapRoute(
|
||||
"Default", // Route name
|
||||
"{controller}/{action}/{id}", // URL with parameters
|
||||
new { controller = "Home", action = "Index", id = "" } // Parameter defaults
|
||||
);
|
||||
}
|
||||
|
||||
void Application_Start() {
|
||||
RegisterRoutes(RouteTable.Routes);
|
||||
ViewEngines.Engines.Clear();
|
||||
ViewEngines.Engines.Add(new AspViewEngine());
|
||||
ViewEngines.Engines.Add(new WebFormViewEngine());
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using NerdDinner.Models;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace NerdDinner.Helpers {
|
||||
|
||||
public static class ModelStateHelpers {
|
||||
|
||||
public static void AddModelErrors(this ModelStateDictionary modelState, IEnumerable<RuleViolation> errors) {
|
||||
|
||||
foreach (RuleViolation issue in errors) {
|
||||
modelState.AddModelError(issue.PropertyName, issue.ErrorMessage);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
35
aspclassiccompiler/NerdDinnerAsp/Helpers/PaginatedList.cs
Normal file
35
aspclassiccompiler/NerdDinnerAsp/Helpers/PaginatedList.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace NerdDinner.Helpers {
|
||||
|
||||
public class PaginatedList<T> : List<T> {
|
||||
|
||||
public int PageIndex { get; private set; }
|
||||
public int PageSize { get; private set; }
|
||||
public int TotalCount { get; private set; }
|
||||
public int TotalPages { get; private set; }
|
||||
|
||||
public PaginatedList(IQueryable<T> source, int pageIndex, int pageSize) {
|
||||
PageIndex = pageIndex;
|
||||
PageSize = pageSize;
|
||||
TotalCount = source.Count();
|
||||
TotalPages = (int) Math.Ceiling(TotalCount / (double)PageSize);
|
||||
|
||||
this.AddRange(source.Skip(PageIndex * PageSize).Take(PageSize));
|
||||
}
|
||||
|
||||
public bool HasPreviousPage {
|
||||
get {
|
||||
return (PageIndex > 0);
|
||||
}
|
||||
}
|
||||
|
||||
public bool HasNextPage {
|
||||
get {
|
||||
return (PageIndex+1 < TotalPages);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
32
aspclassiccompiler/NerdDinnerAsp/Helpers/PhoneValidator.cs
Normal file
32
aspclassiccompiler/NerdDinnerAsp/Helpers/PhoneValidator.cs
Normal file
|
@ -0,0 +1,32 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace NerdDinner.Helpers {
|
||||
|
||||
public class PhoneValidator {
|
||||
|
||||
static IDictionary<string, Regex> countryRegex = new Dictionary<string, Regex>()
|
||||
{
|
||||
{ "USA", new Regex("^[2-9]\\d{2}-\\d{3}-\\d{4}$")},
|
||||
{ "UK", new Regex("(^1300\\d{6}$)|(^1800|1900|1902\\d{6}$)|(^0[2|3|7|8]{1}[0-9]{8}$)|(^13\\d{4}$)|(^04\\d{2,3}\\d{6}$)")},
|
||||
{ "Netherlands", new Regex("(^\\+[0-9]{2}|^\\+[0-9]{2}\\(0\\)|^\\(\\+[0-9]{2}\\)\\(0\\)|^00[0-9]{2}|^0)([0-9]{9}$|[0-9\\-\\s]{10}$)")},
|
||||
};
|
||||
|
||||
public static bool IsValidNumber(string phoneNumber, string country) {
|
||||
|
||||
if (country != null && countryRegex.ContainsKey(country))
|
||||
return countryRegex[country].IsMatch(phoneNumber);
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
public static IEnumerable<string> Countries {
|
||||
get {
|
||||
return countryRegex.Keys;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
56
aspclassiccompiler/NerdDinnerAsp/Models/Dinner.cs
Normal file
56
aspclassiccompiler/NerdDinnerAsp/Models/Dinner.cs
Normal file
|
@ -0,0 +1,56 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Data.Linq;
|
||||
using System.Web.Mvc;
|
||||
using NerdDinner.Helpers;
|
||||
|
||||
namespace NerdDinner.Models {
|
||||
|
||||
[Bind(Include="Title,Description,EventDate,Address,Country,ContactPhone,Latitude,Longitude")]
|
||||
public partial class Dinner {
|
||||
|
||||
public bool IsHostedBy(string userName) {
|
||||
return HostedBy.Equals(userName, StringComparison.InvariantCultureIgnoreCase);
|
||||
}
|
||||
|
||||
public bool IsUserRegistered(string userName) {
|
||||
return RSVPs.Any(r => r.AttendeeName.Equals(userName, StringComparison.InvariantCultureIgnoreCase));
|
||||
}
|
||||
|
||||
public bool IsValid {
|
||||
get { return (GetRuleViolations().Count() == 0); }
|
||||
}
|
||||
|
||||
public IEnumerable<RuleViolation> GetRuleViolations() {
|
||||
|
||||
if (String.IsNullOrEmpty(Title))
|
||||
yield return new RuleViolation("Title is required", "Title");
|
||||
|
||||
if (String.IsNullOrEmpty(Description))
|
||||
yield return new RuleViolation("Description is required", "Description");
|
||||
|
||||
if (String.IsNullOrEmpty(HostedBy))
|
||||
yield return new RuleViolation("HostedBy is required", "HostedBy");
|
||||
|
||||
if (String.IsNullOrEmpty(Address))
|
||||
yield return new RuleViolation("Address is required", "Address");
|
||||
|
||||
if (String.IsNullOrEmpty(Country))
|
||||
yield return new RuleViolation("Country is required", "Address");
|
||||
|
||||
if (String.IsNullOrEmpty(ContactPhone))
|
||||
yield return new RuleViolation("Phone# is required", "ContactPhone");
|
||||
|
||||
if (!PhoneValidator.IsValidNumber(ContactPhone, Country))
|
||||
yield return new RuleViolation("Phone# does not match country", "ContactPhone");
|
||||
|
||||
yield break;
|
||||
}
|
||||
|
||||
partial void OnValidate(ChangeAction action) {
|
||||
if (!IsValid)
|
||||
throw new ApplicationException("Rule violations prevent saving");
|
||||
}
|
||||
}
|
||||
}
|
58
aspclassiccompiler/NerdDinnerAsp/Models/DinnerRepository.cs
Normal file
58
aspclassiccompiler/NerdDinnerAsp/Models/DinnerRepository.cs
Normal file
|
@ -0,0 +1,58 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace NerdDinner.Models {
|
||||
|
||||
public class DinnerRepository : NerdDinner.Models.IDinnerRepository {
|
||||
|
||||
NerdDinnerDataContext db = new NerdDinnerDataContext();
|
||||
|
||||
//
|
||||
// Query Methods
|
||||
|
||||
public IQueryable<Dinner> FindAllDinners() {
|
||||
return db.Dinners;
|
||||
}
|
||||
|
||||
public IQueryable<Dinner> FindUpcomingDinners() {
|
||||
return from dinner in FindAllDinners()
|
||||
where dinner.EventDate > DateTime.Now
|
||||
orderby dinner.EventDate
|
||||
select dinner;
|
||||
}
|
||||
|
||||
public IQueryable<Dinner> FindByLocation(float latitude, float longitude) {
|
||||
var dinners = from dinner in FindUpcomingDinners()
|
||||
join i in db.NearestDinners(latitude, longitude)
|
||||
on dinner.DinnerID equals i.DinnerID
|
||||
select dinner;
|
||||
|
||||
return dinners;
|
||||
}
|
||||
|
||||
public Dinner GetDinner(int id) {
|
||||
return db.Dinners.SingleOrDefault(d => d.DinnerID == id);
|
||||
}
|
||||
|
||||
//
|
||||
// Insert/Delete Methods
|
||||
|
||||
public void Add(Dinner dinner) {
|
||||
db.Dinners.InsertOnSubmit(dinner);
|
||||
}
|
||||
|
||||
public void Delete(Dinner dinner) {
|
||||
db.RSVPs.DeleteAllOnSubmit(dinner.RSVPs);
|
||||
db.Dinners.DeleteOnSubmit(dinner);
|
||||
}
|
||||
|
||||
//
|
||||
// Persistence
|
||||
|
||||
public void Save() {
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
18
aspclassiccompiler/NerdDinnerAsp/Models/IDinnerRepository.cs
Normal file
18
aspclassiccompiler/NerdDinnerAsp/Models/IDinnerRepository.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace NerdDinner.Models {
|
||||
|
||||
public interface IDinnerRepository {
|
||||
|
||||
IQueryable<Dinner> FindAllDinners();
|
||||
IQueryable<Dinner> FindByLocation(float latitude, float longitude);
|
||||
IQueryable<Dinner> FindUpcomingDinners();
|
||||
Dinner GetDinner(int id);
|
||||
|
||||
void Add(Dinner dinner);
|
||||
void Delete(Dinner dinner);
|
||||
|
||||
void Save();
|
||||
}
|
||||
}
|
41
aspclassiccompiler/NerdDinnerAsp/Models/NerdDinner.dbml
Normal file
41
aspclassiccompiler/NerdDinnerAsp/Models/NerdDinner.dbml
Normal file
|
@ -0,0 +1,41 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Database Name="NerdDinner" Class="NerdDinnerDataContext" xmlns="http://schemas.microsoft.com/linqtosql/dbml/2007">
|
||||
<Connection Mode="WebSettings" ConnectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\NerdDinner.mdf;Integrated Security=True;User Instance=True" SettingsObjectName="System.Configuration.ConfigurationManager.ConnectionStrings" SettingsPropertyName="NerdDinnerConnectionString" Provider="System.Data.SqlClient" />
|
||||
<Table Name="dbo.Dinners" Member="Dinners">
|
||||
<Type Name="Dinner">
|
||||
<Column Name="DinnerID" Type="System.Int32" DbType="Int NOT NULL IDENTITY" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
|
||||
<Column Name="Title" Type="System.String" DbType="NVarChar(50) NOT NULL" CanBeNull="false" />
|
||||
<Column Name="EventDate" Type="System.DateTime" DbType="DateTime NOT NULL" CanBeNull="false" />
|
||||
<Column Name="Description" Type="System.String" DbType="NVarChar(256)" CanBeNull="true" />
|
||||
<Column Name="HostedBy" Type="System.String" DbType="NVarChar(50) NOT NULL" CanBeNull="false" />
|
||||
<Column Name="ContactPhone" Type="System.String" DbType="NVarChar(50) NOT NULL" CanBeNull="false" />
|
||||
<Column Name="Address" Type="System.String" DbType="NVarChar(50)" CanBeNull="true" />
|
||||
<Column Name="Country" Type="System.String" DbType="NVarChar(30)" CanBeNull="true" />
|
||||
<Column Name="Latitude" Type="System.Double" DbType="Float NOT NULL" CanBeNull="false" />
|
||||
<Column Name="Longitude" Type="System.Double" DbType="Float NOT NULL" CanBeNull="false" />
|
||||
<Association Name="Dinner_RSVP" Member="RSVPs" ThisKey="DinnerID" OtherKey="DinnerID" Type="RSVP" />
|
||||
</Type>
|
||||
</Table>
|
||||
<Table Name="dbo.RSVP" Member="RSVPs">
|
||||
<Type Name="RSVP">
|
||||
<Column Name="RsvpID" Type="System.Int32" DbType="Int NOT NULL IDENTITY" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
|
||||
<Column Name="DinnerID" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
|
||||
<Column Name="AttendeeName" Type="System.String" DbType="NVarChar(50) NOT NULL" CanBeNull="false" />
|
||||
<Association Name="Dinner_RSVP" Member="Dinner" ThisKey="DinnerID" OtherKey="DinnerID" Type="Dinner" IsForeignKey="true" />
|
||||
</Type>
|
||||
</Table>
|
||||
<Function Name="dbo.NearestDinners" Method="NearestDinners" IsComposable="true">
|
||||
<Parameter Name="lat" Type="System.Single" DbType="Real" />
|
||||
<Parameter Name="long" Type="System.Single" DbType="Real" />
|
||||
<ElementType Name="NearestDinnersResult">
|
||||
<Column Name="DinnerID" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
|
||||
</ElementType>
|
||||
</Function>
|
||||
<Function Name="dbo.DistanceBetween" Method="DistanceBetween" IsComposable="true">
|
||||
<Parameter Name="Lat1" Parameter="lat1" Type="System.Single" DbType="Real" />
|
||||
<Parameter Name="Long1" Parameter="long1" Type="System.Single" DbType="Real" />
|
||||
<Parameter Name="Lat2" Parameter="lat2" Type="System.Single" DbType="Real" />
|
||||
<Parameter Name="Long2" Parameter="long2" Type="System.Single" DbType="Real" />
|
||||
<Return Type="System.Single" />
|
||||
</Function>
|
||||
</Database>
|
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ordesignerObjectsDiagram dslVersion="1.0.0.0" absoluteBounds="0, 0, 11, 8.5" name="NerdDinner">
|
||||
<DataContextMoniker Name="/NerdDinnerDataContext" />
|
||||
<nestedChildShapes>
|
||||
<classShape Id="ca99e816-22ab-4057-8941-43618a1b1c1d" absoluteBounds="0.5, 0.5, 2, 2.7324039713541666">
|
||||
<DataClassMoniker Name="/NerdDinnerDataContext/Dinner" />
|
||||
<nestedChildShapes>
|
||||
<elementListCompartment Id="99eef688-b088-4ab9-a645-4fdfa4cc3ee3" absoluteBounds="0.515, 0.96, 1.9700000000000002, 2.1724039713541665" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" />
|
||||
</nestedChildShapes>
|
||||
</classShape>
|
||||
<classShape Id="7edca3c8-60ef-460d-8b99-e51fba7a1fb5" absoluteBounds="3.25, 1.125, 2, 1.3862939453124998">
|
||||
<DataClassMoniker Name="/NerdDinnerDataContext/RSVP" />
|
||||
<nestedChildShapes>
|
||||
<elementListCompartment Id="28a0ebc1-d495-475d-85e8-ab8851f3cbe0" absoluteBounds="3.265, 1.585, 1.9700000000000002, 0.8262939453125" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" />
|
||||
</nestedChildShapes>
|
||||
</classShape>
|
||||
<associationConnector edgePoints="[(2.5 : 1.81814697265625); (3.25 : 1.81814697265625)]" fixedFrom="Algorithm" fixedTo="Algorithm">
|
||||
<AssociationMoniker Name="/NerdDinnerDataContext/Dinner/Dinner_RSVP" />
|
||||
<nodes>
|
||||
<classShapeMoniker Id="ca99e816-22ab-4057-8941-43618a1b1c1d" />
|
||||
<classShapeMoniker Id="7edca3c8-60ef-460d-8b99-e51fba7a1fb5" />
|
||||
</nodes>
|
||||
</associationConnector>
|
||||
</nestedChildShapes>
|
||||
</ordesignerObjectsDiagram>
|
583
aspclassiccompiler/NerdDinnerAsp/Models/NerdDinner.designer.cs
generated
Normal file
583
aspclassiccompiler/NerdDinnerAsp/Models/NerdDinner.designer.cs
generated
Normal file
|
@ -0,0 +1,583 @@
|
|||
#pragma warning disable 1591
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.3521
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace NerdDinner.Models
|
||||
{
|
||||
using System.Data.Linq;
|
||||
using System.Data.Linq.Mapping;
|
||||
using System.Data;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using System.ComponentModel;
|
||||
using System;
|
||||
|
||||
|
||||
[System.Data.Linq.Mapping.DatabaseAttribute(Name="NerdDinner")]
|
||||
public partial class NerdDinnerDataContext : System.Data.Linq.DataContext
|
||||
{
|
||||
|
||||
private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
|
||||
|
||||
#region Extensibility Method Definitions
|
||||
partial void OnCreated();
|
||||
partial void InsertDinner(Dinner instance);
|
||||
partial void UpdateDinner(Dinner instance);
|
||||
partial void DeleteDinner(Dinner instance);
|
||||
partial void InsertRSVP(RSVP instance);
|
||||
partial void UpdateRSVP(RSVP instance);
|
||||
partial void DeleteRSVP(RSVP instance);
|
||||
#endregion
|
||||
|
||||
public NerdDinnerDataContext() :
|
||||
base(global::System.Configuration.ConfigurationManager.ConnectionStrings["NerdDinnerConnectionString"].ConnectionString, mappingSource)
|
||||
{
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
public NerdDinnerDataContext(string connection) :
|
||||
base(connection, mappingSource)
|
||||
{
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
public NerdDinnerDataContext(System.Data.IDbConnection connection) :
|
||||
base(connection, mappingSource)
|
||||
{
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
public NerdDinnerDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
|
||||
base(connection, mappingSource)
|
||||
{
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
public NerdDinnerDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
|
||||
base(connection, mappingSource)
|
||||
{
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<Dinner> Dinners
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<Dinner>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<RSVP> RSVPs
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<RSVP>();
|
||||
}
|
||||
}
|
||||
|
||||
[Function(Name="dbo.NearestDinners", IsComposable=true)]
|
||||
public IQueryable<NearestDinnersResult> NearestDinners([Parameter(DbType="Real")] System.Nullable<float> lat, [Parameter(Name="long", DbType="Real")] System.Nullable<float> @long)
|
||||
{
|
||||
return this.CreateMethodCallQuery<NearestDinnersResult>(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), lat, @long);
|
||||
}
|
||||
|
||||
[Function(Name="dbo.DistanceBetween", IsComposable=true)]
|
||||
public System.Nullable<float> DistanceBetween([Parameter(Name="Lat1", DbType="Real")] System.Nullable<float> lat1, [Parameter(Name="Long1", DbType="Real")] System.Nullable<float> long1, [Parameter(Name="Lat2", DbType="Real")] System.Nullable<float> lat2, [Parameter(Name="Long2", DbType="Real")] System.Nullable<float> long2)
|
||||
{
|
||||
return ((System.Nullable<float>)(this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), lat1, long1, lat2, long2).ReturnValue));
|
||||
}
|
||||
}
|
||||
|
||||
[Table(Name="dbo.Dinners")]
|
||||
public partial class Dinner : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||
|
||||
private int _DinnerID;
|
||||
|
||||
private string _Title;
|
||||
|
||||
private System.DateTime _EventDate;
|
||||
|
||||
private string _Description;
|
||||
|
||||
private string _HostedBy;
|
||||
|
||||
private string _ContactPhone;
|
||||
|
||||
private string _Address;
|
||||
|
||||
private string _Country;
|
||||
|
||||
private double _Latitude;
|
||||
|
||||
private double _Longitude;
|
||||
|
||||
private EntitySet<RSVP> _RSVPs;
|
||||
|
||||
#region Extensibility Method Definitions
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
partial void OnCreated();
|
||||
partial void OnDinnerIDChanging(int value);
|
||||
partial void OnDinnerIDChanged();
|
||||
partial void OnTitleChanging(string value);
|
||||
partial void OnTitleChanged();
|
||||
partial void OnEventDateChanging(System.DateTime value);
|
||||
partial void OnEventDateChanged();
|
||||
partial void OnDescriptionChanging(string value);
|
||||
partial void OnDescriptionChanged();
|
||||
partial void OnHostedByChanging(string value);
|
||||
partial void OnHostedByChanged();
|
||||
partial void OnContactPhoneChanging(string value);
|
||||
partial void OnContactPhoneChanged();
|
||||
partial void OnAddressChanging(string value);
|
||||
partial void OnAddressChanged();
|
||||
partial void OnCountryChanging(string value);
|
||||
partial void OnCountryChanged();
|
||||
partial void OnLatitudeChanging(double value);
|
||||
partial void OnLatitudeChanged();
|
||||
partial void OnLongitudeChanging(double value);
|
||||
partial void OnLongitudeChanged();
|
||||
#endregion
|
||||
|
||||
public Dinner()
|
||||
{
|
||||
this._RSVPs = new EntitySet<RSVP>(new Action<RSVP>(this.attach_RSVPs), new Action<RSVP>(this.detach_RSVPs));
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
[Column(Storage="_DinnerID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
|
||||
public int DinnerID
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._DinnerID;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._DinnerID != value))
|
||||
{
|
||||
this.OnDinnerIDChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._DinnerID = value;
|
||||
this.SendPropertyChanged("DinnerID");
|
||||
this.OnDinnerIDChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[Column(Storage="_Title", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
|
||||
public string Title
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Title;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Title != value))
|
||||
{
|
||||
this.OnTitleChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Title = value;
|
||||
this.SendPropertyChanged("Title");
|
||||
this.OnTitleChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[Column(Storage="_EventDate", DbType="DateTime NOT NULL")]
|
||||
public System.DateTime EventDate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._EventDate;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._EventDate != value))
|
||||
{
|
||||
this.OnEventDateChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._EventDate = value;
|
||||
this.SendPropertyChanged("EventDate");
|
||||
this.OnEventDateChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[Column(Storage="_Description", DbType="NVarChar(256)")]
|
||||
public string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Description;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Description != value))
|
||||
{
|
||||
this.OnDescriptionChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Description = value;
|
||||
this.SendPropertyChanged("Description");
|
||||
this.OnDescriptionChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[Column(Storage="_HostedBy", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
|
||||
public string HostedBy
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._HostedBy;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._HostedBy != value))
|
||||
{
|
||||
this.OnHostedByChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._HostedBy = value;
|
||||
this.SendPropertyChanged("HostedBy");
|
||||
this.OnHostedByChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[Column(Storage="_ContactPhone", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
|
||||
public string ContactPhone
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ContactPhone;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ContactPhone != value))
|
||||
{
|
||||
this.OnContactPhoneChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ContactPhone = value;
|
||||
this.SendPropertyChanged("ContactPhone");
|
||||
this.OnContactPhoneChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[Column(Storage="_Address", DbType="NVarChar(50)")]
|
||||
public string Address
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Address;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Address != value))
|
||||
{
|
||||
this.OnAddressChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Address = value;
|
||||
this.SendPropertyChanged("Address");
|
||||
this.OnAddressChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[Column(Storage="_Country", DbType="NVarChar(30)")]
|
||||
public string Country
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Country;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Country != value))
|
||||
{
|
||||
this.OnCountryChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Country = value;
|
||||
this.SendPropertyChanged("Country");
|
||||
this.OnCountryChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[Column(Storage="_Latitude", DbType="Float NOT NULL")]
|
||||
public double Latitude
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Latitude;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Latitude != value))
|
||||
{
|
||||
this.OnLatitudeChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Latitude = value;
|
||||
this.SendPropertyChanged("Latitude");
|
||||
this.OnLatitudeChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[Column(Storage="_Longitude", DbType="Float NOT NULL")]
|
||||
public double Longitude
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Longitude;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Longitude != value))
|
||||
{
|
||||
this.OnLongitudeChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Longitude = value;
|
||||
this.SendPropertyChanged("Longitude");
|
||||
this.OnLongitudeChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[Association(Name="Dinner_RSVP", Storage="_RSVPs", ThisKey="DinnerID", OtherKey="DinnerID")]
|
||||
public EntitySet<RSVP> RSVPs
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._RSVPs;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._RSVPs.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
protected virtual void SendPropertyChanging()
|
||||
{
|
||||
if ((this.PropertyChanging != null))
|
||||
{
|
||||
this.PropertyChanging(this, emptyChangingEventArgs);
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual void SendPropertyChanged(String propertyName)
|
||||
{
|
||||
if ((this.PropertyChanged != null))
|
||||
{
|
||||
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
}
|
||||
|
||||
private void attach_RSVPs(RSVP entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Dinner = this;
|
||||
}
|
||||
|
||||
private void detach_RSVPs(RSVP entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Dinner = null;
|
||||
}
|
||||
}
|
||||
|
||||
[Table(Name="dbo.RSVP")]
|
||||
public partial class RSVP : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||
|
||||
private int _RsvpID;
|
||||
|
||||
private int _DinnerID;
|
||||
|
||||
private string _AttendeeName;
|
||||
|
||||
private EntityRef<Dinner> _Dinner;
|
||||
|
||||
#region Extensibility Method Definitions
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
partial void OnCreated();
|
||||
partial void OnRsvpIDChanging(int value);
|
||||
partial void OnRsvpIDChanged();
|
||||
partial void OnDinnerIDChanging(int value);
|
||||
partial void OnDinnerIDChanged();
|
||||
partial void OnAttendeeNameChanging(string value);
|
||||
partial void OnAttendeeNameChanged();
|
||||
#endregion
|
||||
|
||||
public RSVP()
|
||||
{
|
||||
this._Dinner = default(EntityRef<Dinner>);
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
[Column(Storage="_RsvpID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
|
||||
public int RsvpID
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._RsvpID;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._RsvpID != value))
|
||||
{
|
||||
this.OnRsvpIDChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._RsvpID = value;
|
||||
this.SendPropertyChanged("RsvpID");
|
||||
this.OnRsvpIDChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[Column(Storage="_DinnerID", DbType="Int NOT NULL")]
|
||||
public int DinnerID
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._DinnerID;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._DinnerID != value))
|
||||
{
|
||||
if (this._Dinner.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnDinnerIDChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._DinnerID = value;
|
||||
this.SendPropertyChanged("DinnerID");
|
||||
this.OnDinnerIDChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[Column(Storage="_AttendeeName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
|
||||
public string AttendeeName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._AttendeeName;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._AttendeeName != value))
|
||||
{
|
||||
this.OnAttendeeNameChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._AttendeeName = value;
|
||||
this.SendPropertyChanged("AttendeeName");
|
||||
this.OnAttendeeNameChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[Association(Name="Dinner_RSVP", Storage="_Dinner", ThisKey="DinnerID", OtherKey="DinnerID", IsForeignKey=true)]
|
||||
public Dinner Dinner
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Dinner.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
Dinner previousValue = this._Dinner.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._Dinner.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._Dinner.Entity = null;
|
||||
previousValue.RSVPs.Remove(this);
|
||||
}
|
||||
this._Dinner.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.RSVPs.Add(this);
|
||||
this._DinnerID = value.DinnerID;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._DinnerID = default(int);
|
||||
}
|
||||
this.SendPropertyChanged("Dinner");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
protected virtual void SendPropertyChanging()
|
||||
{
|
||||
if ((this.PropertyChanging != null))
|
||||
{
|
||||
this.PropertyChanging(this, emptyChangingEventArgs);
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual void SendPropertyChanged(String propertyName)
|
||||
{
|
||||
if ((this.PropertyChanged != null))
|
||||
{
|
||||
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public partial class NearestDinnersResult
|
||||
{
|
||||
|
||||
private int _DinnerID;
|
||||
|
||||
public NearestDinnersResult()
|
||||
{
|
||||
}
|
||||
|
||||
[Column(Storage="_DinnerID", DbType="Int NOT NULL")]
|
||||
public int DinnerID
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._DinnerID;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._DinnerID != value))
|
||||
{
|
||||
this._DinnerID = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore 1591
|
22
aspclassiccompiler/NerdDinnerAsp/Models/RuleViolation.cs
Normal file
22
aspclassiccompiler/NerdDinnerAsp/Models/RuleViolation.cs
Normal file
|
@ -0,0 +1,22 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace NerdDinner.Models {
|
||||
|
||||
public class RuleViolation {
|
||||
|
||||
public string ErrorMessage { get; private set; }
|
||||
public string PropertyName { get; private set; }
|
||||
|
||||
public RuleViolation(string errorMessage) {
|
||||
ErrorMessage = errorMessage;
|
||||
}
|
||||
|
||||
public RuleViolation(string errorMessage, string propertyName) {
|
||||
ErrorMessage = errorMessage;
|
||||
PropertyName = propertyName;
|
||||
}
|
||||
}
|
||||
}
|
196
aspclassiccompiler/NerdDinnerAsp/NerdDinnerAsp.csproj
Normal file
196
aspclassiccompiler/NerdDinnerAsp/NerdDinnerAsp.csproj
Normal file
|
@ -0,0 +1,196 @@
|
|||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.30729</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{328C148C-DBEE-41A4-B1C7-104CBB216556}</ProjectGuid>
|
||||
<ProjectTypeGuids>{603c0e0b-db56-11dc-be95-000d561079b0};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>NerdDinner</RootNamespace>
|
||||
<AssemblyName>NerdDinner</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<MvcBuildViews>false</MvcBuildViews>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Dlrsoft.Asp, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Core">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data.DataSetExtensions">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data.Linq">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>C:\Program Files\Microsoft ASP.NET\ASP.NET MVC RC\Assemblies\System.Web.Abstractions.dll</HintPath>
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>C:\Program Files\Microsoft ASP.NET\ASP.NET MVC RC\Assemblies\System.Web.Mvc.dll</HintPath>
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>C:\Program Files\Microsoft ASP.NET\ASP.NET MVC RC\Assemblies\System.Web.Routing.dll</HintPath>
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.Linq">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Web.Services" />
|
||||
<Reference Include="System.EnterpriseServices" />
|
||||
<Reference Include="System.Web.Mobile" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Controllers\AccountController.cs" />
|
||||
<Compile Include="Controllers\DinnersController.cs" />
|
||||
<Compile Include="Controllers\HomeController.cs" />
|
||||
<Compile Include="Controllers\SearchController.cs" />
|
||||
<Compile Include="Controllers\RSVPController.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Default.aspx.cs">
|
||||
<DependentUpon>Default.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Global.asax.cs">
|
||||
<DependentUpon>Global.asax</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Helpers\ControllerHelpers.cs" />
|
||||
<Compile Include="Helpers\PaginatedList.cs" />
|
||||
<Compile Include="Helpers\PhoneValidator.cs" />
|
||||
<Compile Include="Models\Dinner.cs" />
|
||||
<Compile Include="Models\DinnerRepository.cs" />
|
||||
<Compile Include="Models\IDinnerRepository.cs" />
|
||||
<Compile Include="Models\NerdDinner.designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>NerdDinner.dbml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Models\RuleViolation.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="App_Data\NerdDinner.mdf">
|
||||
</Content>
|
||||
<Content Include="App_Data\NerdDinner_log.ldf">
|
||||
<DependentUpon>NerdDinner.mdf</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Content\nerd.jpg" />
|
||||
<Content Include="Default.aspx" />
|
||||
<Content Include="Global.asax" />
|
||||
<Content Include="Scripts\Map.js" />
|
||||
<None Include="Views\Dinners\DinnerForm.asc" />
|
||||
<None Include="Views\Dinners\DinnerForm.ascx.bak" />
|
||||
<None Include="Views\Dinners\EditAndDeleteLinks.asc" />
|
||||
<None Include="Views\Dinners\EditAndDeleteLinks.ascx.bak" />
|
||||
<None Include="Views\Dinners\RSVPStatus.asc" />
|
||||
<Content Include="Views\Dinners\Map.asp" />
|
||||
<Content Include="Views\Dinners\Index.asp" />
|
||||
<None Include="Views\Dinners\RSVPStatus.ascx.bak">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</None>
|
||||
<None Include="Views\Dinners\Map.ascx.bak" />
|
||||
<Content Include="Views\Dinners\Edit.asp" />
|
||||
<Content Include="Views\Dinners\Create.asp" />
|
||||
<Content Include="Views\Dinners\Details.asp" />
|
||||
<Content Include="Views\Dinners\Delete.asp" />
|
||||
<Content Include="Views\Dinners\InvalidOwner.asp" />
|
||||
<Content Include="Views\Dinners\NotFound.asp" />
|
||||
<Content Include="Views\Dinners\Deleted.asp" />
|
||||
<Content Include="Views\Home\Index.asp" />
|
||||
<Content Include="Views\Home\About.asp" />
|
||||
<Content Include="Views\Shared\header.asp" />
|
||||
<Content Include="Views\Shared\template.asp" />
|
||||
<Content Include="Web.config" />
|
||||
<Content Include="Content\Site.css" />
|
||||
<Content Include="Scripts\jquery-1.2.6.js" />
|
||||
<Content Include="Scripts\jquery-1.2.6.min.js" />
|
||||
<Content Include="Scripts\jquery-1.2.6-vsdoc.js" />
|
||||
<Content Include="Scripts\jquery-1.2.6.min-vsdoc.js" />
|
||||
<Content Include="Scripts\MicrosoftAjax.js" />
|
||||
<Content Include="Scripts\MicrosoftAjax.debug.js" />
|
||||
<Content Include="Scripts\MicrosoftMvcAjax.js" />
|
||||
<Content Include="Scripts\MicrosoftMvcAjax.debug.js" />
|
||||
<Content Include="Views\Account\ChangePassword.aspx" />
|
||||
<Content Include="Views\Account\ChangePasswordSuccess.aspx" />
|
||||
<Content Include="Views\Account\LogOn.aspx" />
|
||||
<Content Include="Views\Account\Register.aspx" />
|
||||
<Content Include="Views\Shared\Error.aspx" />
|
||||
<Content Include="Views\Shared\LoginStatus.ascx" />
|
||||
<Content Include="Views\Shared\Site.Master" />
|
||||
<Content Include="Views\Web.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Models\NerdDinner.dbml">
|
||||
<Generator>MSLinqToSQLGenerator</Generator>
|
||||
<LastGenOutput>NerdDinner.designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Service Include="{3259AA49-8AA1-44D3-9025-A0B520596A8C}" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Models\NerdDinner.dbml.layout">
|
||||
<DependentUpon>NerdDinner.dbml</DependentUpon>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" />
|
||||
<!-- 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.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target> -->
|
||||
<Target Name="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
|
||||
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(ProjectDir)\..\$(ProjectName)" />
|
||||
</Target>
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
||||
<WebProjectProperties>
|
||||
<UseIIS>False</UseIIS>
|
||||
<AutoAssignPort>True</AutoAssignPort>
|
||||
<DevelopmentServerPort>60848</DevelopmentServerPort>
|
||||
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
||||
<IISUrl>
|
||||
</IISUrl>
|
||||
<NTLMAuthentication>False</NTLMAuthentication>
|
||||
<UseCustomServer>False</UseCustomServer>
|
||||
<CustomServerUrl>
|
||||
</CustomServerUrl>
|
||||
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
|
||||
</WebProjectProperties>
|
||||
</FlavorProperties>
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
</Project>
|
36
aspclassiccompiler/NerdDinnerAsp/NerdDinnerAsp.csproj.user
Normal file
36
aspclassiccompiler/NerdDinnerAsp/NerdDinnerAsp.csproj.user
Normal file
|
@ -0,0 +1,36 @@
|
|||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectView>ShowAllFiles</ProjectView>
|
||||
</PropertyGroup>
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
||||
<WebProjectProperties>
|
||||
<StartPageUrl>
|
||||
</StartPageUrl>
|
||||
<StartAction>CurrentPage</StartAction>
|
||||
<AspNetDebugging>True</AspNetDebugging>
|
||||
<SilverlightDebugging>False</SilverlightDebugging>
|
||||
<NativeDebugging>False</NativeDebugging>
|
||||
<SQLDebugging>False</SQLDebugging>
|
||||
<PublishCopyOption>RunFiles</PublishCopyOption>
|
||||
<PublishTargetLocation>
|
||||
</PublishTargetLocation>
|
||||
<PublishDeleteAllFiles>False</PublishDeleteAllFiles>
|
||||
<PublishCopyAppData>True</PublishCopyAppData>
|
||||
<ExternalProgram>
|
||||
</ExternalProgram>
|
||||
<StartExternalURL>
|
||||
</StartExternalURL>
|
||||
<StartCmdLineArguments>
|
||||
</StartCmdLineArguments>
|
||||
<StartWorkingDirectory>
|
||||
</StartWorkingDirectory>
|
||||
<EnableENC>False</EnableENC>
|
||||
<AlwaysStartWebServerOnDebug>True</AlwaysStartWebServerOnDebug>
|
||||
<EnableWcfTestClientForSVC>False</EnableWcfTestClientForSVC>
|
||||
</WebProjectProperties>
|
||||
</FlavorProperties>
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
</Project>
|
35
aspclassiccompiler/NerdDinnerAsp/Properties/AssemblyInfo.cs
Normal file
35
aspclassiccompiler/NerdDinnerAsp/Properties/AssemblyInfo.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("NerdDinner")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("NerdDinner")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2009")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("3f961952-a5a3-4ca2-bc29-5b46b500177d")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("0.5.2.32072")]
|
138
aspclassiccompiler/NerdDinnerAsp/Scripts/Map.js
Normal file
138
aspclassiccompiler/NerdDinnerAsp/Scripts/Map.js
Normal file
|
@ -0,0 +1,138 @@
|
|||
/// <reference path="jquery-1.2.6.js" />
|
||||
|
||||
var map = null;
|
||||
var points = [];
|
||||
var shapes = [];
|
||||
var center = null;
|
||||
|
||||
function LoadMap(latitude, longitude, onMapLoaded) {
|
||||
map = new VEMap('theMap');
|
||||
options = new VEMapOptions();
|
||||
options.EnableBirdseye = false;
|
||||
|
||||
// Makes the control bar less obtrusize.
|
||||
map.SetDashboardSize(VEDashboardSize.Small);
|
||||
|
||||
if (onMapLoaded != null)
|
||||
map.onLoadMap = onMapLoaded;
|
||||
|
||||
if (latitude != null && longitude != null) {
|
||||
center = new VELatLong(latitude, longitude);
|
||||
}
|
||||
|
||||
map.LoadMap(center, null, null, null, null, null, null, options);
|
||||
}
|
||||
|
||||
function LoadPin(LL, name, description) {
|
||||
var shape = new VEShape(VEShapeType.Pushpin, LL);
|
||||
|
||||
//Make a nice Pushpin shape with a title and description
|
||||
shape.SetTitle("<span class=\"pinTitle\"> " + escape(name) + "</span>");
|
||||
if (description !== undefined) {
|
||||
shape.SetDescription("<p class=\"pinDetails\">" +
|
||||
escape(description) + "</p>");
|
||||
}
|
||||
map.AddShape(shape);
|
||||
points.push(LL);
|
||||
shapes.push(shape);
|
||||
}
|
||||
|
||||
function FindAddressOnMap(where) {
|
||||
var numberOfResults = 20;
|
||||
var setBestMapView = true;
|
||||
var showResults = true;
|
||||
|
||||
map.Find("", where, null, null, null,
|
||||
numberOfResults, showResults, true, true,
|
||||
setBestMapView, callbackForLocation);
|
||||
}
|
||||
|
||||
function callbackForLocation(layer, resultsArray, places,
|
||||
hasMore, VEErrorMessage) {
|
||||
|
||||
clearMap();
|
||||
|
||||
if (places == null)
|
||||
return;
|
||||
|
||||
//Make a pushpin for each place we find
|
||||
$.each(places, function(i, item) {
|
||||
var description = "";
|
||||
if (item.Description !== undefined) {
|
||||
description = item.Description;
|
||||
}
|
||||
var LL = new VELatLong(item.LatLong.Latitude,
|
||||
item.LatLong.Longitude);
|
||||
|
||||
LoadPin(LL, item.Name, description);
|
||||
});
|
||||
|
||||
//Make sure all pushpins are visible
|
||||
if (points.length > 1) {
|
||||
map.SetMapView(points);
|
||||
}
|
||||
|
||||
//If we've found exactly one place, that's our address.
|
||||
if (points.length === 1) {
|
||||
$("#Latitude").val(points[0].Latitude);
|
||||
$("#Longitude").val(points[0].Longitude);
|
||||
}
|
||||
}
|
||||
|
||||
function clearMap() {
|
||||
map.Clear();
|
||||
points = [];
|
||||
shapes = [];
|
||||
}
|
||||
|
||||
function FindDinnersGivenLocation(where) {
|
||||
map.Find("", where, null, null, null, null, null, false,
|
||||
null, null, callbackUpdateMapDinners);
|
||||
}
|
||||
|
||||
function callbackUpdateMapDinners(layer, resultsArray, places, hasMore, VEErrorMessage) {
|
||||
$("#dinnerList").empty();
|
||||
clearMap();
|
||||
var center = map.GetCenter();
|
||||
|
||||
$.post("/Search/SearchByLocation", { latitude: center.Latitude,
|
||||
longitude: center.Longitude
|
||||
}, function(dinners) {
|
||||
$.each(dinners, function(i, dinner) {
|
||||
|
||||
var LL = new VELatLong(dinner.Latitude, dinner.Longitude, 0, null);
|
||||
|
||||
var RsvpMessage = "";
|
||||
|
||||
if (dinner.RSVPCount == 1)
|
||||
RsvpMessage = "" + dinner.RSVPCount + " RSVP";
|
||||
else
|
||||
RsvpMessage = "" + dinner.RSVPCount + " RSVPs";
|
||||
|
||||
// Add Pin to Map
|
||||
LoadPin(LL, '<a href="/Dinners/Details/' + dinner.DinnerID + '">'
|
||||
+ dinner.Title + '</a>',
|
||||
"<p>" + dinner.Description + "</p>" + RsvpMessage);
|
||||
|
||||
//Add a dinner to the <ul> dinnerList on the right
|
||||
$('#dinnerList').append($('<li/>')
|
||||
.attr("class", "dinnerItem")
|
||||
.append($('<a/>').attr("href",
|
||||
"/Dinners/Details/" + dinner.DinnerID)
|
||||
.html(dinner.Title)).append(" ("+RsvpMessage+")"));
|
||||
});
|
||||
|
||||
// Adjust zoom to display all the pins we just added.
|
||||
if (points.length > 1) {
|
||||
map.SetMapView(points);
|
||||
}
|
||||
|
||||
// Display the event's pin-bubble on hover.
|
||||
$(".dinnerItem").each(function(i, dinner) {
|
||||
$(dinner).hover(
|
||||
function() { map.ShowInfoBox(shapes[i]); },
|
||||
function() { map.HideInfoBox(shapes[i]); }
|
||||
);
|
||||
});
|
||||
}, "json");
|
||||
}
|
6850
aspclassiccompiler/NerdDinnerAsp/Scripts/MicrosoftAjax.debug.js
vendored
Normal file
6850
aspclassiccompiler/NerdDinnerAsp/Scripts/MicrosoftAjax.debug.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
7
aspclassiccompiler/NerdDinnerAsp/Scripts/MicrosoftAjax.js
vendored
Normal file
7
aspclassiccompiler/NerdDinnerAsp/Scripts/MicrosoftAjax.js
vendored
Normal file
File diff suppressed because one or more lines are too long
337
aspclassiccompiler/NerdDinnerAsp/Scripts/MicrosoftMvcAjax.debug.js
vendored
Normal file
337
aspclassiccompiler/NerdDinnerAsp/Scripts/MicrosoftMvcAjax.debug.js
vendored
Normal file
|
@ -0,0 +1,337 @@
|
|||
//----------------------------------------------------------
|
||||
// Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
//----------------------------------------------------------
|
||||
// MicrosoftMvcAjax.js
|
||||
|
||||
Type.registerNamespace('Sys.Mvc');
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Sys.Mvc.AjaxOptions
|
||||
|
||||
Sys.Mvc.$create_AjaxOptions = function Sys_Mvc_AjaxOptions() { return {}; }
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Sys.Mvc.InsertionMode
|
||||
|
||||
Sys.Mvc.InsertionMode = function() {
|
||||
/// <field name="replace" type="Number" integer="true" static="true">
|
||||
/// </field>
|
||||
/// <field name="insertBefore" type="Number" integer="true" static="true">
|
||||
/// </field>
|
||||
/// <field name="insertAfter" type="Number" integer="true" static="true">
|
||||
/// </field>
|
||||
};
|
||||
Sys.Mvc.InsertionMode.prototype = {
|
||||
replace: 0,
|
||||
insertBefore: 1,
|
||||
insertAfter: 2
|
||||
}
|
||||
Sys.Mvc.InsertionMode.registerEnum('Sys.Mvc.InsertionMode', false);
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Sys.Mvc.AjaxContext
|
||||
|
||||
Sys.Mvc.AjaxContext = function Sys_Mvc_AjaxContext(request, updateTarget, loadingElement, insertionMode) {
|
||||
/// <param name="request" type="Sys.Net.WebRequest">
|
||||
/// </param>
|
||||
/// <param name="updateTarget" type="Object" domElement="true">
|
||||
/// </param>
|
||||
/// <param name="loadingElement" type="Object" domElement="true">
|
||||
/// </param>
|
||||
/// <param name="insertionMode" type="Sys.Mvc.InsertionMode">
|
||||
/// </param>
|
||||
/// <field name="_insertionMode" type="Sys.Mvc.InsertionMode">
|
||||
/// </field>
|
||||
/// <field name="_loadingElement" type="Object" domElement="true">
|
||||
/// </field>
|
||||
/// <field name="_response" type="Sys.Net.WebRequestExecutor">
|
||||
/// </field>
|
||||
/// <field name="_request" type="Sys.Net.WebRequest">
|
||||
/// </field>
|
||||
/// <field name="_updateTarget" type="Object" domElement="true">
|
||||
/// </field>
|
||||
this._request = request;
|
||||
this._updateTarget = updateTarget;
|
||||
this._loadingElement = loadingElement;
|
||||
this._insertionMode = insertionMode;
|
||||
}
|
||||
Sys.Mvc.AjaxContext.prototype = {
|
||||
_insertionMode: 0,
|
||||
_loadingElement: null,
|
||||
_response: null,
|
||||
_request: null,
|
||||
_updateTarget: null,
|
||||
|
||||
get_data: function Sys_Mvc_AjaxContext$get_data() {
|
||||
/// <value type="String"></value>
|
||||
if (this._response) {
|
||||
return this._response.get_responseData();
|
||||
}
|
||||
else {
|
||||
return null;
|
||||
}
|
||||
},
|
||||
|
||||
get_insertionMode: function Sys_Mvc_AjaxContext$get_insertionMode() {
|
||||
/// <value type="Sys.Mvc.InsertionMode"></value>
|
||||
return this._insertionMode;
|
||||
},
|
||||
|
||||
get_loadingElement: function Sys_Mvc_AjaxContext$get_loadingElement() {
|
||||
/// <value type="Object" domElement="true"></value>
|
||||
return this._loadingElement;
|
||||
},
|
||||
|
||||
get_response: function Sys_Mvc_AjaxContext$get_response() {
|
||||
/// <value type="Sys.Net.WebRequestExecutor"></value>
|
||||
return this._response;
|
||||
},
|
||||
set_response: function Sys_Mvc_AjaxContext$set_response(value) {
|
||||
/// <value type="Sys.Net.WebRequestExecutor"></value>
|
||||
this._response = value;
|
||||
return value;
|
||||
},
|
||||
|
||||
get_request: function Sys_Mvc_AjaxContext$get_request() {
|
||||
/// <value type="Sys.Net.WebRequest"></value>
|
||||
return this._request;
|
||||
},
|
||||
|
||||
get_updateTarget: function Sys_Mvc_AjaxContext$get_updateTarget() {
|
||||
/// <value type="Object" domElement="true"></value>
|
||||
return this._updateTarget;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Sys.Mvc.AsyncHyperlink
|
||||
|
||||
Sys.Mvc.AsyncHyperlink = function Sys_Mvc_AsyncHyperlink() {
|
||||
}
|
||||
Sys.Mvc.AsyncHyperlink.handleClick = function Sys_Mvc_AsyncHyperlink$handleClick(anchor, evt, ajaxOptions) {
|
||||
/// <param name="anchor" type="Object" domElement="true">
|
||||
/// </param>
|
||||
/// <param name="evt" type="Sys.UI.DomEvent">
|
||||
/// </param>
|
||||
/// <param name="ajaxOptions" type="Sys.Mvc.AjaxOptions">
|
||||
/// </param>
|
||||
evt.preventDefault();
|
||||
Sys.Mvc.MvcHelpers._asyncRequest(anchor.href, 'post', '', anchor, ajaxOptions);
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Sys.Mvc.MvcHelpers
|
||||
|
||||
Sys.Mvc.MvcHelpers = function Sys_Mvc_MvcHelpers() {
|
||||
}
|
||||
Sys.Mvc.MvcHelpers._serializeForm = function Sys_Mvc_MvcHelpers$_serializeForm(form) {
|
||||
/// <param name="form" type="Object" domElement="true">
|
||||
/// </param>
|
||||
/// <returns type="String"></returns>
|
||||
var formElements = form.elements;
|
||||
var formBody = new Sys.StringBuilder();
|
||||
var count = formElements.length;
|
||||
for (var i = 0; i < count; i++) {
|
||||
var element = formElements[i];
|
||||
var name = element.name;
|
||||
if (!name || !name.length) {
|
||||
continue;
|
||||
}
|
||||
var tagName = element.tagName.toUpperCase();
|
||||
if (tagName === 'INPUT') {
|
||||
var inputElement = element;
|
||||
var type = inputElement.type;
|
||||
if ((type === 'text') || (type === 'password') || (type === 'hidden') || (((type === 'checkbox') || (type === 'radio')) && element.checked)) {
|
||||
formBody.append(encodeURIComponent(name));
|
||||
formBody.append('=');
|
||||
formBody.append(encodeURIComponent(inputElement.value));
|
||||
formBody.append('&');
|
||||
}
|
||||
}
|
||||
else if (tagName === 'SELECT') {
|
||||
var selectElement = element;
|
||||
var optionCount = selectElement.options.length;
|
||||
for (var j = 0; j < optionCount; j++) {
|
||||
var optionElement = selectElement.options[j];
|
||||
if (optionElement.selected) {
|
||||
formBody.append(encodeURIComponent(name));
|
||||
formBody.append('=');
|
||||
formBody.append(encodeURIComponent(optionElement.value));
|
||||
formBody.append('&');
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (tagName === 'TEXTAREA') {
|
||||
formBody.append(encodeURIComponent(name));
|
||||
formBody.append('=');
|
||||
formBody.append(encodeURIComponent((element.value)));
|
||||
formBody.append('&');
|
||||
}
|
||||
}
|
||||
return formBody.toString();
|
||||
}
|
||||
Sys.Mvc.MvcHelpers._asyncRequest = function Sys_Mvc_MvcHelpers$_asyncRequest(url, verb, body, triggerElement, ajaxOptions) {
|
||||
/// <param name="url" type="String">
|
||||
/// </param>
|
||||
/// <param name="verb" type="String">
|
||||
/// </param>
|
||||
/// <param name="body" type="String">
|
||||
/// </param>
|
||||
/// <param name="triggerElement" type="Object" domElement="true">
|
||||
/// </param>
|
||||
/// <param name="ajaxOptions" type="Sys.Mvc.AjaxOptions">
|
||||
/// </param>
|
||||
if (ajaxOptions.confirm) {
|
||||
if (!confirm(ajaxOptions.confirm)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (ajaxOptions.url) {
|
||||
url = ajaxOptions.url;
|
||||
}
|
||||
if (ajaxOptions.httpMethod) {
|
||||
verb = ajaxOptions.httpMethod;
|
||||
}
|
||||
if (body.length > 0 && !body.endsWith('&')) {
|
||||
body += '&';
|
||||
}
|
||||
body += 'X-Requested-With=XMLHttpRequest';
|
||||
var requestBody = '';
|
||||
if (verb.toUpperCase() === 'GET' || verb.toUpperCase() === 'DELETE') {
|
||||
if (url.indexOf('?') > -1) {
|
||||
if (!url.endsWith('&')) {
|
||||
url += '&';
|
||||
}
|
||||
url += body;
|
||||
}
|
||||
else {
|
||||
url += '?';
|
||||
url += body;
|
||||
}
|
||||
}
|
||||
else {
|
||||
requestBody = body;
|
||||
}
|
||||
var request = new Sys.Net.WebRequest();
|
||||
request.set_url(url);
|
||||
request.set_httpVerb(verb);
|
||||
request.set_body(requestBody);
|
||||
if (verb.toUpperCase() === 'PUT') {
|
||||
request.get_headers()['Content-Type'] = 'application/x-www-form-urlencoded;';
|
||||
}
|
||||
request.get_headers()['X-Requested-With'] = 'XMLHttpRequest';
|
||||
var updateElement = null;
|
||||
if (ajaxOptions.updateTargetId) {
|
||||
updateElement = $get(ajaxOptions.updateTargetId);
|
||||
}
|
||||
var loadingElement = null;
|
||||
if (ajaxOptions.loadingElementId) {
|
||||
loadingElement = $get(ajaxOptions.loadingElementId);
|
||||
}
|
||||
var ajaxContext = new Sys.Mvc.AjaxContext(request, updateElement, loadingElement, ajaxOptions.insertionMode);
|
||||
var continueRequest = true;
|
||||
if (ajaxOptions.onBegin) {
|
||||
continueRequest = ajaxOptions.onBegin(ajaxContext) !== false;
|
||||
}
|
||||
if (loadingElement) {
|
||||
Sys.UI.DomElement.setVisible(ajaxContext.get_loadingElement(), true);
|
||||
}
|
||||
if (continueRequest) {
|
||||
request.add_completed(Function.createDelegate(null, function(executor) {
|
||||
Sys.Mvc.MvcHelpers._onComplete(request, ajaxOptions, ajaxContext);
|
||||
}));
|
||||
request.invoke();
|
||||
}
|
||||
}
|
||||
Sys.Mvc.MvcHelpers._onComplete = function Sys_Mvc_MvcHelpers$_onComplete(request, ajaxOptions, ajaxContext) {
|
||||
/// <param name="request" type="Sys.Net.WebRequest">
|
||||
/// </param>
|
||||
/// <param name="ajaxOptions" type="Sys.Mvc.AjaxOptions">
|
||||
/// </param>
|
||||
/// <param name="ajaxContext" type="Sys.Mvc.AjaxContext">
|
||||
/// </param>
|
||||
ajaxContext.set_response(request.get_executor());
|
||||
if (ajaxOptions.onComplete && ajaxOptions.onComplete(ajaxContext) === false) {
|
||||
return;
|
||||
}
|
||||
var statusCode = ajaxContext.get_response().get_statusCode();
|
||||
if ((statusCode >= 200 && statusCode < 300) || statusCode === 304 || statusCode === 1223) {
|
||||
if (statusCode !== 204 && statusCode !== 304 && statusCode !== 1223) {
|
||||
var contentType = ajaxContext.get_response().getResponseHeader('Content-Type');
|
||||
if ((contentType) && (contentType.indexOf('application/x-javascript') !== -1)) {
|
||||
eval(ajaxContext.get_data());
|
||||
}
|
||||
else {
|
||||
Sys.Mvc.MvcHelpers.updateDomElement(ajaxContext.get_updateTarget(), ajaxContext.get_insertionMode(), ajaxContext.get_data());
|
||||
}
|
||||
}
|
||||
if (ajaxOptions.onSuccess) {
|
||||
ajaxOptions.onSuccess(ajaxContext);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (ajaxOptions.onFailure) {
|
||||
ajaxOptions.onFailure(ajaxContext);
|
||||
}
|
||||
}
|
||||
if (ajaxContext.get_loadingElement()) {
|
||||
Sys.UI.DomElement.setVisible(ajaxContext.get_loadingElement(), false);
|
||||
}
|
||||
}
|
||||
Sys.Mvc.MvcHelpers.updateDomElement = function Sys_Mvc_MvcHelpers$updateDomElement(target, insertionMode, content) {
|
||||
/// <param name="target" type="Object" domElement="true">
|
||||
/// </param>
|
||||
/// <param name="insertionMode" type="Sys.Mvc.InsertionMode">
|
||||
/// </param>
|
||||
/// <param name="content" type="String">
|
||||
/// </param>
|
||||
if (target) {
|
||||
switch (insertionMode) {
|
||||
case Sys.Mvc.InsertionMode.replace:
|
||||
target.innerHTML = content;
|
||||
break;
|
||||
case Sys.Mvc.InsertionMode.insertBefore:
|
||||
if (content && content.length > 0) {
|
||||
target.innerHTML = content + target.innerHTML.trimStart();
|
||||
}
|
||||
break;
|
||||
case Sys.Mvc.InsertionMode.insertAfter:
|
||||
if (content && content.length > 0) {
|
||||
target.innerHTML = target.innerHTML.trimEnd() + content;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Sys.Mvc.AsyncForm
|
||||
|
||||
Sys.Mvc.AsyncForm = function Sys_Mvc_AsyncForm() {
|
||||
}
|
||||
Sys.Mvc.AsyncForm.handleSubmit = function Sys_Mvc_AsyncForm$handleSubmit(form, evt, ajaxOptions) {
|
||||
/// <param name="form" type="Object" domElement="true">
|
||||
/// </param>
|
||||
/// <param name="evt" type="Sys.UI.DomEvent">
|
||||
/// </param>
|
||||
/// <param name="ajaxOptions" type="Sys.Mvc.AjaxOptions">
|
||||
/// </param>
|
||||
evt.preventDefault();
|
||||
var body = Sys.Mvc.MvcHelpers._serializeForm(form);
|
||||
Sys.Mvc.MvcHelpers._asyncRequest(form.action, form.method || 'post', body, form, ajaxOptions);
|
||||
}
|
||||
|
||||
|
||||
Sys.Mvc.AjaxContext.registerClass('Sys.Mvc.AjaxContext');
|
||||
Sys.Mvc.AsyncHyperlink.registerClass('Sys.Mvc.AsyncHyperlink');
|
||||
Sys.Mvc.MvcHelpers.registerClass('Sys.Mvc.MvcHelpers');
|
||||
Sys.Mvc.AsyncForm.registerClass('Sys.Mvc.AsyncForm');
|
||||
|
||||
// ---- Do not remove this footer ----
|
||||
// Generated using Script# v0.5.0.0 (http://projects.nikhilk.net)
|
||||
// -----------------------------------
|
19
aspclassiccompiler/NerdDinnerAsp/Scripts/MicrosoftMvcAjax.js
vendored
Normal file
19
aspclassiccompiler/NerdDinnerAsp/Scripts/MicrosoftMvcAjax.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
|
||||
Type.registerNamespace('Sys.Mvc');Sys.Mvc.$create_AjaxOptions=function(){return {};}
|
||||
Sys.Mvc.InsertionMode=function(){};Sys.Mvc.InsertionMode.prototype = {replace:0,insertBefore:1,insertAfter:2}
|
||||
Sys.Mvc.InsertionMode.registerEnum('Sys.Mvc.InsertionMode',false);Sys.Mvc.AjaxContext=function(request,updateTarget,loadingElement,insertionMode){this.$3=request;this.$4=updateTarget;this.$1=loadingElement;this.$0=insertionMode;}
|
||||
Sys.Mvc.AjaxContext.prototype={$0:0,$1:null,$2:null,$3:null,$4:null,get_data:function(){if(this.$2){return this.$2.get_responseData();}else{return null;}},get_insertionMode:function(){return this.$0;},get_loadingElement:function(){return this.$1;},get_response:function(){return this.$2;},set_response:function(value){this.$2=value;return value;},get_request:function(){return this.$3;},get_updateTarget:function(){return this.$4;}}
|
||||
Sys.Mvc.AsyncHyperlink=function(){}
|
||||
Sys.Mvc.AsyncHyperlink.handleClick=function(anchor,evt,ajaxOptions){evt.preventDefault();Sys.Mvc.MvcHelpers.$1(anchor.href,'post','',anchor,ajaxOptions);}
|
||||
Sys.Mvc.MvcHelpers=function(){}
|
||||
Sys.Mvc.MvcHelpers.$0=function($p0){var $0=$p0.elements;var $1=new Sys.StringBuilder();var $2=$0.length;for(var $3=0;$3<$2;$3++){var $4=$0[$3];var $5=$4.name;if(!$5||!$5.length){continue;}var $6=$4.tagName.toUpperCase();if($6==='INPUT'){var $7=$4;var $8=$7.type;if(($8==='text')||($8==='password')||($8==='hidden')||((($8==='checkbox')||($8==='radio'))&&$4.checked)){$1.append(encodeURIComponent($5));$1.append('=');$1.append(encodeURIComponent($7.value));$1.append('&');}}else if($6==='SELECT'){var $9=$4;var $A=$9.options.length;for(var $B=0;$B<$A;$B++){var $C=$9.options[$B];if($C.selected){$1.append(encodeURIComponent($5));$1.append('=');$1.append(encodeURIComponent($C.value));$1.append('&');}}}else if($6==='TEXTAREA'){$1.append(encodeURIComponent($5));$1.append('=');$1.append(encodeURIComponent(($4.value)));$1.append('&');}}return $1.toString();}
|
||||
Sys.Mvc.MvcHelpers.$1=function($p0,$p1,$p2,$p3,$p4){if($p4.confirm){if(!confirm($p4.confirm)){return;}}if($p4.url){$p0=$p4.url;}if($p4.httpMethod){$p1=$p4.httpMethod;}if($p2.length>0&&!$p2.endsWith('&')){$p2+='&';}$p2+='X-Requested-With=XMLHttpRequest';var $0='';if($p1.toUpperCase()==='GET'||$p1.toUpperCase()==='DELETE'){if($p0.indexOf('?')>-1){if(!$p0.endsWith('&')){$p0+='&';}$p0+=$p2;}else{$p0+='?';$p0+=$p2;}}else{$0=$p2;}var $1=new Sys.Net.WebRequest();$1.set_url($p0);$1.set_httpVerb($p1);$1.set_body($0);if($p1.toUpperCase()==='PUT'){$1.get_headers()['Content-Type']='application/x-www-form-urlencoded;';}$1.get_headers()['X-Requested-With']='XMLHttpRequest';var $2=null;if($p4.updateTargetId){$2=$get($p4.updateTargetId);}var $3=null;if($p4.loadingElementId){$3=$get($p4.loadingElementId);}var $4=new Sys.Mvc.AjaxContext($1,$2,$3,$p4.insertionMode);var $5=true;if($p4.onBegin){$5=$p4.onBegin($4)!==false;}if($3){Sys.UI.DomElement.setVisible($4.get_loadingElement(),true);}if($5){$1.add_completed(Function.createDelegate(null,function($p1_0){
|
||||
Sys.Mvc.MvcHelpers.$2($1,$p4,$4);}));$1.invoke();}}
|
||||
Sys.Mvc.MvcHelpers.$2=function($p0,$p1,$p2){$p2.set_response($p0.get_executor());if($p1.onComplete&&$p1.onComplete($p2)===false){return;}var $0=$p2.get_response().get_statusCode();if(($0>=200&&$0<300)||$0===304||$0===1223){if($0!==204&&$0!==304&&$0!==1223){var $1=$p2.get_response().getResponseHeader('Content-Type');if(($1)&&($1.indexOf('application/x-javascript')!==-1)){eval($p2.get_data());}else{Sys.Mvc.MvcHelpers.updateDomElement($p2.get_updateTarget(),$p2.get_insertionMode(),$p2.get_data());}}if($p1.onSuccess){$p1.onSuccess($p2);}}else{if($p1.onFailure){$p1.onFailure($p2);}}if($p2.get_loadingElement()){Sys.UI.DomElement.setVisible($p2.get_loadingElement(),false);}}
|
||||
Sys.Mvc.MvcHelpers.updateDomElement=function(target,insertionMode,content){if(target){switch(insertionMode){case 0:target.innerHTML=content;break;case 1:if(content&&content.length>0){target.innerHTML=content+target.innerHTML.trimStart();}break;case 2:if(content&&content.length>0){target.innerHTML=target.innerHTML.trimEnd()+content;}break;}}}
|
||||
Sys.Mvc.AsyncForm=function(){}
|
||||
Sys.Mvc.AsyncForm.handleSubmit=function(form,evt,ajaxOptions){evt.preventDefault();var $0=Sys.Mvc.MvcHelpers.$0(form);Sys.Mvc.MvcHelpers.$1(form.action,form.method||'post',$0,form,ajaxOptions);}
|
||||
Sys.Mvc.AjaxContext.registerClass('Sys.Mvc.AjaxContext');Sys.Mvc.AsyncHyperlink.registerClass('Sys.Mvc.AsyncHyperlink');Sys.Mvc.MvcHelpers.registerClass('Sys.Mvc.MvcHelpers');Sys.Mvc.AsyncForm.registerClass('Sys.Mvc.AsyncForm');
|
||||
// ---- Do not remove this footer ----
|
||||
// Generated using Script# v0.5.0.0 (http://projects.nikhilk.net)
|
||||
// -----------------------------------
|
5367
aspclassiccompiler/NerdDinnerAsp/Scripts/jquery-1.2.6-vsdoc.js
vendored
Normal file
5367
aspclassiccompiler/NerdDinnerAsp/Scripts/jquery-1.2.6-vsdoc.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
3566
aspclassiccompiler/NerdDinnerAsp/Scripts/jquery-1.2.6.js
vendored
Normal file
3566
aspclassiccompiler/NerdDinnerAsp/Scripts/jquery-1.2.6.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
5367
aspclassiccompiler/NerdDinnerAsp/Scripts/jquery-1.2.6.min-vsdoc.js
vendored
Normal file
5367
aspclassiccompiler/NerdDinnerAsp/Scripts/jquery-1.2.6.min-vsdoc.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
49
aspclassiccompiler/NerdDinnerAsp/Scripts/jquery-1.2.6.min.js
vendored
Normal file
49
aspclassiccompiler/NerdDinnerAsp/Scripts/jquery-1.2.6.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,42 @@
|
|||
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
|
||||
|
||||
<asp:Content ID="title" ContentPlaceHolderID="TitleContent" runat="server">
|
||||
Change Password
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="changePasswordContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<h2>Change Password</h2>
|
||||
<p>
|
||||
Use the form below to change your password.
|
||||
</p>
|
||||
<p>
|
||||
New passwords are required to be a minimum of <%=Html.Encode(ViewData["PasswordLength"])%> characters in length.
|
||||
</p>
|
||||
<%= Html.ValidationSummary() %>
|
||||
|
||||
<% using (Html.BeginForm()) { %>
|
||||
<div>
|
||||
<fieldset>
|
||||
<legend>Account Information</legend>
|
||||
<p>
|
||||
<label for="currentPassword">Current password:</label>
|
||||
<%= Html.Password("currentPassword") %>
|
||||
<%= Html.ValidationMessage("currentPassword") %>
|
||||
</p>
|
||||
<p>
|
||||
<label for="newPassword">New password:</label>
|
||||
<%= Html.Password("newPassword") %>
|
||||
<%= Html.ValidationMessage("newPassword") %>
|
||||
</p>
|
||||
<p>
|
||||
<label for="confirmPassword">Confirm new password:</label>
|
||||
<%= Html.Password("confirmPassword") %>
|
||||
<%= Html.ValidationMessage("confirmPassword") %>
|
||||
</p>
|
||||
<p>
|
||||
<input type="submit" value="Change Password" />
|
||||
</p>
|
||||
</fieldset>
|
||||
</div>
|
||||
<% } %>
|
||||
</asp:Content>
|
|
@ -0,0 +1,12 @@
|
|||
<%@Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
|
||||
|
||||
<asp:Content ID="Title" ContentPlaceHolderID="TitleContent" runat="server">
|
||||
Change Password
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="changePasswordSuccessContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<h2>Change Password</h2>
|
||||
<p>
|
||||
Your password has been changed successfully.
|
||||
</p>
|
||||
</asp:Content>
|
37
aspclassiccompiler/NerdDinnerAsp/Views/Account/LogOn.aspx
Normal file
37
aspclassiccompiler/NerdDinnerAsp/Views/Account/LogOn.aspx
Normal file
|
@ -0,0 +1,37 @@
|
|||
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
|
||||
|
||||
<asp:Content ID="Title" ContentPlaceHolderID="TitleContent" runat="server">
|
||||
Log On
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<h2>Log On</h2>
|
||||
<p>
|
||||
Please enter your username and password. <%= Html.ActionLink("Register", "Register") %> if you don't have an account.
|
||||
</p>
|
||||
<%= Html.ValidationSummary() %>
|
||||
|
||||
<% using (Html.BeginForm()) { %>
|
||||
<div>
|
||||
<fieldset>
|
||||
<legend>Account Information</legend>
|
||||
<p>
|
||||
<label for="username">Username:</label>
|
||||
<%= Html.TextBox("username") %>
|
||||
<%= Html.ValidationMessage("username") %>
|
||||
</p>
|
||||
<p>
|
||||
<label for="password">Password:</label>
|
||||
<%= Html.Password("password") %>
|
||||
<%= Html.ValidationMessage("password") %>
|
||||
</p>
|
||||
<p>
|
||||
<%= Html.CheckBox("rememberMe") %> <label class="inline" for="rememberMe">Remember me?</label>
|
||||
</p>
|
||||
<p>
|
||||
<input type="submit" value="Log On" />
|
||||
</p>
|
||||
</fieldset>
|
||||
</div>
|
||||
<% } %>
|
||||
</asp:Content>
|
47
aspclassiccompiler/NerdDinnerAsp/Views/Account/Register.aspx
Normal file
47
aspclassiccompiler/NerdDinnerAsp/Views/Account/Register.aspx
Normal file
|
@ -0,0 +1,47 @@
|
|||
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
|
||||
|
||||
<asp:Content ID="Title" ContentPlaceHolderID="TitleContent" runat="server">
|
||||
Register
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<h2>Create a New Account</h2>
|
||||
<p>
|
||||
Use the form below to create a new account.
|
||||
</p>
|
||||
<p>
|
||||
Passwords are required to be a minimum of <%=Html.Encode(ViewData["PasswordLength"])%> characters in length.
|
||||
</p>
|
||||
<%= Html.ValidationSummary() %>
|
||||
|
||||
<% using (Html.BeginForm()) { %>
|
||||
<div>
|
||||
<fieldset>
|
||||
<legend>Account Information</legend>
|
||||
<p>
|
||||
<label for="username">Username:</label>
|
||||
<%= Html.TextBox("username") %>
|
||||
<%= Html.ValidationMessage("username") %>
|
||||
</p>
|
||||
<p>
|
||||
<label for="email">Email:</label>
|
||||
<%= Html.TextBox("email") %>
|
||||
<%= Html.ValidationMessage("email") %>
|
||||
</p>
|
||||
<p>
|
||||
<label for="password">Password:</label>
|
||||
<%= Html.Password("password") %>
|
||||
<%= Html.ValidationMessage("password") %>
|
||||
</p>
|
||||
<p>
|
||||
<label for="confirmPassword">Confirm password:</label>
|
||||
<%= Html.Password("confirmPassword") %>
|
||||
<%= Html.ValidationMessage("confirmPassword") %>
|
||||
</p>
|
||||
<p>
|
||||
<input type="submit" value="Register" />
|
||||
</p>
|
||||
</fieldset>
|
||||
</div>
|
||||
<% } %>
|
||||
</asp:Content>
|
25
aspclassiccompiler/NerdDinnerAsp/Views/Dinners/Create.asp
Normal file
25
aspclassiccompiler/NerdDinnerAsp/Views/Dinners/Create.asp
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head id="Head1" runat="server">
|
||||
<title>Host a Dinner</title>
|
||||
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
|
||||
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
|
||||
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
|
||||
|
||||
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="page">
|
||||
|
||||
<% Html.RenderPartial("header") %>
|
||||
|
||||
<div id="main">
|
||||
<% Html.RenderPartial("DinnerForm"); %>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
39
aspclassiccompiler/NerdDinnerAsp/Views/Dinners/Delete.asp
Normal file
39
aspclassiccompiler/NerdDinnerAsp/Views/Dinners/Delete.asp
Normal file
|
@ -0,0 +1,39 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head id="Head1" runat="server">
|
||||
<title>Delete Confirmation: <%=Html.Encode(Model.Title) %></title>
|
||||
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
|
||||
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
|
||||
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
|
||||
|
||||
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="page">
|
||||
|
||||
<% Html.RenderPartial("header") %>
|
||||
|
||||
<div id="main">
|
||||
<h2>
|
||||
Delete Confirmation
|
||||
</h2>
|
||||
|
||||
<div>
|
||||
<p>Please confirm you want to cancel the dinner titled:
|
||||
<i> <%=Html.Encode(Model.Title) %>? </i> </p>
|
||||
</div>
|
||||
|
||||
<% dim myForm
|
||||
myForm = Html.BeginForm() %>
|
||||
|
||||
<input name="confirmButton" type="submit" value="Delete" />
|
||||
|
||||
<% myForm.dispose() %>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
33
aspclassiccompiler/NerdDinnerAsp/Views/Dinners/Deleted.asp
Normal file
33
aspclassiccompiler/NerdDinnerAsp/Views/Dinners/Deleted.asp
Normal file
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head id="Head1" runat="server">
|
||||
<title>Deleted</title>
|
||||
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
|
||||
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
|
||||
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
|
||||
|
||||
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="page">
|
||||
|
||||
<% Html.RenderPartial("header") %>
|
||||
|
||||
<div id="main">
|
||||
<h2>Dinner Deleted</h2>
|
||||
|
||||
<div>
|
||||
<p>Your dinner was successfully deleted.</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p><a href="/dinners">Click for Upcoming Dinners</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
57
aspclassiccompiler/NerdDinnerAsp/Views/Dinners/Details.asp
Normal file
57
aspclassiccompiler/NerdDinnerAsp/Views/Dinners/Details.asp
Normal file
|
@ -0,0 +1,57 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head id="Head1" runat="server">
|
||||
<title><%= Html.Encode(Model.Title) %></title>
|
||||
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
|
||||
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
|
||||
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
|
||||
|
||||
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="page">
|
||||
|
||||
<% Html.RenderPartial("header") %>
|
||||
|
||||
<div id="main">
|
||||
<div id="dinnerDiv">
|
||||
|
||||
<h2><%= Html.Encode(Model.Title) %></h2>
|
||||
<p>
|
||||
<strong>When:</strong>
|
||||
<%= Model.EventDate.ToShortDateString() %>
|
||||
|
||||
<strong>@</strong>
|
||||
<%= Model.EventDate.ToShortTimeString() %>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Where:</strong>
|
||||
<%= Html.Encode(Model.Address) %>,
|
||||
<%= Html.Encode(Model.Country) %>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Description:</strong>
|
||||
<%= Html.Encode(Model.Description) %>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Organizer:</strong>
|
||||
<%= Html.Encode(Model.HostedBy) %>
|
||||
(<%= Html.Encode(Model.ContactPhone) %>)
|
||||
</p>
|
||||
|
||||
<% Html.RenderPartial("RSVPStatus"); %>
|
||||
<% Html.RenderPartial("EditAndDeleteLinks"); %>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="mapDiv">
|
||||
<% Html.RenderPartial("map"); %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
@ -0,0 +1,75 @@
|
|||
<%= Html.ValidationSummary("Please correct the errors and try again.") %>
|
||||
|
||||
<% dim myForm
|
||||
myForm = 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", FormatDateTime(Model.Dinner.EventDate, vbGeneralDate)) %>
|
||||
<%= 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>
|
||||
|
||||
<% myForm.dispose() %>
|
|
@ -0,0 +1,76 @@
|
|||
<%@ 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>
|
||||
|
||||
<% } %>
|
27
aspclassiccompiler/NerdDinnerAsp/Views/Dinners/Edit.asp
Normal file
27
aspclassiccompiler/NerdDinnerAsp/Views/Dinners/Edit.asp
Normal file
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head id="Head1" runat="server">
|
||||
<title>Edit: <%=Html.Encode(Model.Dinner.Title) %></title>
|
||||
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
|
||||
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
|
||||
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
|
||||
|
||||
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="page">
|
||||
|
||||
<% Html.RenderPartial("header") %>
|
||||
|
||||
<div id="main">
|
||||
<h2>Edit Dinner</h2>
|
||||
|
||||
<% Html.RenderPartial("DinnerForm"); %>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<% if Model.IsHostedBy(Context.User.Identity.Name) then %>
|
||||
|
||||
<%= Html.ActionLink("Edit Dinner", "Edit", Html.RouteValue("id", Model.DinnerID) )%>
|
||||
|
|
||||
<%= Html.ActionLink("Delete Dinner", "Delete", Html.RouteValue("id", Model.DinnerID) )%>
|
||||
|
||||
<% end if %>
|
|
@ -0,0 +1,9 @@
|
|||
<%@ 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 })%>
|
||||
|
||||
<% } %>
|
62
aspclassiccompiler/NerdDinnerAsp/Views/Dinners/Index.asp
Normal file
62
aspclassiccompiler/NerdDinnerAsp/Views/Dinners/Index.asp
Normal file
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head id="Head1" runat="server">
|
||||
<title>Upcoming Dinners</title>
|
||||
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
|
||||
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
|
||||
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
|
||||
|
||||
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="page">
|
||||
|
||||
<% Html.RenderPartial("header") %>
|
||||
|
||||
|
||||
<div id="main">
|
||||
<h2>
|
||||
Upcoming Dinners
|
||||
</h2>
|
||||
|
||||
<ul>
|
||||
|
||||
<% dim dinner
|
||||
for each dinner in Model %>
|
||||
|
||||
<li>
|
||||
<%= Html.ActionLink(dinner.Title, "Details", Html.RouteValue("id", dinner.DinnerID)) %>
|
||||
on
|
||||
<%= Html.Encode(dinner.EventDate.ToShortDateString())%>
|
||||
@
|
||||
<%= Html.Encode(dinner.EventDate.ToShortTimeString())%>
|
||||
</li>
|
||||
|
||||
<% next %>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="pagination">
|
||||
|
||||
<% if Model.HasPreviousPage then %>
|
||||
|
||||
<%= Html.RouteLink("<<<", "UpcomingDinners", Html.RouteValue("page", Model.PageIndex-1)) %>
|
||||
|
||||
<% end if %>
|
||||
|
||||
<% if Model.HasNextPage then %>
|
||||
|
||||
<%= Html.RouteLink(">>>", "UpcomingDinners", Html.RouteValue("page", Model.PageIndex+1)) %>
|
||||
|
||||
<% end if %>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head id="Head1" runat="server">
|
||||
<title>You Don't Own This Dinner</title>
|
||||
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
|
||||
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
|
||||
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
|
||||
|
||||
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="page">
|
||||
|
||||
<% Html.RenderPartial("header") %>
|
||||
|
||||
<div id="main">
|
||||
<h2>Error Accessing Dinner</h2>
|
||||
|
||||
<p>Sorry - but only the host of a Dinner can edit or delete it.</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
30
aspclassiccompiler/NerdDinnerAsp/Views/Dinners/Map.ascx.bak
Normal file
30
aspclassiccompiler/NerdDinnerAsp/Views/Dinners/Map.ascx.bak
Normal file
|
@ -0,0 +1,30 @@
|
|||
<%@ 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>
|
28
aspclassiccompiler/NerdDinnerAsp/Views/Dinners/Map.asp
Normal file
28
aspclassiccompiler/NerdDinnerAsp/Views/Dinners/Map.asp
Normal file
|
@ -0,0 +1,28 @@
|
|||
<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>
|
29
aspclassiccompiler/NerdDinnerAsp/Views/Dinners/NotFound.asp
Normal file
29
aspclassiccompiler/NerdDinnerAsp/Views/Dinners/NotFound.asp
Normal file
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head id="Head1" runat="server">
|
||||
<title>Dinner Not Found</title>
|
||||
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
|
||||
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
|
||||
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
|
||||
|
||||
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="page">
|
||||
|
||||
<% Html.RenderPartial("header") %>
|
||||
|
||||
<div id="main">
|
||||
|
||||
<h2>Dinner Not Found</h2>
|
||||
|
||||
<p>Sorry - but the dinner you requested doesn't exist or was deleted.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
<%
|
||||
imports system
|
||||
dim ajaxoptions
|
||||
%>
|
||||
<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 then %>
|
||||
|
||||
<% if Model.IsUserRegistered(Context.User.Identity.Name) then %>
|
||||
|
||||
<p>You are registered for this event!</p>
|
||||
|
||||
<% else
|
||||
ajaxoptions = new System.Web.Mvc.Ajax.AjaxOptions()
|
||||
ajaxoptions.UpdateTargetId = "rsvpmsg"
|
||||
ajaxoptions.OnSuccess = "AnimateRSVPMessage"
|
||||
%>
|
||||
|
||||
<%= Ajax.ActionLink( "RSVP for this event", "Register", "RSVP", Html.RouteValue("id", Model.DinnerID), ajaxoptions) %>
|
||||
<% end if %>
|
||||
|
||||
<% else %>
|
||||
|
||||
<a href="/Account/Logon">Logon</a> to RSVP for this event.
|
||||
|
||||
<% end if %>
|
||||
|
||||
</div>
|
|
@ -0,0 +1,36 @@
|
|||
<%@ 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>
|
35
aspclassiccompiler/NerdDinnerAsp/Views/Home/About.asp
Normal file
35
aspclassiccompiler/NerdDinnerAsp/Views/Home/About.asp
Normal file
|
@ -0,0 +1,35 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head id="Head1" runat="server">
|
||||
<title>About</title>
|
||||
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
|
||||
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
|
||||
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
|
||||
|
||||
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="page">
|
||||
|
||||
<% Html.RenderPartial("header") %>
|
||||
|
||||
<div id="main">
|
||||
<h2>What is NerdDinner.com?</h2>
|
||||
<p>
|
||||
<p><img src="/Content/nerd.jpg" align="left" height="200" style="padding-right:20px" />Are you a huge nerd? Perhaps a geek? No? Maybe a dork, dweeb or wonk.
|
||||
Quite possibly you're just a normal person. Either way, you're a social being. You need to get out for a bite
|
||||
to eat occasionally, preferably with folks that are like you.</p>
|
||||
<p>Enter <a href="http://www.nerddinner.com">NerdDinner.com</a>, for all your event planning needs. We're focused on one thing. Organizing the world's
|
||||
nerds and helping them eat in packs. </p>
|
||||
<p>We're free and fun. <a href="/">Find a dinner near you</a>, or <a href="/dinners/create">host a dinner</a>. Be social.</p>
|
||||
<p>We also have blog badges and widgets that you can install on your blog or website so your readers can get
|
||||
involved in the Nerd Dinner movement. Well, it's not really a movement. Mostly just geeks in a food court, but still.</p>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
60
aspclassiccompiler/NerdDinnerAsp/Views/Home/Index.asp
Normal file
60
aspclassiccompiler/NerdDinnerAsp/Views/Home/Index.asp
Normal file
|
@ -0,0 +1,60 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head id="Head1" runat="server">
|
||||
<title>Find a Dinner</title>
|
||||
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
|
||||
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
|
||||
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
|
||||
|
||||
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="page">
|
||||
|
||||
<% Html.RenderPartial("header") %>
|
||||
|
||||
<div id="main">
|
||||
<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>
|
||||
|
||||
<h2>Find a Dinner</h2>
|
||||
|
||||
<div id="mapDivLeft">
|
||||
|
||||
<div id="searchBox">
|
||||
Enter your location: <%= Html.TextBox("Location") %> or <%= Html.ActionLink("View All Upcoming Dinners", "Index", "Dinners") %>.
|
||||
<input id="search" type="submit" value="Search" />
|
||||
</div>
|
||||
|
||||
<div id="theMap">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="mapDivRight">
|
||||
<div id="dinnerList"></div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function() {
|
||||
LoadMap();
|
||||
});
|
||||
|
||||
$("#search").click(function(evt) {
|
||||
var where = jQuery.trim($("#Location").val());
|
||||
if (where.length < 1)
|
||||
return;
|
||||
|
||||
FindDinnersGivenLocation(where);
|
||||
});
|
||||
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
11
aspclassiccompiler/NerdDinnerAsp/Views/Shared/Error.aspx
Normal file
11
aspclassiccompiler/NerdDinnerAsp/Views/Shared/Error.aspx
Normal file
|
@ -0,0 +1,11 @@
|
|||
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<System.Web.Mvc.HandleErrorInfo>" %>
|
||||
|
||||
<asp:Content ID="Title" ContentPlaceHolderID="TitleContent" runat="server">
|
||||
Error
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="errorContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<h2>
|
||||
Sorry, an error occurred while processing your request.
|
||||
</h2>
|
||||
</asp:Content>
|
|
@ -0,0 +1,14 @@
|
|||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
||||
<%
|
||||
if (Request.IsAuthenticated) {
|
||||
%>
|
||||
Welcome <b><%= Html.Encode(Page.User.Identity.Name) %></b>!
|
||||
[ <%= Html.ActionLink("Log Off", "LogOff", "Account") %> ]
|
||||
<%
|
||||
}
|
||||
else {
|
||||
%>
|
||||
[ <%= Html.ActionLink("Log On", "LogOn", "Account") %> ]
|
||||
<%
|
||||
}
|
||||
%>
|
43
aspclassiccompiler/NerdDinnerAsp/Views/Shared/Site.Master
Normal file
43
aspclassiccompiler/NerdDinnerAsp/Views/Shared/Site.Master
Normal file
|
@ -0,0 +1,43 @@
|
|||
<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head id="Head1" runat="server">
|
||||
<title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>
|
||||
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
|
||||
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
|
||||
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
|
||||
|
||||
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="page">
|
||||
|
||||
<div id="header">
|
||||
<div id="title">
|
||||
<h1>NerdDinner</h1>
|
||||
</div>
|
||||
|
||||
<div id="logindisplay">
|
||||
<% Html.RenderPartial("LoginStatus"); %>
|
||||
</div>
|
||||
|
||||
<div id="menucontainer">
|
||||
<ul id="menu">
|
||||
<li><%= Html.ActionLink("Find Dinner", "Index", "Home")%></li>
|
||||
<li><%= Html.ActionLink("Host Dinner", "Create", "Dinners")%></li>
|
||||
<li><%= Html.ActionLink("About", "About", "Home")%></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="main">
|
||||
<asp:ContentPlaceHolder ID="MainContent" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
17
aspclassiccompiler/NerdDinnerAsp/Views/Shared/header.asp
Normal file
17
aspclassiccompiler/NerdDinnerAsp/Views/Shared/header.asp
Normal file
|
@ -0,0 +1,17 @@
|
|||
<div id="header">
|
||||
<div id="title">
|
||||
<h1>NerdDinner</h1>
|
||||
</div>
|
||||
|
||||
<div id="logindisplay">
|
||||
<% Html.RenderPartial("LoginStatus") %>
|
||||
</div>
|
||||
|
||||
<div id="menucontainer">
|
||||
<ul id="menu">
|
||||
<li><%= Html.ActionLink("Find Dinner", "Index", "Home")%></li>
|
||||
<li><%= Html.ActionLink("Host Dinner", "Create", "Dinners")%></li>
|
||||
<li><%= Html.ActionLink("About", "About", "Home")%></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
25
aspclassiccompiler/NerdDinnerAsp/Views/Shared/template.asp
Normal file
25
aspclassiccompiler/NerdDinnerAsp/Views/Shared/template.asp
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head id="Head1" runat="server">
|
||||
<title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>
|
||||
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
|
||||
<meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk" name="keywords" />
|
||||
<meta name="description" content="Host and promote your own Nerd Dinner free!" />
|
||||
|
||||
<script src="/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="page">
|
||||
|
||||
<% Html.RenderPartial("header") %>
|
||||
|
||||
<div id="main">
|
||||
<asp:ContentPlaceHolder ID="MainContent" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
34
aspclassiccompiler/NerdDinnerAsp/Views/Web.config
Normal file
34
aspclassiccompiler/NerdDinnerAsp/Views/Web.config
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?xml version="1.0"?>
|
||||
<configuration>
|
||||
<system.web>
|
||||
<httpHandlers>
|
||||
<add path="*" verb="*"
|
||||
type="System.Web.HttpNotFoundHandler"/>
|
||||
</httpHandlers>
|
||||
|
||||
<!--
|
||||
Enabling request validation in view pages would cause validation to occur
|
||||
after the input has already been processed by the controller. By default
|
||||
MVC performs request validation before a controller processes the input.
|
||||
To change this behavior apply the ValidateInputAttribute to a
|
||||
controller or action.
|
||||
-->
|
||||
<pages
|
||||
validateRequest="false"
|
||||
pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
|
||||
pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
|
||||
userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||
<controls>
|
||||
<add assembly="System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.Mvc" tagPrefix="mvc" />
|
||||
</controls>
|
||||
</pages>
|
||||
</system.web>
|
||||
|
||||
<system.webServer>
|
||||
<validation validateIntegratedModeConfiguration="false"/>
|
||||
<handlers>
|
||||
<remove name="BlockViewHandler"/>
|
||||
<add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler"/>
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
</configuration>
|
156
aspclassiccompiler/NerdDinnerAsp/Web.config
Normal file
156
aspclassiccompiler/NerdDinnerAsp/Web.config
Normal file
|
@ -0,0 +1,156 @@
|
|||
<?xml version="1.0"?>
|
||||
<!--
|
||||
Note: As an alternative to hand editing this file you can use the
|
||||
web admin tool to configure settings for your application. Use
|
||||
the Website->Asp.Net Configuration option in Visual Studio.
|
||||
A full list of settings and comments can be found in
|
||||
machine.config.comments usually located in
|
||||
\Windows\Microsoft.Net\Framework\v2.x\Config
|
||||
-->
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
|
||||
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
|
||||
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
|
||||
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
|
||||
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
|
||||
</sectionGroup>
|
||||
</sectionGroup>
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<connectionStrings configSource="ConnectionStrings.config" />
|
||||
<system.web>
|
||||
<!--
|
||||
Set compilation debug="true" to insert debugging
|
||||
symbols into the compiled page. Because this
|
||||
affects performance, set this value to true only
|
||||
during development.
|
||||
-->
|
||||
<compilation debug="true">
|
||||
<assemblies>
|
||||
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add assembly="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add assembly="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add assembly="System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
<add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
</assemblies>
|
||||
</compilation>
|
||||
<!--
|
||||
The <authentication> section enables configuration
|
||||
of the security authentication mode used by
|
||||
ASP.NET to identify an incoming user.
|
||||
-->
|
||||
<authentication mode="Forms">
|
||||
<forms loginUrl="~/Account/Logon" />
|
||||
</authentication>
|
||||
<membership>
|
||||
<providers>
|
||||
<clear />
|
||||
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" applicationName="/" />
|
||||
</providers>
|
||||
</membership>
|
||||
<profile>
|
||||
<providers>
|
||||
<clear />
|
||||
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ApplicationServices" applicationName="/" />
|
||||
</providers>
|
||||
</profile>
|
||||
<roleManager enabled="false">
|
||||
<providers>
|
||||
<clear />
|
||||
<add connectionStringName="ApplicationServices" applicationName="/" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add applicationName="/" name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
</providers>
|
||||
</roleManager>
|
||||
<customErrors mode="Off" />
|
||||
<!--
|
||||
The <customErrors> section enables configuration
|
||||
of what to do if/when an unhandled error occurs
|
||||
during the execution of a request. Specifically,
|
||||
it enables developers to configure html error pages
|
||||
to be displayed in place of a error stack trace.
|
||||
|
||||
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
|
||||
<error statusCode="403" redirect="NoAccess.htm" />
|
||||
<error statusCode="404" redirect="FileNotFound.htm" />
|
||||
</customErrors>
|
||||
-->
|
||||
<pages>
|
||||
<controls>
|
||||
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
</controls>
|
||||
<namespaces>
|
||||
<add namespace="System.Web.Mvc" />
|
||||
<add namespace="System.Web.Mvc.Ajax" />
|
||||
<add namespace="System.Web.Mvc.Html" />
|
||||
<add namespace="System.Web.Routing" />
|
||||
<add namespace="System.Linq" />
|
||||
<add namespace="System.Collections.Generic" />
|
||||
</namespaces>
|
||||
</pages>
|
||||
<httpHandlers>
|
||||
<remove verb="*" path="*.asmx" />
|
||||
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
|
||||
<add verb="*" path="*.mvc" validate="false" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
</httpHandlers>
|
||||
<httpModules>
|
||||
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
</httpModules>
|
||||
</system.web>
|
||||
<system.codedom>
|
||||
<compilers>
|
||||
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<providerOption name="CompilerVersion" value="v3.5" />
|
||||
<providerOption name="WarnAsError" value="false" />
|
||||
</compiler>
|
||||
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<providerOption name="CompilerVersion" value="v3.5" />
|
||||
<providerOption name="OptionInfer" value="true" />
|
||||
<providerOption name="WarnAsError" value="false" />
|
||||
</compiler>
|
||||
</compilers>
|
||||
</system.codedom>
|
||||
<!--
|
||||
The system.webServer section is required for running ASP.NET AJAX under Internet
|
||||
Information Services 7.0. It is not necessary for previous version of IIS.
|
||||
-->
|
||||
<system.webServer>
|
||||
<validation validateIntegratedModeConfiguration="false" />
|
||||
<modules runAllManagedModulesForAllRequests="true">
|
||||
<remove name="ScriptModule" />
|
||||
<remove name="UrlRoutingModule" />
|
||||
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
</modules>
|
||||
<handlers>
|
||||
<remove name="WebServiceHandlerFactory-Integrated" />
|
||||
<remove name="ScriptHandlerFactory" />
|
||||
<remove name="ScriptHandlerFactoryAppServices" />
|
||||
<remove name="ScriptResource" />
|
||||
<remove name="MvcHttpHandler" />
|
||||
<remove name="UrlRoutingHandler" />
|
||||
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add name="MvcHttpHandler" preCondition="integratedMode" verb="*" path="*.mvc" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<appSettings>
|
||||
<add key="microsoft.visualstudio.teamsystems.backupinfo" value="6;web.config.backup" />
|
||||
</appSettings>
|
||||
</configuration>
|
BIN
aspclassiccompiler/NerdDinnerAsp/bin/Dlrsoft.Asp.dll
Normal file
BIN
aspclassiccompiler/NerdDinnerAsp/bin/Dlrsoft.Asp.dll
Normal file
Binary file not shown.
BIN
aspclassiccompiler/NerdDinnerAsp/bin/Dlrsoft.Asp.pdb
Normal file
BIN
aspclassiccompiler/NerdDinnerAsp/bin/Dlrsoft.Asp.pdb
Normal file
Binary file not shown.
BIN
aspclassiccompiler/NerdDinnerAsp/bin/Dlrsoft.VBParser.dll
Normal file
BIN
aspclassiccompiler/NerdDinnerAsp/bin/Dlrsoft.VBParser.dll
Normal file
Binary file not shown.
BIN
aspclassiccompiler/NerdDinnerAsp/bin/Dlrsoft.VBParser.pdb
Normal file
BIN
aspclassiccompiler/NerdDinnerAsp/bin/Dlrsoft.VBParser.pdb
Normal file
Binary file not shown.
4007
aspclassiccompiler/NerdDinnerAsp/bin/Dlrsoft.VBParser.xml
Normal file
4007
aspclassiccompiler/NerdDinnerAsp/bin/Dlrsoft.VBParser.xml
Normal file
File diff suppressed because it is too large
Load diff
BIN
aspclassiccompiler/NerdDinnerAsp/bin/Dlrsoft.VBScript.dll
Normal file
BIN
aspclassiccompiler/NerdDinnerAsp/bin/Dlrsoft.VBScript.dll
Normal file
Binary file not shown.
BIN
aspclassiccompiler/NerdDinnerAsp/bin/Dlrsoft.VBScript.pdb
Normal file
BIN
aspclassiccompiler/NerdDinnerAsp/bin/Dlrsoft.VBScript.pdb
Normal file
Binary file not shown.
BIN
aspclassiccompiler/NerdDinnerAsp/bin/Interop.ASPTypeLibrary.dll
Normal file
BIN
aspclassiccompiler/NerdDinnerAsp/bin/Interop.ASPTypeLibrary.dll
Normal file
Binary file not shown.
BIN
aspclassiccompiler/NerdDinnerAsp/bin/Microsoft.Dynamic.dll
Normal file
BIN
aspclassiccompiler/NerdDinnerAsp/bin/Microsoft.Dynamic.dll
Normal file
Binary file not shown.
BIN
aspclassiccompiler/NerdDinnerAsp/bin/Microsoft.Dynamic.pdb
Normal file
BIN
aspclassiccompiler/NerdDinnerAsp/bin/Microsoft.Dynamic.pdb
Normal file
Binary file not shown.
5913
aspclassiccompiler/NerdDinnerAsp/bin/Microsoft.Dynamic.xml
Normal file
5913
aspclassiccompiler/NerdDinnerAsp/bin/Microsoft.Dynamic.xml
Normal file
File diff suppressed because it is too large
Load diff
Binary file not shown.
Binary file not shown.
10821
aspclassiccompiler/NerdDinnerAsp/bin/Microsoft.Scripting.Core.xml
Normal file
10821
aspclassiccompiler/NerdDinnerAsp/bin/Microsoft.Scripting.Core.xml
Normal file
File diff suppressed because it is too large
Load diff
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,196 @@
|
|||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>Microsoft.Scripting.Debugging</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:Microsoft.Scripting.Debugging.ErrorStrings">
|
||||
<summary>
|
||||
Strongly-typed and parameterized string factory.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:Microsoft.Scripting.Debugging.ScopedRuntimeVariables">
|
||||
<summary>
|
||||
Implements IRuntimeVariables in a way that preserves scoping within the lambda.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:Microsoft.Scripting.Debugging.DebugSourceSpan">
|
||||
<summary>
|
||||
Combines source file and span. Also provides Contains and Intersects functionality.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:Microsoft.Scripting.Debugging.VariableInfo">
|
||||
<summary>
|
||||
Used to provide information about locals/parameters at debug time.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Microsoft.Scripting.Debugging.VariableInfo.VariableType">
|
||||
<summary>
|
||||
Type
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Microsoft.Scripting.Debugging.VariableInfo.Name">
|
||||
<summary>
|
||||
Name
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Microsoft.Scripting.Debugging.VariableInfo.IsParameter">
|
||||
<summary>
|
||||
Parameter
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:Microsoft.Scripting.Debugging.DebugGenerator`1">
|
||||
<summary>
|
||||
Used to wrap a lambda that was already a generator prior to transform.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:Microsoft.Scripting.Debugging.CompilerServices.DebugLambdaInfo">
|
||||
<summary>
|
||||
Used by compilers to provide additional debug information about LambdaExpression to DebugContext
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:Microsoft.Scripting.Debugging.CompilerServices.DebugContext">
|
||||
<summary>
|
||||
Provides services to compilers for instrumenting code with tracebacks.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:Microsoft.Scripting.Debugging.CompilerServices.DebugContext.CreateInstance">
|
||||
<summary>
|
||||
Creates a new instance of DebugContext
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:Microsoft.Scripting.Debugging.CompilerServices.DebugContext.TransformLambda(Microsoft.Scripting.Ast.LambdaExpression,Microsoft.Scripting.Debugging.CompilerServices.DebugLambdaInfo)">
|
||||
<summary>
|
||||
Transforms a LambdaExpression to a debuggable LambdaExpression
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:Microsoft.Scripting.Debugging.CompilerServices.DebugContext.TransformLambda(Microsoft.Scripting.Ast.LambdaExpression)">
|
||||
<summary>
|
||||
Transforms a LambdaExpression to a debuggable LambdaExpression
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:Microsoft.Scripting.Debugging.CompilerServices.DebugContext.ResetSourceFile(System.String)">
|
||||
<summary>
|
||||
Resets a state associated with a source file that's maintained in the DebugContext
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Microsoft.Scripting.Debugging.CompilerServices.DebugContext.Threads">
|
||||
<summary>
|
||||
Threads
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Microsoft.Scripting.Debugging.CompilerServices.DebugContext.DebugCallback">
|
||||
<summary>
|
||||
Hook
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:Microsoft.Scripting.Debugging.IDebugThreadFactory">
|
||||
<summary>
|
||||
IDebugThreadFactory is used to abstract how frames and local variables are maintained at run/debug time.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:Microsoft.Scripting.Debugging.DebugInfoRewriter">
|
||||
<summary>
|
||||
Used to rewrite expressions containing DebugInfoExpressions.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:Microsoft.Scripting.Debugging.FunctionInfo.GetTraceLocations">
|
||||
<summary>
|
||||
GetTraceLocations
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="P:Microsoft.Scripting.Debugging.FunctionInfo.SequencePoints">
|
||||
<summary>
|
||||
SequencePoints
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Microsoft.Scripting.Debugging.FunctionInfo.Name">
|
||||
<summary>
|
||||
Name
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Microsoft.Scripting.Debugging.FunctionInfo.CustomPayload">
|
||||
<summary>
|
||||
CustomPayload
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:Microsoft.Scripting.Debugging.LambdaWalker">
|
||||
<summary>
|
||||
Used to extract locals information from expressions.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:Microsoft.Scripting.Debugging.CompilerServices.IDebugCompilerSupport">
|
||||
<summary>
|
||||
Implemented by compilers to allow the traceback engine to get additional information.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:Microsoft.Scripting.Debugging.DefaultDebugThread">
|
||||
<summary>
|
||||
Default implementation of BaseDebugThread, which uses DLR's RuntimeVariablesExpression for lifting locals.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:Microsoft.Scripting.Debugging.IDebugCallback.OnDebugEvent(Microsoft.Scripting.Debugging.TraceEventKind,Microsoft.Scripting.Debugging.DebugThread,Microsoft.Scripting.Debugging.FunctionInfo,System.Int32,System.Int32,System.Object)">
|
||||
<summary>
|
||||
Callback that is fired by the traceback engine
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:Microsoft.Scripting.Debugging.DefaultDebugThreadFactory">
|
||||
<summary>
|
||||
Default implementation of IDebugThreadFactory, which uses DLR's RuntimeVariablesExpression for lifting locals.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:Microsoft.Scripting.Debugging.DebugRuntimeVariables">
|
||||
<summary>
|
||||
Implementation of IDebugRuntimeVariables, which wraps IRuntimeVariables + FunctionInfo/DebugMarker
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:Microsoft.Scripting.Debugging.IDebugRuntimeVariables">
|
||||
<summary>
|
||||
IDebugRuntimeVariables is used to wrap IRuntimeVariables and add properties for retrieving
|
||||
FunctionInfo and DebugMarker from debuggable labmdas.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:Microsoft.Scripting.Debugging.DebuggableLambdaBuilder">
|
||||
<summary>
|
||||
DebuggableLambdaBuilder is used to transform a DLR expression tree into a debuggable lambda expression.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:Microsoft.Scripting.Debugging.DebugFrame.ReplaceLiftedLocals(System.Runtime.CompilerServices.IRuntimeVariables)">
|
||||
<summary>
|
||||
// This method is called from the generator to update the frame with generator's locals
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:Microsoft.Scripting.Debugging.DebugFrame.RemapToGenerator(System.Int32)">
|
||||
<summary>
|
||||
Remaps the frame's state to use the generator for execution.
|
||||
</summary>
|
||||
<param name="version">Int32.MaxValue to map to latest version</param>
|
||||
</member>
|
||||
<member name="P:Microsoft.Scripting.Debugging.DebugFrame.Thread">
|
||||
<summary>
|
||||
Thread
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Microsoft.Scripting.Debugging.DebugFrame.StackDepth">
|
||||
<summary>
|
||||
FrameOrder
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Microsoft.Scripting.Debugging.DebugFrame.Variables">
|
||||
<summary>
|
||||
Variables
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Microsoft.Scripting.Debugging.DebugFrame.CurrentSequencePointIndex">
|
||||
<summary>
|
||||
CurrentSequencePointIndex
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:Microsoft.Scripting.Debugging.TracePipeline">
|
||||
<summary>
|
||||
TraceSession
|
||||
</summary>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
Binary file not shown.
Binary file not shown.
BIN
aspclassiccompiler/NerdDinnerAsp/bin/Microsoft.Scripting.dll
Normal file
BIN
aspclassiccompiler/NerdDinnerAsp/bin/Microsoft.Scripting.dll
Normal file
Binary file not shown.
BIN
aspclassiccompiler/NerdDinnerAsp/bin/Microsoft.Scripting.pdb
Normal file
BIN
aspclassiccompiler/NerdDinnerAsp/bin/Microsoft.Scripting.pdb
Normal file
Binary file not shown.
4146
aspclassiccompiler/NerdDinnerAsp/bin/Microsoft.Scripting.xml
Normal file
4146
aspclassiccompiler/NerdDinnerAsp/bin/Microsoft.Scripting.xml
Normal file
File diff suppressed because it is too large
Load diff
BIN
aspclassiccompiler/NerdDinnerAsp/bin/NerdDinner.dll
Normal file
BIN
aspclassiccompiler/NerdDinnerAsp/bin/NerdDinner.dll
Normal file
Binary file not shown.
BIN
aspclassiccompiler/NerdDinnerAsp/bin/NerdDinner.pdb
Normal file
BIN
aspclassiccompiler/NerdDinnerAsp/bin/NerdDinner.pdb
Normal file
Binary file not shown.
BIN
aspclassiccompiler/NerdDinnerAsp/bin/System.Web.Mvc.dll
Normal file
BIN
aspclassiccompiler/NerdDinnerAsp/bin/System.Web.Mvc.dll
Normal file
Binary file not shown.
8178
aspclassiccompiler/NerdDinnerAsp/bin/System.Web.Mvc.xml
Normal file
8178
aspclassiccompiler/NerdDinnerAsp/bin/System.Web.Mvc.xml
Normal file
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,7 @@
|
|||
C:\downloads\dev\aspnetmvc\NerdDinner_1.0\NerdDinner 1.0\NerdDinner\bin\NerdDinner.dll
|
||||
C:\downloads\dev\aspnetmvc\NerdDinner_1.0\NerdDinner 1.0\NerdDinner\bin\NerdDinner.pdb
|
||||
C:\downloads\dev\aspnetmvc\NerdDinner_1.0\NerdDinner 1.0\NerdDinner\bin\System.Web.Mvc.dll
|
||||
C:\downloads\dev\aspnetmvc\NerdDinner_1.0\NerdDinner 1.0\NerdDinner\bin\System.Web.Mvc.xml
|
||||
C:\downloads\dev\aspnetmvc\NerdDinner_1.0\NerdDinner 1.0\NerdDinner\obj\Debug\ResolveAssemblyReference.cache
|
||||
C:\downloads\dev\aspnetmvc\NerdDinner_1.0\NerdDinner 1.0\NerdDinner\obj\Debug\NerdDinner.dll
|
||||
C:\downloads\dev\aspnetmvc\NerdDinner_1.0\NerdDinner 1.0\NerdDinner\obj\Debug\NerdDinner.pdb
|
BIN
aspclassiccompiler/NerdDinnerAsp/obj/Debug/NerdDinner.dll
Normal file
BIN
aspclassiccompiler/NerdDinnerAsp/obj/Debug/NerdDinner.dll
Normal file
Binary file not shown.
BIN
aspclassiccompiler/NerdDinnerAsp/obj/Debug/NerdDinner.pdb
Normal file
BIN
aspclassiccompiler/NerdDinnerAsp/obj/Debug/NerdDinner.pdb
Normal file
Binary file not shown.
|
@ -0,0 +1,52 @@
|
|||
E:\vbparser\VBParser80\NerdDinnerAsp\bin\NerdDinner.dll
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\bin\NerdDinner.pdb
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\bin\Dlrsoft.Asp.dll
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\bin\System.Web.Mvc.dll
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\bin\Microsoft.Scripting.ExtensionAttribute.dll
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\bin\Microsoft.Dynamic.dll
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\bin\Microsoft.Scripting.Core.dll
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\bin\Dlrsoft.VBParser.dll
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\bin\Dlrsoft.VBScript.dll
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\bin\Interop.ASPTypeLibrary.dll
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\bin\Microsoft.Scripting.dll
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\bin\Microsoft.Scripting.ExtensionAttribute.pdb
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\bin\Microsoft.Dynamic.pdb
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\bin\Microsoft.Dynamic.xml
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\bin\System.Web.Mvc.xml
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\bin\Microsoft.Scripting.Core.pdb
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\bin\Microsoft.Scripting.Core.xml
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\bin\Dlrsoft.VBParser.pdb
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\bin\Dlrsoft.VBParser.xml
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\bin\Dlrsoft.VBScript.pdb
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\bin\Dlrsoft.Asp.pdb
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\bin\Microsoft.Scripting.pdb
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\bin\Microsoft.Scripting.xml
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\obj\Debug\ResolveAssemblyReference.cache
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\obj\Debug\NerdDinner.dll
|
||||
E:\vbparser\VBParser80\NerdDinnerAsp\obj\Debug\NerdDinner.pdb
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\bin\NerdDinner.dll
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\bin\NerdDinner.pdb
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\bin\Dlrsoft.Asp.dll
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\bin\System.Web.Mvc.dll
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\bin\Microsoft.Scripting.ExtensionAttribute.dll
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\bin\Microsoft.Dynamic.dll
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\bin\Microsoft.Scripting.Core.dll
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\bin\Dlrsoft.VBParser.dll
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\bin\Dlrsoft.VBScript.dll
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\bin\Interop.ASPTypeLibrary.dll
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\bin\Microsoft.Scripting.dll
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\bin\Microsoft.Scripting.ExtensionAttribute.pdb
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\bin\Microsoft.Dynamic.pdb
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\bin\Microsoft.Dynamic.xml
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\bin\System.Web.Mvc.xml
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\bin\Microsoft.Scripting.Core.pdb
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\bin\Microsoft.Scripting.Core.xml
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\bin\Dlrsoft.VBParser.pdb
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\bin\Dlrsoft.VBParser.xml
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\bin\Dlrsoft.VBScript.pdb
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\bin\Dlrsoft.Asp.pdb
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\bin\Microsoft.Scripting.pdb
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\bin\Microsoft.Scripting.xml
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\obj\Debug\ResolveAssemblyReference.cache
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\obj\Debug\NerdDinner.dll
|
||||
G:\vbparser\VBParser80\NerdDinnerAsp\obj\Debug\NerdDinner.pdb
|
Binary file not shown.
Binary file not shown.
BIN
aspclassiccompiler/NerdDinnerAsp/obj/Release/NerdDinner.dll
Normal file
BIN
aspclassiccompiler/NerdDinnerAsp/obj/Release/NerdDinner.dll
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue