OK prima release...

This commit is contained in:
Samuele E. Locatelli
2018-12-01 10:47:47 +01:00
parent a1d6c7563f
commit 9c2dbae149
5 changed files with 14 additions and 5 deletions
+6
View File
@@ -24,6 +24,12 @@ namespace QR_GEN.Controllers
/// <returns></returns>
public ActionResult QR(string id)
{
// se vuoto stea,ware...
if (id == null || id == "")
{
id = "www.steamware.net";
}
// creo!
QrCodeEncodingOptions options = new QrCodeEncodingOptions
{
DisableECI = true,
+3 -3
View File
@@ -18,15 +18,15 @@
<div class="col-md-6">
<form method="post">
<fieldset>
<h2>Text 2 code</h2>
<h2>Text</h2>
<p>
@Html.TextBox("QrTextBox", @QrTextBox, new { @class = "form-control" })
<input type="submit" value="Submit" class="submit" />
<input type="submit" value="Submit" class="submit btn btn-block btn-success" />
</p>
</fieldset>
</form>
</div>
<div class="col-md-6">
<img src="@Url.Action("QR", new { id = @QrTextBox })" alt="QRImage" class="img-fluid mx-auto d-block" />
<img src="@Url.Action("QR", new { id = System.Net.WebUtility.UrlEncode(@QrTextBox) })" alt="QRImage" class="img-fluid mx-auto d-block" />
</div>
</div>
+4 -1
View File
@@ -28,7 +28,10 @@
@RenderBody()
<hr />
<footer>
<p class="text-right">&copy; @DateTime.Now.Year - www.steamware.net</p>
<div class="row">
<div class="col text-left">www.steamware.net</div>
<div class="col text-right">v 0.9.1811.12 &copy; @DateTime.Now.Year</div>
</div>
</footer>
</div>
+1 -1
View File
@@ -54,7 +54,7 @@
</assemblyBinding>
</runtime>
<system.webServer>
<modules>
<modules runAllManagedModulesForAllRequests="true" >
<remove name="TelemetryCorrelationHttpModule" />
<add name="TelemetryCorrelationHttpModule" type="Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule, Microsoft.AspNet.TelemetryCorrelation" preCondition="managedHandler" />
</modules>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB