| | |
Adding in escape characters into a string
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2006
Posts: 164
Reputation:
Solved Threads: 3
Hey everyone,
I'm trying to store file path's within a database. The problem I'm having is that the file path contains a backslash and when put into the database, it causes a problem. So I need to add an escape character into the string. I was wondering if anyone could help me out with this. I attempted to write a function that would iterate through the characters in the string and input a slash when it finds a slash, but the problem is that the string is a set size and I'm unsure how to add a new character into a preexisting string. Anyone have any suggestions?
Thanks,
Barefoot
I'm trying to store file path's within a database. The problem I'm having is that the file path contains a backslash and when put into the database, it causes a problem. So I need to add an escape character into the string. I was wondering if anyone could help me out with this. I attempted to write a function that would iterate through the characters in the string and input a slash when it finds a slash, but the problem is that the string is a set size and I'm unsure how to add a new character into a preexisting string. Anyone have any suggestions?
Thanks,
Barefoot
![]() |
Similar Threads
- Open In New Window Php (PHP)
Other Threads in the C# Forum
- Previous Thread: create buttons configured from xml file
- Next Thread: need code for updating gridview without using sql datasource
| Thread Tools | Search this Thread |
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# check checkbox client color combo combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees developer development draganddrop drawing encryption enum equation event excel file files form format forms function gdi+ httpwebrequest image index input install java label list listbox listener mandelbrot math mouseclick mysql nargalax operator path photoshop picturebox pixelinversion post programming radians regex remote remoting restore richtextbox save saving serialization server sleep socket sql stack statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml





