Click here to Skip to main content
15,918,168 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to become a technical architect? Pin
spsureshkumar9-Mar-14 5:13
spsureshkumar9-Mar-14 5:13 
AnswerRe: How to become a technical architect? Pin
V.9-Mar-14 22:58
professionalV.9-Mar-14 22:58 
GeneralRe: How to become a technical architect? Pin
spsureshkumar10-Mar-14 17:19
spsureshkumar10-Mar-14 17:19 
GeneralRe: How to become a technical architect? Pin
V.10-Mar-14 20:21
professionalV.10-Mar-14 20:21 
AnswerRe: How to become a technical architect? Pin
BobJanova10-Mar-14 7:43
BobJanova10-Mar-14 7:43 
Questionc# lotus notes domino mail server usage Pin
naslandogdu8-Mar-14 23:38
naslandogdu8-Mar-14 23:38 
AnswerRe: c# lotus notes domino mail server usage Pin
OriginalGriff8-Mar-14 23:48
mveOriginalGriff8-Mar-14 23:48 
AnswerRe: c# lotus notes domino mail server usage Pin
Mycroft Holmes9-Mar-14 14:21
professionalMycroft Holmes9-Mar-14 14:21 
QuestionHow do I create a file hostingserver. Server should allowfor ipload and download.Client should allow fordownloads Pin
Sthaxic8-Mar-14 23:07
Sthaxic8-Mar-14 23:07 
AnswerRe: How do I create a file hostingserver. Server should allowfor ipload and download.Client should allow fordownloads Pin
Kornfeld Eliyahu Peter8-Mar-14 23:40
professionalKornfeld Eliyahu Peter8-Mar-14 23:40 
QuestionHow do I set variable in ShockwaveFlashObjects Pin
Member 106494598-Mar-14 5:07
Member 106494598-Mar-14 5:07 
AnswerRe: How do I set variable in ShockwaveFlashObjects Pin
Dave Kreskowiak8-Mar-14 5:10
mveDave Kreskowiak8-Mar-14 5:10 
GeneralRe: How do I set variable in ShockwaveFlashObjects Pin
Member 106494598-Mar-14 5:16
Member 106494598-Mar-14 5:16 
Question.net database connect api Pin
Jassim Rahma8-Mar-14 1:57
Jassim Rahma8-Mar-14 1:57 
AnswerRe: .net database connect api Pin
Dave Kreskowiak8-Mar-14 3:32
mveDave Kreskowiak8-Mar-14 3:32 
AnswerRe: .net database connect api Pin
Eddy Vluggen9-Mar-14 2:19
professionalEddy Vluggen9-Mar-14 2:19 
QuestionGet value from dynamic checkboxes Pin
NYCABR7-Mar-14 8:23
NYCABR7-Mar-14 8:23 
AnswerRe: Get value from dynamic checkboxes Pin
Richard Deeming7-Mar-14 9:07
mveRichard Deeming7-Mar-14 9:07 
GeneralRe: Get value from dynamic checkboxes Pin
NYCABR10-Mar-14 3:38
NYCABR10-Mar-14 3:38 
QuestionInterface and abstract class why we use Pin
rahulmaurya1237-Mar-14 5:19
rahulmaurya1237-Mar-14 5:19 
AnswerRe: Interface and abstract class why we use Pin
Peter Leow7-Mar-14 5:29
professionalPeter Leow7-Mar-14 5:29 
AnswerRe: Interface and abstract class why we use Pin
Jason Gleim7-Mar-14 5:31
professionalJason Gleim7-Mar-14 5:31 
AnswerRe: Interface and abstract class why we use Pin
Eddy Vluggen7-Mar-14 7:17
professionalEddy Vluggen7-Mar-14 7:17 
AnswerRe: Interface and abstract class why we use Pin
jschell7-Mar-14 9:23
jschell7-Mar-14 9:23 
QuestionReading a filepath string from a table field and escapes are automatically added. Pin
Doncal7-Mar-14 4:52
Doncal7-Mar-14 4:52 
Hi Guys,

Im trying to retrieve a part of a string (a filepath and name) from a field.
However when I do, c# "helpfully" automatically escapes the string.
So instead of the string: C:\folderpath\filename.doc
I end up with: C:\\folderpath\\filename.doc
I've tried using the string.Replace funciton to remove the extra rubbish, but nothing happens.
I've also tried using Regex, but it just complains that it doesnt know what "\f" is.
I've tried adding "@" to the beginning of the string retrieval, but that doesnt help either.

Im running a sql query
C#
using (SqlCommand cmd = new SqlCommand("Select Address1, Address2, LinkedDoc, Recid from Contsupp2 Where Rectype = 'L' AND U_ADDRESS1 Like @param", conn))
{
  cmd.Parameters.Add("param", SqlDbType.VarChar,10).Value = @"S:\RWE%";
  using (SqlDataReader reader = cmd.ExecuteReader())
  {
    txt.Clear();
    while (reader.Read())
    {
      string strOrigFilePath = (reader.GetString(2).Substring(reader.GetString(2).IndexOf("FILENAME=") + 9));



Any suggestions as to how I can return a normal string without c# messing it up?

Thanks

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.