javascript in button click event?
<p>i place the onClick event in asp buttons. but it is showing error like </p>

<p>Too many characters in character literal</p>

<p>my code is </p>

<pre><code>&lt;asp:Button ID="Button1" runat="server" Text="Button" 
    onClick="alert('The button was clicked.');" /&gt;
</code></pre>

<p>actually my requirement is when i click on the button i want to display some message and when we press ok  then it is redirect to another page is it possible </p>

<p>thank you</p>
