Click here to Skip to main content
15,914,905 members
Home / Discussions / C#
   

C#

 
GeneralRe: Pasing a string from c# to javascript Pin
ckruger11-Dec-05 21:46
ckruger11-Dec-05 21:46 
GeneralRe: Pasing a string from c# to javascript Pin
Guffa11-Dec-05 22:53
Guffa11-Dec-05 22:53 
QuestionAdding User control in Data grid Pin
mpbhingarkar11-Dec-05 20:40
mpbhingarkar11-Dec-05 20:40 
QuestionFixed form size for different screen resolutions Pin
cshaaaa11-Dec-05 19:52
cshaaaa11-Dec-05 19:52 
AnswerRe: Fixed form size for different screen resolutions Pin
NassosReyzidis12-Dec-05 1:18
NassosReyzidis12-Dec-05 1:18 
QuestionCheckBoxList inside in web forms Pin
ckruger11-Dec-05 19:43
ckruger11-Dec-05 19:43 
QuestionDatagridTextBoxColumn with Combo Pin
Mahi.Ragava11-Dec-05 19:23
Mahi.Ragava11-Dec-05 19:23 
QuestionProxy with authentication retire something. Pin
icerein11-Dec-05 18:46
icerein11-Dec-05 18:46 
Hi All,

the follow code will be run normally in WindowsApplication:

string userName = "a"; Confused | :confused:
string userPass = "a";
string address = "192.168.18.145";
int port = 8080;

WebProxy myproxy = new WebProxy(address , port);
NetworkCredential credentials = new NetworkCredential(userName, userPass, null);
myproxy.Credentials = credentials;

WebRequest rqt = WebRequest.Create(this.textBox2.Text.Trim());
rqt.Proxy = myproxy;
rqt.PreAuthenticate = true;

WebResponse rsp = rqt.GetResponse();
System.IO.Stream stream = rsp.GetResponseStream();
System.IO.StreamReader reader = new System.IO.StreamReader(stream);
this.textBox1.Text = reader.ReadToEnd();

stream.Close();
reader.Close();


but in the SmartDeviceApplication,,it will cause the problem :
The response did not contain an end of entity mark.

Can you tell me why and how to solve the problem??
Thank you !!


AnswerRe: Proxy with authentication retire something. Pin
icerein11-Dec-05 19:48
icerein11-Dec-05 19:48 
QuestionBuild Comment Web Pages Dialog Box in c# Pin
aynka200011-Dec-05 18:40
aynka200011-Dec-05 18:40 
QuestionLogin failure needs to close main app... Pin
flicktom11-Dec-05 18:11
flicktom11-Dec-05 18:11 
AnswerRe: Login failure needs to close main app... Pin
Vikram A Punathambekar11-Dec-05 18:58
Vikram A Punathambekar11-Dec-05 18:58 
GeneralRe: Login failure needs to close main app... Pin
flicktom13-Dec-05 14:36
flicktom13-Dec-05 14:36 
AnswerRe: Login failure needs to close main app... Pin
Polis Pilavas12-Dec-05 2:36
Polis Pilavas12-Dec-05 2:36 
Questionhow to using *.ocx written in vb6 for c#.net Pin
tinh cau11-Dec-05 17:52
tinh cau11-Dec-05 17:52 
AnswerRe: how to using *.ocx written in vb6 for c#.net Pin
Christian Graus11-Dec-05 18:09
protectorChristian Graus11-Dec-05 18:09 
AnswerRe: how to using *.ocx written in vb6 for c#.net Pin
Johan Russouw11-Dec-05 23:12
Johan Russouw11-Dec-05 23:12 
QuestionOpening a textbox using OleDbReader Pin
Mahi.Ragava11-Dec-05 17:51
Mahi.Ragava11-Dec-05 17:51 
AnswerRe: Opening a textbox using OleDbReader Pin
Christian Graus11-Dec-05 18:11
protectorChristian Graus11-Dec-05 18:11 
GeneralRe: Opening a textbox using OleDbReader Pin
Mahi.Ragava11-Dec-05 18:29
Mahi.Ragava11-Dec-05 18:29 
GeneralRe: Opening a textbox using OleDbReader Pin
Christian Graus11-Dec-05 18:36
protectorChristian Graus11-Dec-05 18:36 
GeneralRe: Opening a textbox using OleDbReader Pin
Mahi.Ragava11-Dec-05 18:40
Mahi.Ragava11-Dec-05 18:40 
GeneralRe: Opening a textbox using OleDbReader Pin
Christian Graus11-Dec-05 18:44
protectorChristian Graus11-Dec-05 18:44 
GeneralRe: Opening a textbox using OleDbReader Pin
Mahi.Ragava11-Dec-05 18:53
Mahi.Ragava11-Dec-05 18:53 
GeneralRe: Opening a textbox using OleDbReader Pin
Christian Graus11-Dec-05 18:55
protectorChristian Graus11-Dec-05 18:55 

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.