apurv indapurkar

apurv indapurkar

  • 1.5k
  • 291
  • 15.8k

System.Data.Common.DataRecordInternal'

Apr 25 2014 8:33 AM
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();