Showing posts with label view. Show all posts
Showing posts with label view. Show all posts

Monday, March 26, 2012

Please Help - HTML parsing

Hi all, i am writing an application where you can view the html code of a webpage (URL), i am using j#. does anyone know how i would go about doing this. any help would be appreciated. thanks all!Hi,
you can use Server.HtmlEncode(yourstring) for this.
Grz, Kris.
Thanks for that,
lets say i wanted to return the HTML of http://www.google.com , how exactly would i do that. thanks again for you help
Hi,
this is known as "screen scraping". Take a look at this article:Screen Scraping with ASP.NET
Grz, Kris.
Take a look at this posting:
http://forums.asp.net/1092188/ShowPost.aspx

Saturday, March 24, 2012

Please help a newbie...

I cannot for the life of me figure out why I cannot run an ASP.NET app. Everytime I try to view in browser/debug I get the error:

maps to a directory outside this application, which is not supported.

I am using Visual Studio 2003. Could someone please enlighten me on what is going wrong here. I am a newbie so if the solution is simple please forgive my ignorance...thanksI have never heard of this error, and it isn't documented in MSDN. My guess is there is a mis-configuration in IIS. Sorry I can't be more specific.
Can you show sources for the page you are trying to view? Especially parts referring to elsewhere (like trying to reference user control etc)

Maybe you can have a look at the following post:

App_GlobalResources maps to a directory outside this application, which is not supported

Hope this helps,

Regards


thanks for posting that link...that is exactly what the problem was. I had a "\" at the end of the file path for the home directory...

thanks again, you saved me

That is so coolBig Smile [:D]

I am happy you solved your problem.

Regards

Wednesday, March 21, 2012

Please help me find a solution

I need to build a web application which has these features.

1. I want to build a tree view structure which dynamically maps the dirs and sub dirs on the server. In another word, if the directory/folder structure on the server has been updated, then it shows dynamically/automatically on my web page.

2. I want user to be able to save word document as .html file under the server directory, so that when I click the node of treeview on my web page, the word document could be shown up in the right panel of the web page.

what is the best way to implement it? I have these available:

a.)asp.net /asp
b.)vb.net /vb
c.)write activex control using vb or vb.net then embed it into the web page.(I don't like activex control though)Any from a and b would do. Just remember that asp goes with vb and asp goes with vb.net, the way you have written it looks as if you may be a little confused here.