Findcontrol in gridview rowupdating event
it would only do a query once user enters strings to textbox or enters text file to parse. Also, i already did the msgbox() to output controls in gridview in row updating event to make sure the gridview is in edititemtemplate (or so i think it is) and didn't show any control id.
Also, the fourth column is already a template field.
when i use smart tag, upon loadng of the page, it queries all data in the db and show it to the page i don't want that to happen.
i mean i could hide the gridview upon loading but still, it would query the sql db and i don't want the server to have that burden.
If you run the code above, and check one of the checkboxes, you will see that the code recognizes that the checkbox is now checked.I have a gridview with template field on column 2 and 4. i've also used msgbox to output all column four's control ID and it's returning nothing.I need to get the control (dropdownlist and textbox) on these columns so that I could get their values to update SQL DB. Whois FROM tb_entity INNER JOIN tb_comments ON tb_= tb_comments. I think you're referring to Item template here.Entry, (SELECT avg(rating) FROM tb_comments WHERE " _ & "tb_comments.entry=tb_entity.id) as Rating, tb_kind. Info " _ & "FROM tb_entity INNER JOIN tb_hijack ON tb_= tb_hijack. Kind = tb_" _ & "WHERE tb_entity.entry='" & strline.Replace("'", "''") & "'" Else SQL = SQL & " OR tb_entity.entry='" & strline.