Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8726969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:21:12+00:00 2026-06-13T08:21:12+00:00

Im having a problem with my checkbox list. I’m able to loop though it,

  • 0

Im having a problem with my checkbox list. I’m able to loop though it, but I can not seem to find that items are checked. Im coding this in VB.net 2010 and asp.net In my for each i always get False on selected.

Here is some of my code:

Protected Sub cmdSend_Click(sender As Object, e As System.EventArgs) Handles cmdSend.Click
    'Check for checked users. 
    Dim lqText As New lqAlarmAndGoDataContext

    Try
        For Each foundCheckedUser In cbMembers.Items
            If foundCheckedUser.Selected Then
                Dim objText As New tbTxtMessageQueue
                With objText
                    .TxtFrom = "txt@123.com"
                    .TxtTo = foundCheckedUser.value
                    .TxtBoddy = tbMessage.Text
                    .SentFlag = False
                End With
                lqText.tbTxtMessageQueues.InsertOnSubmit(objText)
                lqText.SubmitChanges()
            End If
          Next
    Catch ex As Exception

    End Try


End Sub
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:21:13+00:00Added an answer on June 13, 2026 at 8:21 am

    Where do you bind your data to the checkbox?

    Make sure it’s not being rebinded before the button onclick by using

    If Page.IsPostBack Then
    

    Also, make sure your viewstate are enabled

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi making a live filter function, but having a problem to send checkbox values
Having problem with the middle Div not expanding to the width http://acs.graphicsmayhem.com/images/middiv.jpg Ok, how
Here is my problem. I have a list of models that are displayed to
Here is my problem. I have a list of models that are displayed to
I'm trying to find my IIS log files and I seem to be having
I'm having a strange problem with a checkbox on one of my pages. Basically
So the problem I am currently having is that I have A drop down
I am having trouble returning only checked items from a list of items. Instead
I have a checkbox list control on my asp.net web form that I am
Today I faced a problem and I'm not able to get weather I understand

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.