Solved

Input string was not in a correct format.

Posted on 2015-01-27
1
79 Views
Last Modified: 2015-04-09
My application takes values from the request querystring and loads them into a database, far too often it bombs with " Input string was not in a correct format." Is there a way that I can dump the entire querystring (however wrong it might be) into a database field for later processing
0
Comment
Question by:jking1234
1 Comment
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 40573552
If you have a column defined as text you should be able to put anything into it, but you are begging to be hacked if you are not validating the input before you do something with it.  If you are not going to validate then dump it into a text file; not the database unless you are willing to have the DB trashed by code injection.

Cd&
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to dynamically set the form action using jQuery.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question