Click here to Skip to main content
15,912,400 members
Home / Discussions / C#
   

C#

 
Questionfaq Pin
Ashutosh Kumar Gupta26-Jan-07 17:10
Ashutosh Kumar Gupta26-Jan-07 17:10 
AnswerRe: faq Pin
quiteSmart26-Jan-07 20:01
quiteSmart26-Jan-07 20:01 
AnswerRe: faq Pin
Syed Muhammad Kamran26-Jan-07 21:25
Syed Muhammad Kamran26-Jan-07 21:25 
AnswerRe: faq Pin
Christian Graus26-Jan-07 21:39
protectorChristian Graus26-Jan-07 21:39 
QuestionNeed help with loan interest calculation Pin
apricotsun26-Jan-07 16:12
apricotsun26-Jan-07 16:12 
AnswerRe: Need help with loan interest calculation Pin
Glen Harvy26-Jan-07 18:11
Glen Harvy26-Jan-07 18:11 
GeneralRe: Need help with loan interest calculation Pin
apricotsun27-Jan-07 2:55
apricotsun27-Jan-07 2:55 
QuestionRun client-side web scripts in-memory? Pin
Jasmine250126-Jan-07 13:58
Jasmine250126-Jan-07 13:58 
I'm making a program that has a simple link-checker in it, and it makes Google and ASP.net sitemaps as well. I want it to be able to crawl a site on the web. Right now it works against local copies of a web site, and does very nicely finding broken links and making sitemaps. You can find a beta here:

http://www.smoothjazzy.com/jazzy_sitemap.html[^]

Anyway, I'm having a problem when I make requests for HTTP locations. If the file is local, I just check for it on the hard drive, but if it's an absolute URL, then I do this:

<br />
WebClient browser = new WebClient();<br />
UTF8Encoding enc = new UTF8Encoding();<br />
try {<br />
    string fileContents = enc.GetString(browser.DownloadData(test_url));<br />
    c_url.found = true;<br />
} catch (Exception exc) {<br />
    current_report_builder.Append("***** Broken Link<br />
....etc....<br />


When I do this it executes server-side codes just fine of course, but sometimes there are javascripts on pages, such as my site above, which generate links. I want to be able to scan those links as well. Right now they show up as broken links because they are generated by javascript document.write commands.

Does anyone know how I can ammend this code to run client-side javascripts so I can see the "final rendering" of the page? I thought of possibly doing it with an invisible browser control, but I'd rather not...

I have searched Google and these forums and a few dark corners I know about, but nobody seems to know anything about this... If you can find it somewhere, please tell me what search terms you used, cuz I'm getting shlock Poke tongue | ;-P

"Quality Software since 1983!"
http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles.

Question.Net Reactor Pin
Glen Harvy26-Jan-07 13:52
Glen Harvy26-Jan-07 13:52 
QuestionMake a wrapped win32-dialog modal Pin
AlexZieg7126-Jan-07 12:45
AlexZieg7126-Jan-07 12:45 
AnswerRe: Make a wrapped win32-dialog modal Pin
Christian Graus26-Jan-07 13:23
protectorChristian Graus26-Jan-07 13:23 
GeneralRe: Make a wrapped win32-dialog modal Pin
AlexZieg7126-Jan-07 22:47
AlexZieg7126-Jan-07 22:47 
AnswerRe: Make a wrapped win32-dialog modal Pin
AlexZieg7127-Jan-07 3:37
AlexZieg7127-Jan-07 3:37 
QuestionFinding word in textbox Pin
conemajstor26-Jan-07 10:26
conemajstor26-Jan-07 10:26 
AnswerRe: Finding word in textbox Pin
Christian Graus26-Jan-07 10:33
protectorChristian Graus26-Jan-07 10:33 
GeneralRe: Finding word in textbox Pin
conemajstor26-Jan-07 10:35
conemajstor26-Jan-07 10:35 
GeneralRe: Finding word in textbox Pin
Christian Graus26-Jan-07 10:40
protectorChristian Graus26-Jan-07 10:40 
AnswerRe: Finding word in textbox Pin
engsrini27-Jan-07 22:39
engsrini27-Jan-07 22:39 
QuestionFiling Combobox with alphabet Pin
conemajstor26-Jan-07 8:34
conemajstor26-Jan-07 8:34 
GeneralRe: Filing Combobox with alphabet Pin
MoustafaS26-Jan-07 8:41
MoustafaS26-Jan-07 8:41 
GeneralRe: Filing Combobox with alphabet Pin
conemajstor26-Jan-07 8:45
conemajstor26-Jan-07 8:45 
GeneralRe: Filing Combobox with alphabet Pin
ednrgc26-Jan-07 9:16
ednrgc26-Jan-07 9:16 
AnswerRe: Filing Combobox with alphabet Pin
bobsugar22226-Jan-07 8:50
bobsugar22226-Jan-07 8:50 
AnswerRe: Filing Combobox with alphabet Pin
Guffa26-Jan-07 9:18
Guffa26-Jan-07 9:18 
GeneralRe: Filing Combobox with alphabet Pin
bobsugar22226-Jan-07 9:22
bobsugar22226-Jan-07 9:22 

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.