I want to pull some data from the database into repeater, but I am not able to get the ID of the repeater in code-behind. Please help what might be the possible reason ??

See my code though

<asp:Repeater ID="rptNews" runat="server">
                    <div class="Newsdiv">
                        <p class="Newspara"><a href="#"><%#Eval("title")%></a></p>
                        <p class="NewsDate1"><a href="#">Click here</a> to know more</p>

In Codebehind:-

I want to call ID rptNews in the codebehind, but it is not coming

Related posts

Recent Viewed