How do I keep leading spaces in an asp.net textbox -


i have text-box web control automatically trims leading spaces in it's content when text not same user had written (in case entered leading space)

is there way disable feature

well there 1 solution override default behavior of write javascript function assigns whicever user enters hidden field , capture value of hidden field in button or whatever postback event have

<asp:textbox runat="server" id="textbox1" onkeydown="document.getelementbyid('hiddenfield1').value += this.value" ></asp:textbox> 

regards


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -