|
I tried the VB board but maybe I'll have better luck here.
I want to write a windows service application that reads a web page. That web page requires that the client can process javascript.
Has anyone successfully implemented Javascript with System.Net.WebClient?
I tried the code from the article "A simple .NET based WebClient with JavaScript support" but that code crashes with an inner JScriptException. Its acknowledged by the author and it looks like the trail ends there. According to microsoft the Microsoft.JScript.Vsa.VsaEngine used in that project is deprecated.
What is the current working solution for processing webpages in code?
This is what my code looks like. The web page at the URL I am calling uses javascript to set a cookie in order to prove that Javascript is running. It doesn't look like this code can do it. I can set cookies in advance but I can't seem to duplicate the javascipt setting a cookie. Help!
Dim webClient As Net.WebClient = New System.Net.WebClient
webClient.Credentials = System.Net.CredentialCache.DefaultCredentials
webClient.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705")
webClient.Headers.Add(Net.HttpRequestHeader.Cookie, "aCookie:aCokievalue")
Try
Dim data As Stream = webClient.OpenRead(sURL)
Dim reader As New StreamReader(data)
Dim s As String = reader.ReadToEnd()
'response = webClient.DownloadData(sURL)
'Return Encoding.ASCII.GetString(response)
Return s
Catch ex As Exception
Return ""
End Try
|
|
|
|
|
Could you use the JScriptCodeProvider[^] class for this?
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I have a PC program that updates via a web service. It has been working just fine for my users for a while, but now I have one user who is getting this error:
Remote server return an error 405 method not allowed.
I'm able to run the exact same web service as this user, but I do not get the error. So I'm thinking it's a setting on his machine or through his internet provider. Where can I even start to narrow it down? Anyone have any ideas?
I would appreciate any advice you could give me.
|
|
|
|
|
Have you checked that his firewall isn't getting in the way?
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi,
Can anybody tell me how to add support for a new languages without ever recompiling the neutral assembly that contains all the application code.After deploying the application I created a satlite assembly for a new language and uploaded to the bin directory of the application.But if I change the application culture it is not reading the values form the new satlite assembly.
Thanks&Regards,
Prajin
|
|
|
|
|
No cross posting.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
And a bit of emphasis on SpellCheck before submission also would help him. Isn't it?
|
|
|
|
|
Four posts in three forums...you are not going to make friends that way.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
|
Dont know that it is a crime. Any comment on the question asked???
|
|
|
|
|
When you spam the boards, the replies you get asking you not to, tend to decrease the odds of a meaningful reply. One more reason to only ask in the right forum.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i need to know if i host my website including some meta content,google or yahoo searching engine catch my url directly, please i need some answer cause when i asked a hosting company they told me they want 600$ to do that and i knew that i can do it for free
thank in advance
bachirium
|
|
|
|
|
The issue you are talking about is called Search Engine Optimisation (SEO), and while some companies charge you for this advice there are plenty of articles on it. You may want to start here[^] to get more information.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
They call it as Search Engine Optimization and rate card for each of the organization that offers this service widely varies. But with little effort, you can optimize your search to a greater extent. You can Google for SEO related articles and they are aplenty.
|
|
|
|
|
|
i want to know more about chm files(its structure and how to generate it).
i want to generate it without any other program. just by windows tools or by developing language(C#.net). i'm programmer and i know that but i want to know from where to start...
thanks
Thanks
Rastgar
|
|
|
|
|
I think that you need the chm compiler from microsoft to create the chm file. The html code that goes in it can of course be created anyway you like.
Some reading:
wikipedia: chm[^]
---
single minded; short sighted; long gone;
|
|
|
|
|
|
|
If anyone has experienced similar problems and has spotted a solution, please help me out as I'm running out of hair to pull off.
when visiting here[^] and clicking on "Articles" on the left menu, then hitting the back browser causes the web page to lose alignment temporarily until refreshed.
This has been noticed on Firefox 2.0.0.x (including the latest 2.0.0.5)
It's a Joomla CMS (PHP based cms) and custom made template.
Any ideas?
Thanks in advance.
|
|
|
|
|
I just tried it with no problems, maybe its only on your system?
"Okay, I give up: which is NOT a real programming language????"
Michael Bergman
|
|
|
|
|
Funny thing is, it used to glitch on my system and now it doesn't.
Also another system doesn't show the glitch, although it used to.
But there is one system that is displaying the glitch and i cannot seem to find any differences within the systems.
Can it be various add-ons to Firefox?
|
|
|
|
|
It could be any number of reasons but I think the problem is localized to that specific system, especially if it works on mine, works on yours and works on a 3rd system but not the 4th that tells me its not your code that's the problem (or even Firefox).
"Well yes, it is an Integer, but it's a metrosexual Integer. For all we know, under all that hair gel it could be a Boolean."
Tom Welch
|
|
|
|
|
It's one of these wierd cases where I still find other systems that have the problem.
It's not only down to one, but I've seen another 2-3 systems act up as well.
Thanks for your help though.
|
|
|
|
|
There are six css errors when viewing the page. Try to fix those, and see if it gets any better.
---
single minded; short sighted; long gone;
|
|
|
|