Numberic textbox

  • Thread starter close browser without Logout
  • Start date
C

close browser without Logout

hi,

i need to create a numeric textbox control which accepts only numbers,
decimal point, backspace, arrow keys, should not allow pasting contents...
etc.

i've created a web user control by extending TextBox class and added a
javascript attribute to it as base.attributes.add("onkeydown","some
javascript code");

Its working when im giving the javascript code here, its not working when im
giving javascript code in its html section...

As there may be lots of lines in the javascript code, it should be placed
somewhere and the function only should be called from attributes.add()
method...


Please provide help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
DewittMill
Top