when I upload code in IIs they give me error System.Data.Common.DataRecordInternal
code :-
Default.aspx page
JobDescription
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();
Replies
Know the answer? Post it — somebody with the same question will find it here.