<script runat="server" language="C#" >
protected void MySubmitHandler(object o, EventArgs e) {
inputText.Value = "GoodBye";
}
</script>
<html>
<form runat="server">
<input id="inputText" type="text" runat="server" value="Hello" />
<input type="submit" runat="server" value="Go" onServerClick="MySubmitHandler"/>
</form>
</html>
|