PW wrote on 18 jun 2006 in microsoft.public.inetserver.asp.general:
Is there anyway to format a text input box to prevent any punctuation
marks from being entered?
Not with serverside [ASP] code.
Text input boxes only exist clientside.
that is OT on this NG.
However, once the result has arrived on the server,
any string manipulation is possible:
<%
response.write result & "<br>"
%>
<script language='jscript' runat='server'>
result = request.form('mybox').replace(/\W+/g,'')
</script>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)