diff --git a/QR-GEN/Controllers/HomeController.cs b/QR-GEN/Controllers/HomeController.cs index 43514dd..0959a7e 100644 --- a/QR-GEN/Controllers/HomeController.cs +++ b/QR-GEN/Controllers/HomeController.cs @@ -24,6 +24,12 @@ namespace QR_GEN.Controllers /// public ActionResult QR(string id) { + // se vuoto stea,ware... + if (id == null || id == "") + { + id = "www.steamware.net"; + } + // creo! QrCodeEncodingOptions options = new QrCodeEncodingOptions { DisableECI = true, diff --git a/QR-GEN/Views/Home/Index.cshtml b/QR-GEN/Views/Home/Index.cshtml index 4c967c0..2c3c03c 100644 --- a/QR-GEN/Views/Home/Index.cshtml +++ b/QR-GEN/Views/Home/Index.cshtml @@ -18,15 +18,15 @@
-

Text 2 code

+

Text

@Html.TextBox("QrTextBox", @QrTextBox, new { @class = "form-control" }) - +

- QRImage + QRImage
\ No newline at end of file diff --git a/QR-GEN/Views/Shared/_Layout.cshtml b/QR-GEN/Views/Shared/_Layout.cshtml index 82246d1..cd9db29 100644 --- a/QR-GEN/Views/Shared/_Layout.cshtml +++ b/QR-GEN/Views/Shared/_Layout.cshtml @@ -28,7 +28,10 @@ @RenderBody()
diff --git a/QR-GEN/Web.config b/QR-GEN/Web.config index 2eec0ed..a5c65a9 100644 --- a/QR-GEN/Web.config +++ b/QR-GEN/Web.config @@ -54,7 +54,7 @@ - + diff --git a/QR-GEN/favicon.ico b/QR-GEN/favicon.ico index a3a7999..4f0e0ad 100644 Binary files a/QR-GEN/favicon.ico and b/QR-GEN/favicon.ico differ