Solved

Input string was not in a correct format.

Posted on 2015-01-27
1
75 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now