32 lines
794 B
Plaintext
32 lines
794 B
Plaintext
@{
|
|
ViewBag.Title = "Home Page";
|
|
}
|
|
|
|
@{
|
|
string QrTextBox = "www.steamware.net";
|
|
if (IsPost)
|
|
{
|
|
QrTextBox = Request.Form["QrTextBox"];
|
|
}
|
|
}
|
|
<div class="jumbotron">
|
|
<h1>QR CODE GENERATOR</h1>
|
|
<p class="lead">Generatore QR code by Steamware</p>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<form method="post">
|
|
<fieldset>
|
|
<h2>Text</h2>
|
|
<p>
|
|
@Html.TextBox("QrTextBox", @QrTextBox, new { @class = "form-control" })
|
|
<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 = System.Net.WebUtility.UrlEncode(@QrTextBox) })" alt="QRImage" class="img-fluid mx-auto d-block" />
|
|
</div>
|
|
</div> |