javascript - AJAX FilteredTextBoxExtender allow carriage return -


i have multi-line text box using ajax filteredtextboxextender limit user input numbers. i'd allow user add new line using enter key. i've searched , haven't found works. know how this?

thanks in advance!

here's code reference:

<asp:textbox id="txteidentrybox" runat="server" cssclass="prettyentrybox" textmode="multiline" height="300px" width="100px"></asp:textbox>     <ajaxtoolkit:filteredtextboxextender id="ftbeeid"             runat="server"             targetcontrolid="txteidentrybox"             filtertype="custom" validchars="0123456789"></ajaxtoolkit:filteredtextboxextender>  

add custom filtertype , add following in code-behind:

protected sub filter_identifierfilter_init(byval sender object, byval e system.eventargs) handles filter_identifierfilter.init     filter_identifierfilter.validchars = filter_identifierfilter.validchars & vbcrlf end sub 

via http://forums.asp.net/t/1203820.aspx/1


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -