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
Where is the FULL iTunes 9.2.1 changelog?
What is the color of a toolstrip in vb.net 2005
what's holding a shrink in log
MS Access 2003 ADP using 2 dependant combo boxes but getting error
Problems with Opengl stencil buffer
Add function to Zend framework for global use
Using ColdFusion Flash Forms to change group membership/moving data from one cfgrid to another.
How can I avoid this error?
Microsoft Access 2007 - Export Changing Db Data into Formated Excel Spreadsheet
interested in location for the CPU power connection for a MSI Motherboard Model KM4M