Click here to Skip to main content
15,896,153 members

Comments by PTG.Jake (Top 18 by date)

PTG.Jake 26-Feb-16 13:00pm View    
so..like this?

Dim GridView4 As GridView = CType(FindControl("GridView3").FindControl("GridView4"), GridView)
For Each row As GridViewRow In GridView4.Rows
Dim CheckBox11 As CheckBox = CType(row.FindControl("CheckBox1"), CheckBox)
Dim Label100 As Label = CType(row.FindControl("Label100"), Label)
Dim Label101 As Label = CType(row.FindControl("Label101"), Label)
Dim Label102 As Label = CType(row.FindControl("Label102"), Label)
If CheckBox11.Checked = True Then
cval2 = ""
Else

End If
Next
PTG.Jake 29-Dec-14 16:40pm View    
Deleted
Is this rowdatabound event?

I'd rather use a label and set it visible to false.
<asp:label ID="lblGenderid" runat="server" Value='<%# Eval("Gender_Id") %>' visible="false" />

then:
Dim lbl as Label = TryCast(e.row.FindControl("lblGenderid"), label)
PTG.Jake 28-Nov-14 13:12pm View    
great yes I used the example from jsfiddle, but I guess I was obtaining the ID incorrectly
PTG.Jake 31-Oct-14 8:51am View    
Sample records before update:

tnumid, tnum, tnumstatus
1, 1000, ready
2, 1001, ready

table after update:
tnumid, tnum, tnumstatus
1, 1000, Hold
2, 1001, Hold

instead of stopping on the first value for tnumstatus and updating it then exiting the while, it updates the first value and second value...

Yes ATjong TNumID is primary key

I should also mention this is happening in a private sub dothis()

If Not IsPostBack Then
dothis()
Else

End If
PTG.Jake 29-Oct-14 23:49pm View    
I have debugged and found everything is fine until the update statement. I just don't know why it's updating 2 rows instead of the 1????