How to display "No Rss feeds new availabe" when there are no FEEDS

  • Thread starter Patrick Olurotimi Ige
  • Start date
P

Patrick Olurotimi Ige

I'm using the Function below to get XML feeds
and calling the XML doc in

But if they are no availabe rss feeds i would like to display
"Sorry No Headlines/News at the moment"

Any ideas


page_load like:-

myXml.Document = getXML("http://www.crn.com.au/rss.aspx?SCID=9")

---------------------------------
Function getXML(ByVal sourceFile As String)
Dim myRequest As System.Net.WebRequest =
System.Net.WebRequest.Create(sourceFile)
Dim myResponse As System.Net.WebResponse =
myRequest.GetResponse()
Dim myReader As System.Xml.XmlTextReader = New
System.Xml.XmlTextReader(myResponse.GetResponseStream())
Dim doc As System.Xml.XmlDocument = New System.Xml.XmlDocument

doc.Load(myReader)
getXML = doc



myResponse.Close()

myReader.Close()

End Function
 
C

clintonG

At the moment I would suggest researching the use of the AJAX
methodology --- A(synchronous) JA(vascript) X(ml) --- which will allow you
to refresh part of a page without a noticeable trip to the server (no page
flash and no page refresh).

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
 
P

Patrick Olurotimi Ige

Thanks ClntonG I had a look and it looks interesting alhtough i haven't
tested it yet
Patrick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,733
Messages
2,569,440
Members
44,832
Latest member
GlennSmall

Latest Threads

Top