DetailsView - send email

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Seth Williams

    #1

    DetailsView - send email

    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.



  • Steve C. Orr [MCSD, MVP, CSM, ASP Insider]

    #2
    Re: DetailsView - send email

    How about getting it from the database?

    --
    I hope this helps,
    Steve C. Orr,
    MCSD, MVP, CSM, ASPInsider




    "Seth Williams" <sm@here.comwro te in message
    news:%23bP4ISEG JHA.3408@TK2MSF TNGP04.phx.gbl. ..
    >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.
    >
    >
    >

    Comment

    • Seth Williams

      #3
      Re: DetailsView - send 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)




      "Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <Steve@Orr.netw rote in
      message news:8EC4764C-F392-4439-880E-059481D6F019@mi crosoft.com...
      How about getting it from the database?
      >
      --
      I hope this helps,
      Steve C. Orr,
      MCSD, MVP, CSM, ASPInsider


      >
      >
      "Seth Williams" <sm@here.comwro te in message
      news:%23bP4ISEG JHA.3408@TK2MSF TNGP04.phx.gbl. ..
      >>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.
      >>
      >>
      >>
      >

      Comment

      Working...