DetailsView - send email

  • Thread starter Thread starter Seth Williams
  • Start date Start date
S

Seth Williams

I have a DetailsView, with a checkbox (from a Bit field in the database) - -
the bit field is 'Authorized'
What I'm trying to figure out (I'm running the Select and Update through a
SQL DataSource) I can, when the checkbox becomes checked, and therefore
updates the database, I need to send an email telling them they're
authorized to use the site now. (not using built in security controls)

I know how to send an email, but I don't know how to 'get' the value of the
changed textbox, so I can then send the email.
 
It's a thought, but I didn't want to make a second call to the db, after
updating it.
Besides, I am trying, at this point, to learn how to use FindControl with
the detailsview - - I've got this, but apparently, it's not recognizing the
checkbox:
Dim ChkAuth As CheckBox = CType(dv1.Rows(0).FindControl("Authorized"),
CheckBox)
 
Back
Top