Click here to Skip to main content
15,920,801 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Help Passing Textbox value through ActionLink Pin
Not Active21-Oct-09 14:43
mentorNot Active21-Oct-09 14:43 
GeneralRe: Help Passing Textbox value through ActionLink Pin
Jason Wilczak21-Oct-09 15:05
Jason Wilczak21-Oct-09 15:05 
QuestionWeb framework Pin
bam_usic21-Oct-09 13:30
bam_usic21-Oct-09 13:30 
AnswerRe: Web framework Pin
Abhijit Jana21-Oct-09 16:38
professionalAbhijit Jana21-Oct-09 16:38 
QuestionProblem with post back validation Pin
compninja2521-Oct-09 10:01
compninja2521-Oct-09 10:01 
AnswerRe: Problem with post back validation Pin
compninja2522-Oct-09 5:46
compninja2522-Oct-09 5:46 
QuestionHow to validate date using javascript Pin
dilipmca0421-Oct-09 7:53
dilipmca0421-Oct-09 7:53 
AnswerRe: How to validate date using javascript Pin
Abhijit Jana21-Oct-09 8:05
professionalAbhijit Jana21-Oct-09 8:05 
AnswerRe: How to validate date using javascript Pin
dan!sh 21-Oct-09 8:08
professional dan!sh 21-Oct-09 8:08 
QuestionCheckbox control in Gridview at runtime. Pin
Care Career21-Oct-09 5:28
Care Career21-Oct-09 5:28 
AnswerRe: Checkbox control in Gridview at runtime. Pin
dan!sh 21-Oct-09 5:34
professional dan!sh 21-Oct-09 5:34 
AnswerRe: Checkbox control in Gridview at runtime. Pin
Anurag Gandhi21-Oct-09 5:48
professionalAnurag Gandhi21-Oct-09 5:48 
Questionwebparts - catalog - referencing a single instance Pin
SteveBradwell21-Oct-09 4:05
SteveBradwell21-Oct-09 4:05 
QuestionHow to pass SoapHeader in .NET 2.0 for authentication to AXIS web service Pin
ajay_sp00221-Oct-09 3:18
ajay_sp00221-Oct-09 3:18 
AnswerRe: How to pass SoapHeader in .NET 2.0 for authentication to AXIS web service Pin
Not Active21-Oct-09 4:15
mentorNot Active21-Oct-09 4:15 
QuestionHow do I delete item on a Repeater control? Pin
tunsten21-Oct-09 3:08
tunsten21-Oct-09 3:08 
Hi to every one...

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.

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:

For i As Integer = 0 To rptPosts.Items.Count - 1
Dim row As RepeaterItem = rptPosts.Items(i)
Dim isRead As Boolean = CType(row.FindControl("chkRead"), CheckBox).Checked
Dim isDeleted As Boolean = CType(row.FindControl("chkDelete"), CheckBox).Checked
Dim MessageLabel As Label = CType(row.FindControl("lblMessage"), Label)
If isRead Then
MessageLabel.Text = "Read checked"
ElseIf isDeleted Then
MessageLabel.Text = "Delete checked"
End If Next

Please help me out.

Tunsten

AnswerRe: How do I delete item on a Repeater control? Pin
Not Active21-Oct-09 4:14
mentorNot Active21-Oct-09 4:14 
GeneralRe: How do I delete item on a Repeater control? Pin
tunsten21-Oct-09 6:43
tunsten21-Oct-09 6:43 
GeneralRe: How do I delete item on a Repeater control? Pin
Not Active21-Oct-09 6:52
mentorNot Active21-Oct-09 6:52 
Questionsql connection string Pin
geek_master21-Oct-09 2:52
geek_master21-Oct-09 2:52 
AnswerRe: sql connection string Pin
Covean21-Oct-09 3:11
Covean21-Oct-09 3:11 
QuestionRegarding pop-up page Pin
vijaylumar21-Oct-09 2:16
vijaylumar21-Oct-09 2:16 
AnswerRe: Regarding pop-up page Pin
dan!sh 21-Oct-09 2:27
professional dan!sh 21-Oct-09 2:27 
AnswerRe: Regarding pop-up page Pin
Anurag Gandhi21-Oct-09 5:57
professionalAnurag Gandhi21-Oct-09 5:57 
QuestionPage Expand or Page Middle [modified] Pin
Nanda_MR21-Oct-09 1:47
Nanda_MR21-Oct-09 1:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.