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

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -