This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Web; | |
| using CollectBruceLee; | |
| using CollectBruceLee.Data; | |
| using RichmondDay.Helpers; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Web.Routing; | |
| using System.Web.Mvc.Html; | |
| namespace System.Web.Mvc { | |
| public static class HtmlHelpers { | |
| static string BaseUrl { get { return HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority) + VirtualPathUtility.ToAbsolute("~/"); } } | |
| static string publicDirectory = VirtualPathUtility.ToAbsolute("~/") + "public"; | |
| static string scriptDirectory = "javascript"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Linq; | |
| using System.Web; | |
| using System.Web.UI.WebControls; | |
| using MiniRideAndDrive.Web.Data; | |
| public static partial class Helpers { | |
| public static string BaseUrl { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Net.Mail; | |
| using System.Text.RegularExpressions; | |
| namespace MiniRideAndDrive.Web { | |
| public static class EmailHelper { | |
| public static string EmailValidationExpression { | |
| get { | |
| return @"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}" + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bin | |
| obj | |
| *.suo | |
| *.user | |
| *.*~ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* resets the heading sizes */ | |
| h1 { font-size: 2em;} | |
| h2 { font-size: 1.5em;} | |
| h3 { font-size: 1.17em;} | |
| h5 { font-size: .83em;} | |
| h6 { font-size: .75em;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UPDATE Site SET ConnectionString = REPLACE(ConnectionString, 'SDFMAXVCUS0667', 'NAMEOFYOURLOCALSQLSERVER') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT ci.ProductID, COUNT(ci.ProductID) AS Total | |
| FROM CartItem AS ci INNER JOIN | |
| SportPick AS sp ON sp.SportPickID = ci.ProductID | |
| GROUP BY ci.ProductID, sp.Winner | |
| ORDER BY Total |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| prepends the client identifier to all occurences of a theme directory call | |
| useful for when moving data from local to production | |
| just update @ClientIdentifier to match the clients theme directory name. | |
| WARNING: YOU HAVE TO MANUALLY SET THE LENGTH IN SUBSTRING(HtmlText, 0, 6) = @ClientIdentifier TO MATCH THE LENGTH OF THE @ClientIdentifier. | |
| If you need to debug, just use this statement | |
| SELECT CAST(REPLACE(CAST(HtmlText as nvarchar(max)), '/admin/theme/','/'+ @ClientIdentifier +'/admin/theme/') as ntext) FROM Html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| prepends the client identifier to all occurences of a theme directory call | |
| useful for when moving data from production to local dev | |
| just update @ClientIdentifier to match the clients theme directory name. | |
| WARNING: only run this locally, handwrite something if your going from local to prod | |
| If you need to debug, just use this statement | |
| SELECT CAST(REPLACE(CAST(HtmlText as nvarchar(max)), '/admin/theme/','/'+ @ClientIdentifier +'/admin/theme/') as ntext) FROM Html |