Hi
Your button "Alterar" is an HTML button. The onclick event (onclick="test();") you have written will try to execute only the javascript function called "test()". It will not fire up the code behind method test(). In order to fire up your code behind you need to use asp.net button control. Some thing like the following
<asp:Button id=Button1 Text="Click Me" onclick="Button1_Click" runat="server" />
and the code behind should be
void Button1_Click(object Source, EventArgs e)
{
Response.Write("You clicked the button");
}