You should convert all your hard coded form control HTML into appropriate server controls. So for your example you should use this:
<asp:textbox id="Name" />
Then in the appropriate place in code behind, put this:
Name.Text = Somefunction("a", "b")
It sounds like you might want to take a look at a
introductory ASP.NET book.
-Peter
compiledthoughts.com