here is my HTML: I want to avoid any white space in this text box.
<div class="input-box">
<asp:TextBox ID="txtPassward" type="text" runat="server"></asp:TextBox>
</div>
<div class="actions">
<asp:Button ID="Button1" runat="server" Text="save" OnClick="btnSave_Click" />
</div>
如何在C#中避免在此文本框中出现空格