Click here to Skip to main content
15,888,590 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCustom Error page Pin
Niungareamit13-Apr-09 19:37
Niungareamit13-Apr-09 19:37 
AnswerRe: Custom Error page Pin
Deepak the Cool13-Apr-09 21:05
Deepak the Cool13-Apr-09 21:05 
GeneralRe: Custom Error page Pin
Niungareamit13-Apr-09 21:19
Niungareamit13-Apr-09 21:19 
AnswerRe: Custom Error page Pin
Abhijit Jana13-Apr-09 21:29
professionalAbhijit Jana13-Apr-09 21:29 
QuestionImage Retreiving Pin
nagendra.vk13-Apr-09 19:31
nagendra.vk13-Apr-09 19:31 
AnswerRe: Image Retreiving Pin
Deepak the Cool13-Apr-09 21:11
Deepak the Cool13-Apr-09 21:11 
QuestionHow to create event handling on SharePoint Document Library metada columns Pin
modiyam13-Apr-09 19:12
modiyam13-Apr-09 19:12 
QuestionPassing Network Credentials First Pin
Ryan Fleming13-Apr-09 17:03
Ryan Fleming13-Apr-09 17:03 
I am trying to access my linksys router's, web configuration to parse out my WAN ip address. However, I can't seem to get the Credentials to work correctly. I think the problem is that I am not passing the credentials first, and then trying to access the web pages. Here is the code I am using.

Dim request As System.Net.HttpWebRequest
Dim response As System.Net.HttpWebResponse = Nothing
Dim MyCredentialCache = New System.Net.CredentialCache
Dim ds As DataSet

Try
request = DirectCast(System.Net.WebRequest.Create("http://10.100.200.1/RouterStatus.htm"), System.Net.HttpWebRequest)
MyCredentialCache.Add(New Uri("http://10.100.200.1/RouterStatus.htm"), "Basic", New System.Net.NetworkCredential("", "thepassword", ""))
request.Timeout = 60 * 1000
response = DirectCast(request.GetResponse(), System.Net.HttpWebResponse)
ds = New DataSet()
ds.ReadXml(response.GetResponseStream())
Catch ex1 As System.Net.WebException
Debug.Print(ex1.Message)
Catch ex As Exception
Debug.Print(ex.Message)
Finally
If Not response Is Nothing Then response.Close()
End Try


I keep getting an Authentication Failed error 404 when attempting the response = directcast.....

Any help would be greatly appreciated!
AnswerRe: Passing Network Credentials First Pin
Abhijit Jana13-Apr-09 21:02
professionalAbhijit Jana13-Apr-09 21:02 
GeneralRe: Passing Network Credentials First Pin
Ryan Fleming14-Apr-09 2:05
Ryan Fleming14-Apr-09 2:05 
Questionpage loaded Pin
Dov Kruman13-Apr-09 16:01
Dov Kruman13-Apr-09 16:01 
QuestionSWF file in .aspx page Pin
Dov Kruman13-Apr-09 14:08
Dov Kruman13-Apr-09 14:08 
AnswerRe: SWF file in .aspx page Pin
Christian Graus13-Apr-09 14:09
protectorChristian Graus13-Apr-09 14:09 
QuestionHow to send email? Pin
Shahdat Hosain13-Apr-09 11:49
Shahdat Hosain13-Apr-09 11:49 
AnswerRe: How to send email? Pin
Colin Angus Mackay13-Apr-09 12:09
Colin Angus Mackay13-Apr-09 12:09 
GeneralRe: How to send email? Pin
Shahdat Hosain13-Apr-09 18:39
Shahdat Hosain13-Apr-09 18:39 
GeneralRe: How to send email? Pin
Abhijit Jana13-Apr-09 21:06
professionalAbhijit Jana13-Apr-09 21:06 
GeneralRe: How to send email? [modified] Pin
Shahdat Hosain14-Apr-09 5:02
Shahdat Hosain14-Apr-09 5:02 
GeneralRe: How to send email? Pin
kishorgh13-Apr-09 21:12
kishorgh13-Apr-09 21:12 
Questionsubmit form inside an automatically created ASP form Pin
shabya13-Apr-09 11:29
shabya13-Apr-09 11:29 
AnswerRe: submit form inside an automatically created ASP form Pin
Christian Graus13-Apr-09 13:14
protectorChristian Graus13-Apr-09 13:14 
GeneralRe: submit form inside an automatically created ASP form Pin
shabya13-Apr-09 19:32
shabya13-Apr-09 19:32 
Question[Asp .Net Page output caching] invalidate subset of pages on demand only Pin
lermi13-Apr-09 11:27
lermi13-Apr-09 11:27 
QuestionOrder Page... I'm almost there Pin
Dirso13-Apr-09 8:07
Dirso13-Apr-09 8:07 
AnswerRe: Order Page... I'm almost there Pin
Yusuf13-Apr-09 8:42
Yusuf13-Apr-09 8:42 

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.