Click here to Skip to main content
15,923,120 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionDo any body have an idea about plugins? Pin
pranesh197715-Nov-06 6:19
pranesh197715-Nov-06 6:19 
AnswerRe: Do any body have an idea about plugins? Pin
alpa shah16-Nov-06 1:50
alpa shah16-Nov-06 1:50 
GeneralRe: Do any body have an idea about plugins? Pin
pranesh197716-Nov-06 4:26
pranesh197716-Nov-06 4:26 
GeneralRe: Do any body have an idea about plugins? Pin
Tal Kain16-Nov-06 15:45
Tal Kain16-Nov-06 15:45 
AnswerRe: Do any body have an idea about plugins? Pin
archana jain8-Dec-11 18:57
archana jain8-Dec-11 18:57 
QuestionMulticasting Issue with VPN Pin
Dick Bellnier15-Nov-06 5:21
Dick Bellnier15-Nov-06 5:21 
Questionhow to download file using https? Pin
Larisa_K15-Nov-06 3:01
Larisa_K15-Nov-06 3:01 
AnswerRe: how to download file using https? Pin
Scott Dorman16-Nov-06 9:40
professionalScott Dorman16-Nov-06 9:40 
You can also check out http://www.codeproject.com/useritems/filedownloader.asp[^].

You almost have things setup correctly, but the CredentailCache.DefaultCredentials will supply the request object with the default system credentials, not the username and password required by the web site.

In order to do that, you will need to do something like this:
C#
Uri uri = new Uri(url);
CredentialCache credCache = new CredentialCache();
NetworkCredential userCred = new NetworkCredential(username, password, domain);
credCache.Add(uri, "Basic", userCred);
The "NTLM" in the call is a string that specifies the authentication type. The valid choices are "NTLM", "Digest", and "Basic". You will need to use the type that is appropriate for your specific case.

Also, make sure that you don't need a proxy to be specified.

-----------------------------
In just two days, tomorrow will be yesterday.

QuestionMDI-Application hangs on child maximization Pin
Desert Star14-Nov-06 7:37
Desert Star14-Nov-06 7:37 
QuestionPDF authoring on-the-fly Pin
Mel Padden13-Nov-06 21:53
Mel Padden13-Nov-06 21:53 
AnswerRe: PDF authoring on-the-fly Pin
Christian Graus14-Nov-06 14:23
protectorChristian Graus14-Nov-06 14:23 
GeneralRe: PDF authoring on-the-fly Pin
Mel Padden14-Nov-06 22:18
Mel Padden14-Nov-06 22:18 
AnswerRe: PDF authoring on-the-fly Pin
pranesh197715-Nov-06 6:29
pranesh197715-Nov-06 6:29 
QuestionVersion problem - Remote object under IIS Pin
l_valeriu13-Nov-06 3:08
l_valeriu13-Nov-06 3:08 
AnswerRe: Version problem - Remote object under IIS Pin
Russell Jones14-Nov-06 22:32
Russell Jones14-Nov-06 22:32 
QuestionTo make a size of button changeable by mouse Pin
wasek200113-Nov-06 1:51
wasek200113-Nov-06 1:51 
AnswerRe: To make a size of button changeable by mouse Pin
Christian Graus13-Nov-06 10:03
protectorChristian Graus13-Nov-06 10:03 
GeneralRe: To make a size of button changeable by mouse Pin
wasek200113-Nov-06 22:25
wasek200113-Nov-06 22:25 
AnswerRe: To make a size of button changeable by mouse Pin
Monkeyget215-Nov-06 4:04
Monkeyget215-Nov-06 4:04 
QuestionAJAX-Page load-.Net 2003 Pin
dwadasi12-Nov-06 20:42
dwadasi12-Nov-06 20:42 
AnswerRe: Validation Marker Pin
Christian Graus12-Nov-06 20:32
protectorChristian Graus12-Nov-06 20:32 
QuestionSerializable attribute in .NET Framework Pin
crazy_mads12-Nov-06 17:28
crazy_mads12-Nov-06 17:28 
AnswerRe: Serializable attribute in .NET Framework Pin
CWIZO12-Nov-06 21:22
CWIZO12-Nov-06 21:22 
Questionto know what are methods that loaded when page is loaded Pin
chinnivinay12-Nov-06 17:22
chinnivinay12-Nov-06 17:22 
AnswerRe: to know what are methods that loaded when page is loaded Pin
Christian Graus12-Nov-06 20:32
protectorChristian Graus12-Nov-06 20:32 

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.