SEO | Link Popularity | Search Engine Consulting | SEO Tutorial | SEO Tools | SEO Forum
Reply
 
Thread Tools Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
  #11  
Old 11-01-2005, 03:40 PM
banaax banaax is offline
SEO Junior and a half
 
Join Date: Oct 2005
Posts: 42 banaax is on a distinguished road
So I can't decide if i'm going to use java servlets or asp.net2.0, I found a hoster for servlets that is about $25 a month, then i'm not sure if i'm going to run into bandwidth issues constantly running the servlet

Do you guys know where I can get hosting for asp.net2.0? if i have hosting for asp.net will 2.0 automatically work or am i going to have to wait for hosters to get around to adding 2.0?
Reply With Quote
  #12  
Old 01-04-2006, 07:08 PM
BSolveIT's Avatar
BSolveIT BSolveIT is offline
SEO
 
Join Date: May 2005
Location: England, UK
Posts: 621 BSolveIT has a spectacular aura aboutBSolveIT has a spectacular aura about
Send a message via MSN to BSolveIT
Hello!

I actually just did a post about exactly this in a different forum (oops!).

Here's some ASP code I use to retrieve and display Google News from their RSS feed using XML:

<%
' *** In the quotes below, enter the keyphrase for the sort of news you want to display.
' *** These become your keywords!
NewsTopic = server.URLEncode("Search Engine Marketing is Easy")

'** Retrieve RSS News Feed
set mydoc = server.createobject("Microsoft.XMLDOM")
mydoc.setProperty "ServerHTTPRequest", true
mydoc.async = false
mydoc.load("http://news.google.com/news?hl=en&ned=us&ie=UTF-8&q=" & NewsTopic & "&output=rss")

'** Set the content type
Response.ContentType = "text/html"

set item_root = mydoc.documentElement
set item_nodelist = item_root.getElementsByTagName("item")

'** You could set some styles if you haven't already
Response.Write "<style>body { font-family: arial; font-size: 10pt; }</style>"

'** you could save each item(x) into a database, or whatever
'** The following just displays it.
'**
For Each item_elem In item_nodelist
Response.Write item_elem.childNodes.item(4).text
next

'** To retrieve headlines and URL's without formatting it's simply:
'** item_elem.childNodes.item(0).text
'** and ...
'** item_elem.childNodes.item(1).text
'** etc...
%>

Easy! ;-)
Reply With Quote
  #13  
Old 01-04-2006, 09:01 PM
Paz's Avatar
Paz Paz is offline
SEO GUY Moderator
 
Join Date: Sep 2004
Location: Antalya, Turkey
Posts: 4,112 Paz has a spectacular aura aboutPaz has a spectacular aura about
Paz hits CTRL + D ......
__________________
10.3 million entries for Hotels in Turkey but I'm still chipping away.
Reply With Quote
  #14  
Old 01-05-2006, 05:24 AM
BSolveIT's Avatar
BSolveIT BSolveIT is offline
SEO
 
Join Date: May 2005
Location: England, UK
Posts: 621 BSolveIT has a spectacular aura aboutBSolveIT has a spectacular aura about
Send a message via MSN to BSolveIT
Should I not have posted this code here?

Sorry, I know it's a bit of a repeat of a post I did elsewhere, but I did try to delete my original upon realising here would be a better place for it. It wouldn't let me delete it though.

It's a really good bit of handy code though. Just keen to share it, and answer the problem posed here.

I'll try to be more careful.
Reply With Quote
  #15  
Old 01-05-2006, 11:04 AM
dilligaf's Avatar
dilligaf dilligaf is offline
SEO GUY Moderator
 
Join Date: May 2004
Location: Tampa Bay
Posts: 2,850 dilligaf has a spectacular aura aboutdilligaf has a spectacular aura about
No worries BSolveIT, Paz was giving you a compliment.
__________________
OverSite
Reply With Quote
  #16  
Old 01-05-2006, 12:44 PM
BSolveIT's Avatar
BSolveIT BSolveIT is offline
SEO
 
Join Date: May 2005
Location: England, UK
Posts: 621 BSolveIT has a spectacular aura aboutBSolveIT has a spectacular aura about
Send a message via MSN to BSolveIT
Ahaaaa! In that case... permission to look smug?
Reply With Quote
  #17  
Old 01-07-2006, 09:36 AM
Paz's Avatar
Paz Paz is offline
SEO GUY Moderator
 
