Click here to Skip to main content
15,912,578 members
Home / Discussions / C#
   

C#

 
GeneralRe: "Convert To Application" IIS 7 Pin
luisnike193-Jul-08 9:40
luisnike193-Jul-08 9:40 
QuestionChange FtpWebRequest's remote path Pin
longzu19843-Jul-08 7:16
longzu19843-Jul-08 7:16 
AnswerRe: Change FtpWebRequest's remote path Pin
Michael90003-Jul-08 10:54
Michael90003-Jul-08 10:54 
QuestionC# Converting socket communitation ( byte[] ) to string Pin
nyjcr3-Jul-08 6:59
nyjcr3-Jul-08 6:59 
AnswerRe: C# Converting socket communitation ( byte[] ) to string Pin
Michael90003-Jul-08 7:21
Michael90003-Jul-08 7:21 
AnswerRe: C# Converting socket communitation ( byte[] ) to string Pin
hammerstein053-Jul-08 7:21
hammerstein053-Jul-08 7:21 
AnswerRe: C# Converting socket communitation ( byte[] ) to string Pin
Anthony Mushrow3-Jul-08 9:07
professionalAnthony Mushrow3-Jul-08 9:07 
AnswerRe: C# Converting socket communitation ( byte[] ) to string Pin
Guffa3-Jul-08 12:43
Guffa3-Jul-08 12:43 
nyjcr wrote:
the problem is that the string comes with "empty" characters at the end.


No, the string doesn't come with any empty characters.

The problem is that you get the length of the actual data, but then you just ignore that and convert the entire buffer into a string. The unused part of the buffer just happens to be filled with zeroes.

Only convert the actual data:

dataReceived = System.Text.Encoding.ASCII.GetString(input, 0, bytesReceived);

Despite everything, the person most likely to be fooling you next is yourself.

Questionconfirmed file creation Pin
netJP12L3-Jul-08 6:23
netJP12L3-Jul-08 6:23 
AnswerRe: confirmed file creation Pin
Christian Graus3-Jul-08 7:33
protectorChristian Graus3-Jul-08 7:33 
GeneralRe: confirmed file creation Pin
User 66583-Jul-08 7:41
User 66583-Jul-08 7:41 
AnswerRe: confirmed file creation Pin
Michael90003-Jul-08 7:41
Michael90003-Jul-08 7:41 
QuestionAuto updateing applcation. Pin
Simon P Stevens3-Jul-08 5:16
Simon P Stevens3-Jul-08 5:16 
AnswerRe: Auto updateing applcation. Pin
half-life3-Jul-08 6:12
half-life3-Jul-08 6:12 
GeneralRe: Auto updateing applcation. Pin
Simon P Stevens3-Jul-08 21:39
Simon P Stevens3-Jul-08 21:39 
AnswerRe: Auto updateing applcation. Pin
led mike3-Jul-08 6:35
led mike3-Jul-08 6:35 
GeneralRe: Auto updateing applcation. Pin
Simon P Stevens3-Jul-08 22:10
Simon P Stevens3-Jul-08 22:10 
GeneralRe: Auto updateing applcation. Pin
led mike7-Jul-08 10:58
led mike7-Jul-08 10:58 
QuestionChanging columns during update when using virtual listview Pin
Hampus@foi3-Jul-08 4:55
Hampus@foi3-Jul-08 4:55 
QuestionC# working with Sapces in registry Keys Pin
Planker3-Jul-08 4:47
Planker3-Jul-08 4:47 
AnswerRe: C# working with Sapces in registry Keys Pin
User 66583-Jul-08 4:55
User 66583-Jul-08 4:55 
GeneralRe: C# working with Sapces in registry Keys Pin
Planker3-Jul-08 7:31
Planker3-Jul-08 7:31 
QuestionHow to disbale outlook security warnings while sending mails Pin
sivasankar anumula3-Jul-08 4:45
sivasankar anumula3-Jul-08 4:45 
AnswerRe: How to disbale outlook security warnings while sending mails Pin
MumbleB3-Jul-08 6:50
MumbleB3-Jul-08 6:50 
QuestionWebclient.DownloadFilesAsync issue Pin
Reason Man3-Jul-08 4:17
Reason Man3-Jul-08 4:17 

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.