Click here to Skip to main content
15,891,431 members
Home / Discussions / C#
   

C#

 
Questionregular expression [modified] Pin
papy-boom15-Jan-07 23:39
papy-boom15-Jan-07 23:39 
AnswerRe: regular expression Pin
ednrgc16-Jan-07 2:07
ednrgc16-Jan-07 2:07 
GeneralRe: regular expression Pin
papy-boom16-Jan-07 2:16
papy-boom16-Jan-07 2:16 
GeneralRe: regular expression Pin
ednrgc16-Jan-07 2:41
ednrgc16-Jan-07 2:41 
Questionmultithreading and font object causes InvalidOperationException[modified] Pin
haape15-Jan-07 23:32
haape15-Jan-07 23:32 
QuestionCollapse Sections Pin
Blue_Boy15-Jan-07 23:23
Blue_Boy15-Jan-07 23:23 
QuestionHow to consume a webservice with a pocket pc emulator Pin
pshilviu15-Jan-07 23:15
pshilviu15-Jan-07 23:15 
Questionhttp web exception (C#.Net) Pin
Sri harini15-Jan-07 23:10
Sri harini15-Jan-07 23:10 
Hi I am trying to test with windows mobile 5.0 emulator..using C#.Net..
but myHttpWebResponse is always null.httpwebexception coming. Please anybody help me..
This is code:

public static void httpRequest(string uri, bool isGetMethod)
{
try
{
Prepare web request...

HttpWebRequest myRequest =
(HttpWebRequest)WebRequest.Create(uri);


if (isGetMethod)
myRequest.Method = "GET";
else
{
myRequest.Method = "POST";

myRequest.ContentType = "application/x-www-form-urlencoded";
Stream newStream = myRequest.GetRequestStream();

newStream.Close();
}
HttpWebResponse myHttpWebResponse = (HttpWebResponse)myRequest.GetResponse();

Stream streamResponse = myHttpWebResponse.GetResponseStream();

StreamReader streamRead = new StreamReader(streamResponse);

Char[] readBuffer = new Char[256];

int count = streamRead.Read(readBuffer, 0, 256);
string result = "";
while (count > 0)
{
string resultData = new String(readBuffer, 0, count);
result = result + resultData;

count = streamRead.Read(readBuffer, 0, 256);
}
HTTPClass.resultData = result;
streamRead.Close();
streamResponse.Close();
myHttpWebResponse.Close();
}
catch(Exception e)
{

MessageBox.Show(e.Message.ToString());

}
}

Anybody help me..
Thanks

QuestionUTF-8 prefix in attachment filename Pin
mandrake_215-Jan-07 23:04
mandrake_215-Jan-07 23:04 
AnswerRe: UTF-8 prefix in attachment filename Pin
Guffa15-Jan-07 23:52
Guffa15-Jan-07 23:52 
GeneralRe: UTF-8 prefix in attachment filename Pin
mandrake_216-Jan-07 2:43
mandrake_216-Jan-07 2:43 
AnswerRe: UTF-8 prefix in attachment filename Pin
Guffa16-Jan-07 3:32
Guffa16-Jan-07 3:32 
QuestionOdbcDataAdapter query on update().. Pin
jamesjk15-Jan-07 22:56
jamesjk15-Jan-07 22:56 
AnswerRe: OdbcDataAdapter query on update().. Pin
bluewavestrider16-Jan-07 6:41
bluewavestrider16-Jan-07 6:41 
AnswerRe: Binary .dat files in VB .Net Pin
Stefan Troschuetz15-Jan-07 22:43
Stefan Troschuetz15-Jan-07 22:43 
QuestionDisplaying binary data in a text box Pin
Quaspam15-Jan-07 22:05
Quaspam15-Jan-07 22:05 
AnswerRe: Displaying binary data in a text box Pin
Christian Graus15-Jan-07 22:07
protectorChristian Graus15-Jan-07 22:07 
GeneralRe: Displaying binary data in a text box Pin
Mircea Puiu15-Jan-07 22:39
Mircea Puiu15-Jan-07 22:39 
QuestionDoubt regarding classlilbrary. Pin
kalaveer15-Jan-07 21:56
kalaveer15-Jan-07 21:56 
AnswerRe: Doubt regarding classlilbrary. Pin
Christian Graus15-Jan-07 22:05
protectorChristian Graus15-Jan-07 22:05 
AnswerRe: Doubt regarding classlilbrary. Pin
bluewavestrider16-Jan-07 6:45
bluewavestrider16-Jan-07 6:45 
QuestionMIME and DIME with Web Services Pin
blackjack215015-Jan-07 21:45
blackjack215015-Jan-07 21:45 
Questionquestion about C# find input text service! Pin
abstar15-Jan-07 21:27
abstar15-Jan-07 21:27 
AnswerRe: question about C# find input text service! Pin
Christian Graus15-Jan-07 21:41
protectorChristian Graus15-Jan-07 21:41 
GeneralRe: question about C# find input text service! Pin
abstar15-Jan-07 22:30
abstar15-Jan-07 22:30 

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.