netprogramme 0 Newbie Poster

I want to send value from Asp textbox to Javascript function on Button 1 click

how i can have that . pls help

This is my code

<head runat="server">
function callserver(txt1)
{
//Here i have to receive the value
var nm=txt1

alert(txt1);
}
</script>

 <asp:TextBox ID="TextBox1" runat="server" Style="z-index: 100; left: 254px; position: absolute;
            top: 185px"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" Style="z-index: 101; left: 325px; position: absolute;
            top: 263px" Text="Button" />