Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8863105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:53:37+00:00 2026-06-14T15:53:37+00:00

I have implemented the code for RSS in asp.net 3.5. I can see the

  • 0

I have implemented the code for RSS in asp.net 3.5. I can see the RSS feed in my application in Firefox.

But I couldn’t manage to load the RSS feed in Google chrome browser. It only shows the XML which I had written in my code.

How can I make my code Browser independent?

<rss version="2.0">
    <channel>
    <title>Demo Site</title>
        <link>http://www.ABC.com</link>
<asp:repeater id="rptRss" runat="server">
    <ItemTemplate>
        <item>

             <% if (Global.SessionData.Language == Convert.ToInt16(Global.GlobalCls.Language.Arabic))
   {%>
    <title>
            <%# RemoveIllegalCharacters(DataBinder.Eval(Container.DataItem, "TitleAr"))%></title>

            <description><%# RemoveIllegalCharacters(DataBinder.Eval(Container.DataItem, "DescriptionAr"))%></description>
       <%}
   else
   {%> 
     <title>
            <%# RemoveIllegalCharacters(DataBinder.Eval(Container.DataItem, "Title"))%></title>

            <description><%# RemoveIllegalCharacters(DataBinder.Eval(Container.DataItem, "Description"))%></description>     
        <%}%>                     
    </item>

    </ItemTemplate>     
    </asp:repeater>
    </channel>
</rss>

Here is my code behind. I have just bind the repeater and call this function to remove illegal characters.

protected string RemoveIllegalCharacters(object input)
    {
        // cast the input to a string
        string data = input.ToString();
        Cache.Remove("TitleAr");
        Cache.Remove("DescriptionAr");
        Cache.Remove("Title");
        Cache.Remove("Description");
        // replace illegal characters in XML documents with their entity references
        data = data.Replace("&", "&amp;");
        data = data.Replace("\"", "&quot;");
        data = data.Replace("'", "&apos;");
        data = data.Replace("<", "&lt;");
        data = data.Replace(">", "&gt;");

        return data;
    }

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T15:53:38+00:00Added an answer on June 14, 2026 at 3:53 pm

    I have set the ContentType of the @Page directive to “text/xml” to indicate that the output of the rss.aspx page is an XML document. It’s working fine for me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have implemented code like here but it's not working for iOS 5.0, it
I have implemented the code in Devise call backs in my application controller. First
I have implemented one matrix multiplication with boost::numeric::ublas::matrix (see my full, working boost code
I have my application designed with Repository pattern implemented and my code prepared for
I have implemented following code in my application. -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
Hi I have implemented code for parsing the below response as follows but it
I have Implemented Code to download a File from Internet, But I am getting
I would like to handle screen orientation in a sample application.I have implemented code
I have implemented a code for user validation in VB.NET. When I enter the
I have implemented this code, but fail at compilation (VC2008 Express Ed.) : Now

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.