IIS ASP - Sanitizing input data from text boxes

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > May 2005 > Sanitizing input data from text boxes





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Sanitizing input data from text boxes
mbosco51@hotmail.com

2005-05-25, 6:01 pm

Hi. I maintain an asp website with many input text boxes. I need to
check all the data that is typed in for special chars. What is the
best way to do this? I need something that will always run, regardless
of browser settings (disabling of javascript, etc...). Thanks.

Tim Slattery

2005-05-25, 6:01 pm

mbosco51@hotmail.com wrote:

>Hi. I maintain an asp website with many input text boxes. I need to
>check all the data that is typed in for special chars. What is the
>best way to do this? I need something that will always run, regardless
>of browser settings (disabling of javascript, etc...). Thanks.


The only foolproof way to do this is to check the data on the server
after it's been submitted. If it doesn't meet with your standards,
then send it back to the client along with an error message.

--
Tim Slattery
MS MVP(DTS)
Slattery_T@bls.gov
mbosco51@hotmail.com

2005-05-25, 6:01 pm

Thanks Tim. That's where I get confused though. How do I ensure that
I'm "on the server"?

Kyle Peterson

2005-05-25, 6:01 pm

oh man...

<mbosco51@hotmail.com> wrote in message
news:1117039251.811911.299030@g49g2000cwa.googlegroups.com...
> Thanks Tim. That's where I get confused though. How do I ensure that
> I'm "on the server"?
>



Tim Slattery

2005-05-25, 6:01 pm

mbosco51@hotmail.com wrote:

>Thanks Tim. That's where I get confused though. How do I ensure that
>I'm "on the server"?


If you don't know that, you need some very basic education about ASP.
Here's one site that might be of aid: http://www.learnasp.com/learn/

Google for others.

--
Tim Slattery
MS MVP(DTS)
Slattery_T@bls.gov
mbosco51@hotmail.com

2005-05-25, 6:01 pm

doh! i got it. sorry, it's been awhile.

Tim Slattery wrote:
> mbosco51@hotmail.com wrote:
>
>
> If you don't know that, you need some very basic education about ASP.
> Here's one site that might be of aid: http://www.learnasp.com/learn/
>
> Google for others.
>
> --
> Tim Slattery
> MS MVP(DTS)
> Slattery_T@bls.gov


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com