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
Nilesh Patil
NA
3k
115.4k
how to assign string value to repeater label
Nov 17 2017 2:06 AM
Hi,
I am try to assign string value to repeater control but it gives error Object refernce not set to an insant of object.
Below is my code
foreach (DataRow dRow in dt_OwnerFilter.Rows)
{
if (dt_OwnerFilter.Rows.Count > 0)
{
string htmlcode = "";
htmlcode = "<a class='btn btn-primary' onclick='fnShow(" + dRow["PropertyDetailsId"] + ")'> " + i + "</a>";
Label status = (Label)b.NamingContainer.FindControl("lbldata");
status.Text += htmlcode + "<br>"; //Here is error
}
i = i + 1;
}
Reply
Answers (
1
)
push notification not working in TLS 1.1
How to call Javasrcipt fuction in label tag with paramaters