Join Date: Sep 2004
Location: Antalya, Turkey
Posts: 4,112 Paz has a spectacular aura aboutPaz has a spectacular aura about
haha sorry I missed your post.

I meant that I bookmarked this posting with a CTRL +D ... I have an asp site and I want to set up an rss feed on it.

and if you'd have looked in your control panel, you'd have seen a little more green rep too!

Cheers,
Paz.
__________________
10.3 million entries for Hotels in Turkey but I'm still chipping away.
Reply With Quote
  #18  
Old 01-07-2006, 03:21 PM
BSolveIT's Avatar
BSolveIT BSolveIT is offline
SEO
 
Join Date: May 2005
Location: England, UK
Posts: 621 BSolveIT has a spectacular aura aboutBSolveIT has a spectacular aura about
Send a message via MSN to BSolveIT
Ahhaaaa! Sorry - I'm not so much an SEO newbie, as a forum virgin. ;-)

Mind you, that raises a question or two. Er... where do I check my rep exactly? hehe - seriously, I've no idea.

Also, how long do I stay an SEO junior? Is that a reputation based doofer?

And... to stay on topic, and because I'm interested, how have you used my code? I have a suggestion, which I've implemented on my site:

This is actually not complicated, but might seem it at first glance - trust me, it isn't:

If you want lots of different feeds on different pages of your site, for example, you might have pages that deal with different subjects (or use different keywords at least):

e.g.
Used Cars in Outer Mongolia, plus U2 fan News (I think their big in Asia too)

All you have to do is create an ASP page to handle the RSS news retrieval as in my initial post, and #include that file in the presented page.

However, in the presented page, you must also have a way to pass parameters to the included page, such as session variables.

i.e.
<%
session("topic") = "Used Cars in Outer Mongolia"
session("max")= 5
%>

This would then work with the modified original code thus:

<%

NewsTopic = server.URLEncode(session("topic"))
MaxCount = cint(session("max"))

set mydoc = server.createobject("Microsoft.XMLDOM")
mydoc.setProperty "ServerHTTPRequest", true
mydoc.async = false
mydoc.load("http://news.google.com/news?hl=en&ned=us&ie=UTF-8&q=" & NewsTopic & "&output=rss")

Response.ContentType = "text/html"

set item_root = mydoc.documentElement
set item_nodelist = item_root.getElementsByTagName("item")

count = 0

response.write "<h1>" & session("topic") & "<BR><i>News by Google</i></h1>"
For Each item_elem In item_nodelist
count = count + 1
'** the following is to change the color of an display item
article = replace(item_elem.childNodes.item(4).text, "#6f6f6f", "#FFCCCC")
'** and this prevents the display of any images which screws up my display formatting
article = replace(article, "width=80", "style='display: none;'")
Response.Write article
if count = MaxCount then
exit for
end if
next
%>


et..., voila! You have a news topic for every page of your site whre you want to include it!

You can find an example of this on our site.

It can be a tad more apparant to IE users, if you click to open our Xpress Contact system (But please stop sending us pointless 'I'm testing' messages!).
If you open the Xpress Contact system, you'll find some more of our internal link pages.

At this point, I have to stop and think.... have I given away all our gems yet? hehe... not even close.

Stay tuned...


Last edited by BSolveIT : 01-07-2006 at 03:47 PM.
Reply With Quote
  #19  
Old 01-07-2006, 10:40 PM
Paz's Avatar
Paz Paz is offline
SEO GUY Moderator
 
Join Date: Sep 2004
Location: Antalya, Turkey
Posts: 4,112 Paz has a spectacular aura aboutPaz has a spectacular aura about
Hi,

I haven't used the code yet, but I will probably give it a try next week and let you know how it goes.

You can have a look at your rep in your control panel by following the link "User CP" at the top of this page. You'll see a list of subscribed threads, and your rep underneath.

Going from "seo junior" to "seo junior and a half" is quite arbritary - 1 more post and you'll be "promoted"!

Cheers,
Paz.
__________________
10.3 million entries for Hotels in Turkey but I'm still chipping away.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Login/Register
User Name
Password
Remember Me?

Forum Links
Forum Home
SEO Forum
Internet Marketing Forum
Web Design Forum
Web Hosting Forum
Programming Forum
SEO Chat

Quick Links
Forum Home
New Posts
Mark Forums Read
Open Buddy List
User Control Panel
Edit Avatar
Edit Profile
Edit Options
Miscellaneous
Subscribed Threads
My Profile

Search Forums

Advanced Search
All times are GMT -8. The time now is 03:24 PM.


Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.