I began studying asp.net this week... after installing the framework and web-matrix on my computer i tried to some examples that were on the cd from the book i bought (asp.net unleashed). For some reason the view-state is not preserved when i submit... Dit i forget to configure something? Any help would be greatly appreciated.

Code:
 <%@  Page %>
<script runat="server">

    Sub Button_Click( s As Object, e As EventArgs )
       entries.innerHtml = "<hr>" & username.Value & "<p>" & comments.Value & entries.innerHTML
    End Sub

</script>
<html>
<head>
    <title>Guestbook.aspx</title>
</head>
<body>
    <form runat="Server">
        <b>Username:</b> 
        <br />
        <input id="username" type="text" size="30" runat="Server" />
        <p>
            <b>Comments:</b> 
            <br />
            <textarea id="comments" rows="10" cols="60" runat="Server"></textarea> 
        </p>
        <p>
            <input type="submit" value="Add Comment" runat="Server" onserverclick="Button_Click" />
            <span id="entries" runat="Server">
            </span>
        </p>
    </form>
</body>
</html>