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
Excel Property Setting
Backup Exec 12.5 slow job rate
nested classes limitations
cant seem to get asa5505 to work with static ip address
How can I add/ use a Sub-site as a Site Collection
how to make s simple share on win 2008 server or win 7 pro
Drivers for Windows 7 on old machine
Retrieve data from 'TABLE_ONE' based on entry in 'TABLE_TWO'
vba sql error in microsoft access
iSCSI Initiator and multiple connections