User Profile

Collapse

Profile Sidebar

Collapse
Wally McKean
Wally McKean
Last Activity: Dec 28 '11, 01:44 PM
Joined: Dec 15 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Wally McKean
    replied to Unable to selected checkbox
    Thank you for your help. I just figured it out. Once I put the checkbox if loop into a if Page.ispostback everything went through and updated as needed. You pointed me in the right direction and I really glad that there are people out there that help us that need it. Thanks again.
    See more | Go to post

    Leave a comment:


  • Wally McKean
    replied to Unable to selected checkbox
    Thank you for your help. I pasted the incorrect code after looking at your response and I had the correct findcontrol name. I have entered what you have supplied and when I run the page it bypasses the following lines:
    Code:
     If cb IsNot Nothing AndAlso cb.Checked Then
       selectedRowText.Append("row: ")
       selectedRowText.Append(index.ToString)
       selectedRowText.Append("<br />")
     End If
    ...
    See more | Go to post
    Last edited by Frinavale; Dec 16 '11, 09:30 PM. Reason: Added code tags.

    Leave a comment:


  • Wally McKean
    started a topic Unable to selected checkbox

    Unable to selected checkbox

    I am unable to update table when the users clicks on the register button. My code is listed below.

    vb:
    Code:
    Dim retstruct As RegisterCourseInfo
            Dim uN As String
    
    
            For Each row As GridViewRow In GridView1.Rows
                Dim cb As CheckBox = CType(GridView1.FindControl("ChkSelect"), CheckBox)
    
                If cb IsNot Nothing AndAlso cb.Checked Then
    ...
    See more | Go to post
    Last edited by Frinavale; Dec 16 '11, 02:54 PM. Reason: Added code tags
No activity results to display
Show More
Working...