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
make it stop!
Problem with hwdPhotoShare in Joomla
Access 2010
Best Practice for seeing if a value already exists prior to trying to do an INSERT?
How to construct if-else in this sql query?
About midrash - who can help me to understand some things?
touchsmart 9100 built in web cam software
Cange IP range of Domain
How to configure Exchange Granular Backup with Symantec BE
MS Access: Pivot Chart View of Query