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 find a packaged stored proc in Oracle?
Can you print a booklet style layout using the front and back of a piece of paper (226 pages) that when folded binded actually line the pages properly
Sql Sever 2005 scripts
Highlight Row Based On Column Value
HELP!!! I trying to repartition my C: sys drive on a Windows Server 2003
.asp view image
OLE control not displaying .jpg
Ping a list of addresses in ms-dos
Background Image Not Showing
The command or action 'DeleteRecord' is not available now.