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
Modify tinyAccordian javascript to fix ClearType IE issue
Pagemaker Export to PDF in Windows 7
replace lsplashtop linux on asus ul50
VBSCRIPT Function
How to open and view a pdf file saved in a blob field in a database Oracle 11g forms
Sharing NTFS partitions with SAMBA
Configure Linkysis WAP in Dorm Room to School's Network?
ShowMessage
Computer will boot part of the way then stop and cannot reboot
How do I edit a links list styles?