Click here to Skip to main content
15,793,547 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I am trying to page an RSS page from asp maker. I keep getting the following error:

This page contains the following errors:
error on line 18 at column 102: Opening and ending tag mismatch: font line 0 and description
Below is a rendering of the page up to the first error.
test1 test2 Vacaturenummer: Vacaturenummer Functie: Vacature Omschrijving
Here are my codes:

The RSS.aspx.cs file:

protected void GetChatmsg(int SVID, int RVID)
        using (SqlCommand cmd = new SqlCommand())
            cmd.CommandText = "spr_Visitor_View_UserChatMsgs";
            cmd.Parameters.AddWithValue("@SVID", SVID.ToString());
            cmd.Parameters.AddWithValue("@RVID", RVID.ToString());
            //System.Data.DataTable dt = DBHelper.SqlExecuteReader(cmd);

            RSS.DataSource = DBHelper.SqlExecuteReader(cmd);
    catch (Exception ex)
        throw ex;

private void Page_Load(System.Object sender, System.EventArgs e)
	_vacatureID = Request.QueryString("id");
	//Selectcommand Vacature Samenstellen
	_selectCommandVacature.CommandText = "SELECT Vacature_id,Vacature_functie,Vacature_datum,Vacature_tekst FROM Vacature WHERE Vacature_laatste_vacaturestatus=1 OR Vacature_laatste_vacaturestatus=4 ORDER BY Vacature_datum DESC";
	_selectCommandVacature.Connection = _con;
	try {
		_dataReader = _selectCommandVacature.ExecuteReader();
		while (_dataReader.Read) {
			LbLVacatureOmschrijving.Text = welkom1;
			LblVacaturenr.Text = welkom 2;
			//LblVacaturenr2.Text = _dataReader("vacature_id").ToString()
	} finally {

The rss.aspx file:

<%@ Page Language="C#" ContentType="text/xml" AutoEventWireup="true" CodeBehind="RSS.aspx.cs"  %>

           <rss version="2.0"> 
                <title><font class="tableclass">Vacaturenummer:</font> <asp:label id="LblVacaturenr" runat="server">Vacaturenummer</asp:label></title>
                <description><font class="tableclass">Functie: <asp:label id="LbLVacatureOmschrijving" runat="server">Vacature Omschrijving</asp:label></description>

The rss.aspx seems to be right, since I almost copied it from another file.

But I have no idea what to do with the RSS.aspx.cs file, if anyone could help me I would really appreciate it.

Kind regards,


1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900