Click here to Skip to main content
15,914,109 members
Home / Discussions / Web Development
   

Web Development

 
Questionbrowser compatibility problem Pin
nicetohaveyou24-Sep-07 22:56
nicetohaveyou24-Sep-07 22:56 
QuestionProblem in passing message betwin client server. Pin
Tarun Dudhatra24-Sep-07 19:28
Tarun Dudhatra24-Sep-07 19:28 
Questionreading web site content Pin
dhatchu24-Sep-07 18:34
dhatchu24-Sep-07 18:34 
AnswerRe: reading web site content Pin
Christian Graus24-Sep-07 18:38
protectorChristian Graus24-Sep-07 18:38 
QuestionWeb parts User control Events Pin
zol_tech24-Sep-07 5:53
zol_tech24-Sep-07 5:53 
AnswerRe: Web parts User control Events Pin
Jpuckett25-Sep-07 17:38
Jpuckett25-Sep-07 17:38 
QuestionConverting a PHP HexToBin function to C# [modified] Pin
#realJSOP24-Sep-07 5:20
professional#realJSOP24-Sep-07 5:20 
AnswerRe: Converting a PHP HexToBin function to C# Pin
Guffa24-Sep-07 7:34
Guffa24-Sep-07 7:34 
You can't write a .NET function that does the same as that PHP code, as there are no binary strings in .NET. A PHP character is an eight bit value, while a .NET character is a 16 bit unicode character.

Binary data in .NET is usually represented as a byte array:

private byte[] HexToBin(string data) {
    int length = data.Length / 2;
    byte[] newData = new byte[length];
    for (int i = 0; i < length; i++) {
        string value = data.Substring(i * 2, 2);
        newData[i] = Byte.Parse(value, NumberStyles.HexNumber);
    }
    return newData;
}


---
single minded; short sighted; long gone;

GeneralRe: Converting a PHP HexToBin function to C# Pin
#realJSOP24-Sep-07 9:55
professional#realJSOP24-Sep-07 9:55 
AnswerRe: Converting a PHP HexToBin function to C# Pin
Guffa24-Sep-07 10:29
Guffa24-Sep-07 10:29 
GeneralRe: Converting a PHP HexToBin function to C# Pin
#realJSOP25-Sep-07 0:14
professional#realJSOP25-Sep-07 0:14 
AnswerRe: Converting a PHP HexToBin function to C# Pin
Guffa25-Sep-07 0:25
Guffa25-Sep-07 0:25 
AnswerRe: Converting a PHP HexToBin function to C# [SOLVED] Pin
#realJSOP25-Sep-07 3:37
professional#realJSOP25-Sep-07 3:37 
AnswerRe: Converting a PHP HexToBin function to C# [SOLVED] Pin
Guffa25-Sep-07 19:49
Guffa25-Sep-07 19:49 
QuestionAOL API for Calendar data? Pin
vbmithai23-Sep-07 20:00
vbmithai23-Sep-07 20:00 
QuestionCCAvenue intregation Pin
Abhishek0323-Sep-07 19:56
Abhishek0323-Sep-07 19:56 
QuestionHow the FILEUPLOAD to prevent from posting back? Pin
hifiger200423-Sep-07 7:23
hifiger200423-Sep-07 7:23 
AnswerRe: How the FILEUPLOAD to prevent from posting back? Pin
Guffa23-Sep-07 8:57
Guffa23-Sep-07 8:57 
GeneralRe: How the FILEUPLOAD to prevent from posting back? Pin
hifiger200423-Sep-07 12:16
hifiger200423-Sep-07 12:16 
GeneralRe: How the FILEUPLOAD to prevent from posting back? Pin
Christian Graus23-Sep-07 12:42
protectorChristian Graus23-Sep-07 12:42 
AnswerRe: How the FILEUPLOAD to prevent from posting back? Pin
hifiger200423-Sep-07 17:20
hifiger200423-Sep-07 17:20 
GeneralRe: How the FILEUPLOAD to prevent from posting back? Pin
Christian Graus23-Sep-07 19:17
protectorChristian Graus23-Sep-07 19:17 
GeneralRe: How the FILEUPLOAD to prevent from posting back? Pin
Malcolm Smart27-Sep-07 2:15
Malcolm Smart27-Sep-07 2:15 
QuestionURGENT: Please Help - ASP Error Pin
Azi Qaiser23-Sep-07 2:10
Azi Qaiser23-Sep-07 2:10 
QuestionVisual Web 2005 Express HELP Pin
Rocky Mt. High22-Sep-07 20:27
Rocky Mt. High22-Sep-07 20:27 

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.