TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
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();
Reply
Answers (
0
)
System.Data.Common.DataRecordInternal'
how we can convert label text 400.0000 to 400.00