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
How to disable multitasking on iOS4 iPhone 3G ?
How to identify a Task (not process) on Applications tab in Task Manager and kill the assosiated process.
How to populate the table with quosi-random numbers
Blocking unknown or private calls on iPhone 4
Files are Read-Only
Asterisk - Changing the Voicemail Naming Convention
Question about Spring HTML Email
Visual basic emailer, Send with Attachments....
Can't map a drive to a redhat server from Window7Pro?
Remove ListItem from RadioButtonList inside a GridView