Welcome aboard! We are happy you are here and wish you good net-raft!
<% @Page Language="C#" %>
<script runat="server">
private void function1(object sender, EventArgs e)
{
string str1 = myvalue.Value;
changed_value.InnerHtml = str1;
}
</script>
<html>
<head>
</head>
<body>
<form runat="server">
<input runat="server" id="myvalue" type="text" value="Welcome to the world of C#!" />
<input runat="server" id="button1" type="submit" value="click" OnServerClick="function1"/>
<hr />
<h3> Results: </h3>
<span runat="server" id="changed_value" />
</form>
</body>
</html> 
The most helpful C# solutions
detect ie C#C# Click to see more ... 4.7K 853