
Originally Posted by
HowTo
still the button2 click causes the postback

This:
Code:
<head runat="server">
<title></title>
<script language="javascript" type="text/javascript">
function HowToreset() {
return false;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="Reset" OnClientClick="return HowToreset()" />
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</div>
</form>
</body>
Does not cause a PostBack.
i.e. watch the names that you are using for your functions.
Gary