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
I cant' Setup Windows 2008 Cluster with 2 HP Prolient 360 G5?
Dell PERC H200 in a PowerEdge R210 - Where do the cables go?
flex security question
Best way to use iDisk
RPC over HTTPS
Insert Into and syntax error
How to manage permissions for my helpdesk team
How To Munge Email Address?
DNS Zones not AXFR'ing from primary
DIFFERENCE BETWEEN STANDARD & EXTENDED ACL'S QUERY