<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'How do I update or delete data on Repeater control using checkboxes?' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'How do I update or delete data on Repeater control using checkboxes?' posted on the 'Active Server Pages' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Wed, 23 May 2012 07:57:37 -0700</pubDate>
    <lastBuildDate>Wed, 23 May 2012 07:57:37 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>How do I update or delete data on Repeater control using checkboxes?</title>
      <link>http://www.programmersheaven.com/mb/aspfaq/408038/408038/how-do-i-update-or-delete-data-on-repeater-control-using-checkboxes/</link>
      <description>Hi to every one... &lt;br /&gt;
&lt;br /&gt;
I am developing a small ASP.NET application. It has a page where visitor can post comments, a page for the administrator to view posted comment. I display the comments on a (data) Repeater control with two checkboxes for each record to either mark posts as read or to delete the post; with both enabled property set to true. &lt;br /&gt;
&lt;br /&gt;
For a test, I added a label to tell me the selected (checkbox) item. But each time I check any of the checkboxes, I don't get the expected result. This is my code-behinde file under the Page_Load event handler: &lt;br /&gt;
&lt;br /&gt;
For i As Integer = 0 To rptPosts.Items.Count - 1 &lt;br /&gt;
Dim row As RepeaterItem = rptPosts.Items(i) &lt;br /&gt;
Dim isRead As Boolean = CType(row.FindControl("chkRead"), CheckBox).Checked &lt;br /&gt;
Dim isDeleted As Boolean = CType(row.FindControl("chkDelete"), CheckBox).Checked &lt;br /&gt;
Dim MessageLabel As Label = CType(row.FindControl("lblMessage"), Label) &lt;br /&gt;
If isRead Then &lt;br /&gt;
MessageLabel.Text = "Read checked" &lt;br /&gt;
ElseIf isDeleted Then &lt;br /&gt;
MessageLabel.Text = "Delete checked" &lt;br /&gt;
End If Next &lt;br /&gt;
&lt;br /&gt;
Please help me out.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/aspfaq/408038/408038/how-do-i-update-or-delete-data-on-repeater-control-using-checkboxes/</guid>
      <pubDate>Wed, 21 Oct 2009 07:43:56 -0700</pubDate>
      <category>Active Server Pages</category>
    </item>
  </channel>
</rss>
