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.
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.