Welcome aboard! We are happy you are here and wish you good net-raft!
<% @Page Language="C#" %>
<!-- code section -->
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
string url = "";
if (Request.ServerVariables["HTTPS"] == "on")
{
url = "https://" + Request.ServerVariables["SERVER_NAME"] + Request.RawUrl.ToString();
Response.Write("<img src='https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=" + url + "&choe=UTF-8' alt='QR code' />\n");
}
else
{
url = "http://" + Request.ServerVariables["SERVER_NAME"] + Request.RawUrl.ToString();
Response.Write("<img src='https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=" + url + "&choe=UTF-8' alt='QR code' />\n");
}
}
</script>
<html>
<head>
</head>
<body>
</body>
</html>
The most helpful C# solutions