I would like to know how to make this code work becouse currently it doesn't work. I should get string and it supposed to convert it to ASCII. I have 2 text boxes with input and the output result and one button the does the conversion. Big thanks for the help!!!
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Convert to ASCII</title>
</head>
<body>
<form id="form1" runat="server">
<div>
Enter your mail:
<input TextBox ID="TextBox1" runat="server" ontextchanged="TextBox1_TextChanged"><TextBox/>
</p>
<Button type="Button" onclick="Ascii()">Convert to ASCII</button>
</p>
Output:
<input TextBox ID="TextBox2" runat="server" ontextchanged="TextBox2_TextChanged"><TextBox/>
</p>
<p>
<script>
function Ascii() {
textbox2 = String.charCodeAt(TextBox1);
}
</script>
</p>
</form>
</body>
</html>