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
Windows updates issue
Formview - System.NullReference Exception when using FindControlRecursive
Records In 14 days Date Range
WDSServer service will not start
How to send a big list of constant to vertex shader ? (and process it)
Syslog Files from Cisco to Kiwi SysLog
Append rowcount to filename
Why could the man eat meat after flood?
Perl one liner to read from file
stsadm import command fails to execute