0
Answer

System.Data.Common.DataRecordInternal'

Ask a question
when I upload code in IIs they give me error System.Data.Common.DataRecordInternal
 
code :-
Default.aspx page 
<asp:Repeater ID="RepeaterRSS" runat="server">
<HeaderTemplate>
<rss version="2.0">
<channel>
<title>JobTitle</title>
<description>
JobDescription
</description>
</HeaderTemplate>
<ItemTemplate>
<item>
<description><%# DataBinder.Eval(Container.DataItem, "ChannelID ")%></description> 
<title>
</item>
</ItemTemplate>
<FooterTemplate>
</channel> </rss>
</FooterTemplate>
</asp:Repeater>
 
In Code Behinde
string connString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
// Create SqlConnection object
SqlConnection sqlConn = new SqlConnection();
sqlConn.ConnectionString = connString;
string sqlQuery = " select ChannelID from CareerCenters ";
SqlCommand cmd = new SqlCommand();
cmd.Connection = sqlConn;
cmd.CommandType = CommandType.Text;
cmd.CommandText = sqlQuery;
// open connection and then binding data into RepeaterRSS control
sqlConn.Open();
DataTable dt = new DataTable();
SqlDataAdapter da = new SqlDataAdapter(cmd);
da.Fill(dt);
RepeaterRSS.DataSource = dt;
RepeaterRSS.DataBind();
sqlConn.Close();