<script runat="server">
Sub submit(Source As Object, e As EventArgs)
hidden1.Value=string1.Value
p1.InnerHtml="Hidden value= " + hidden1.Value
End Sub
</script>
<html>
<body>
<form runat="server">
请输入一些文本: <input id="string1" type="text" size="25" runat="server" />
<input type="submit" value="提交" OnServerClick="submit" runat="server" />
<input id="hidden1" type="hidden" runat="server" />
<p id="p1" runat="server" />
</form>
</body>
</html>