<asp:TextBox id="nome" runat="server"></asp:TextBox>
<asp:Button id="button" OnClick="funzione" runat="server"></asp:Button>


e poi dalla tua funzione ricavi il valore con: nome.Text