Click here to Skip to main content
15,917,005 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAdd To OCX File Pin
Deepak the Cool13-Apr-09 21:03
Deepak the Cool13-Apr-09 21:03 
Questionexport data to .csv file and impoort to outlook Pin
meghamaharshi13-Apr-09 20:29
meghamaharshi13-Apr-09 20:29 
AnswerRe: export data to .csv file and impoort to outlook Pin
Abhishek Sur13-Apr-09 22:06
professionalAbhishek Sur13-Apr-09 22:06 
QuestionRefresh page with textbox control Pin
ciqing13-Apr-09 20:15
ciqing13-Apr-09 20:15 
AnswerRe: Refresh page with textbox control Pin
Rahul Gharat13-Apr-09 21:38
Rahul Gharat13-Apr-09 21:38 
QuestionUnable to evaluate expression because the code is optimized or a native frame is on top of the call stack Pin
Piyush Vardhan Singh13-Apr-09 19:42
Piyush Vardhan Singh13-Apr-09 19:42 
QuestionDrop Down Z-index Pin
scar_face13-Apr-09 19:39
scar_face13-Apr-09 19:39 
AnswerRe: Drop Down Z-index Pin
Abhishek Sur13-Apr-09 22:08
professionalAbhishek Sur13-Apr-09 22:08 
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 

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.