<div>
<script language="javascript" type="text/javascript">
function script()
{
var txt=document.getElementById('TextBox1').value='prasanna';
}
</script>
<asp:Button ID="a" runat="server" Text="sss" OnClientClick="script()" />
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</div>