Results 1 to 2 of 2

Thread: how to get value of all selected checkbox?

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2005
    Posts
    3

    how to get value of all selected checkbox?

    Hello there,

    I am using ASP.NET with C# and facing below problem. I am not able to get values of selected checkboxes which are generated dynamically.
    Pls have a look at the image attached with the message...

    Waiting for your reply....

    Thanks,
    Paresh
    Attached Images Attached Images  

  2. #2
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: how to get value of all selected checkbox?

    When you added the control to the page you give them an ID, ie chkAdmin.
    Use the FindControl function to get this control:
    VB Code:
    1. Dim chkAdmin As CheckBox = CType(Me.FindControl("chkAdmin"), CheckBox)
    2. Dim Value As Boolean = chkAdmin.Checked
    Woof

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width