View Single Post
  #71 (permalink)  
Old 08-28-2007, 04:43 AM
H2o H2o is offline
D-Web Analyst
 
Join Date: Jul 2007
Posts: 246
H2o is on a distinguished road
Default Re: ASP.NET Data Controls

Hi

I have it working now but I get an email sent for EACH row that has the check box ticked.
But What I want is only an email to be sent on update of the current row in edit mode.
So I need to remove the syntax that references "for each row".
Which bits do I remove inorder to just send email for the current row that is in edit mode.
thx
My working code is
Dim r As GridViewRow
For Each r In GridView1.Rows
Dim VarHRApproved As CheckBox = CType(r.Cells(0).Controls(0), CheckBox)
If VarHRApproved.Checked = True Then
__________________
H2O

Without us, no one can survive..
Reply With Quote