Microsoft
Software
Hardware
Network
Question : Replace apostrophes in all Session Variables in C#?
Having a bit of trouble here...
Can someone provide some code to loop through all active Session variables and replace any single apostrophes with double apostrophes so that I can insert cleanly into SQL database?
Thanks!
Answer : Replace apostrophes in all Session Variables in C#?
try
foreach (string key in Session.Keys) {
Session[key].ToString() = Session[key].ToString().Re
place("'",
"''");
}
Random Solutions
what is the problem in this code
ERROR: Windows Live Messenger has stopped working
asp.net - Is there anyway that you can detect that a label evals to nothing and trigger an event to alert the user that they need do something.
Get rid of tab color on all tabs between 2 tabs
How to set the reportViewer to Print Layout
How do I enable the Create Email button in Access 2007 forms?
Why aren't all my profiles showing up with I boot up in SAFE MODE?
Manual Update of WSUS Data Files
Coldfusion Regex find question
Ethernet adapter issue