OK prima release...
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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>
|
||||
@@ -28,7 +28,10 @@
|
||||
@RenderBody()
|
||||
<hr />
|
||||
<footer>
|
||||
<p class="text-right">© @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 © @DateTime.Now.Year</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
|
||||
+1
-1
@@ -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 |
Reference in New Issue
Block a user