What am I doing wrong?
feed.ashx
public class feed : IHttpHandler {
public void ProcessRequest (HttpContext context)
{
context.Response.ContentType = "text/xml";
context.Response.ContentEncoding = System.Text.Encoding.UTF8;
XElement el = new XElement("rss", new XAttribute("version", "2.0"),"Xml Generation Goes Here );
XDocument doc = new XDocument(new XDeclaration("1.0", "utf-8", "yes"), el);
context.Response.Write(doc.ToString());
}
public bool IsReusable {
get {
return false;
}
}
}
rss.aspx
<head runat="server">
<title>Rss</title>
<link rel="alternate" type="application/rss+xml" title="Rss" href=&qu ...
Go to the complete details ...