This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> | |
<Product Id="5fffca1a-e20b-4b76-924a-a915f3124a11" Name="WixTest" Language="1033" Version="1.0.0.0" Manufacturer="WixTest" UpgradeCode="8e607b01-0d14-4c3e-b135-53631a6b44ff"> | |
<Package InstallerVersion="200" Compressed="yes" /> | |
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" /> | |
<!-- Define Installation Components--> | |
<Directory Id="TARGETDIR" Name="SourceDir"> | |
<Directory Id="StartMenuFolder"/> |
This file contains 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
<!-- Define Instalation Components--> | |
<Directory Id="TARGETDIR" Name="SourceDir"> | |
<Directory Id="StartMenuFolder"/> | |
<Directory Id="ProgramFilesFolder"> | |
<Directory Id="INSTALLLOCATION" Name="WixTest"> | |
<Component Id="ProductComponent" Guid="b3915d8f-0301-40a0-8d09-66076e0ac43e"> | |
<File Id="testFile" Name="testFile.txt" Source="c:\TestFile.txt"> | |
<Shortcut Id="testShortcut" Name="testFileShortCut" Directory="StartMenuFolder" Advertise="yes" /> | |
</File> |
This file contains 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
[AcceptVerbs(HttpVerbs.Post)] | |
public ActionResult ProcessRequest() | |
{ | |
LinkBack linkBack = new LinkBack { ID = Guid.NewGuid(), CreationDate = DateTime.Now }; | |
//Retreave routing information | |
string controler = Url.RequestContext.RouteData.Values["trackBackController"].ToString(); | |
string action = Url.RequestContext.RouteData.Values["trackBackAction"].ToString(); | |
string id = Url.RequestContext.RouteData.Values["trackBackID"].ToString(); |
This file contains 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
routes.IgnoreRoute("{resource}.aspx/{*pathInfo}"); |
This file contains 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
Url.RequestContext.RouteData.Values["id"].ToString() |
This file contains 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
public static void RegisterRoutes(RouteCollection routes) | |
{ | |
routes.MapRoute | |
( | |
"Default", // Route name | |
"{controller}/{action}/{id}", // URL with parameters | |
new { controller = "Home", action = "Index", id = "" } // Parameter defaults | |
); | |
} |
This file contains 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
protected void Application_BeginRequest(Object sender, EventArgs e) | |
{ | |
if (Request.Url.Authority.StartsWith("www")) | |
return; | |
string url = (Request.Url.Scheme | |
+ "://www." | |
+ HttpContext.Current.Request.Url.Authority | |
+ HttpContext.Current.Request.Url.AbsolutePath | |
); |
This file contains 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
function reformatXML() | |
editor:BeginUndoAction() | |
--Format | |
for m in editor:match("\r") do --remove carriage returns | |
m:replace("") | |
end | |
for m in editor:match("\t") do --remove tabs | |
m:replace("") | |
end |
NewerOlder