J
|
Jane 3/12/2009 |
Hi, |
B
|
bhicks11 author 3/13/2009 |
Hi, where do you want to add this button?
|
B
|
bhicks11 author 3/13/2009 |
I would like to have a button to email a notification to the customer if we want. Not automatically but if we want. Has anyone done something like this?
|
J
|
Jane 3/13/2009 |
Hi,
<A onclick="frmAdmin.a.value='update'; frmAdmin.submit(); return false;" href="#">email</A>
'Delete selected records if Request.Form("a") = "delete" then BeforeDelete = True exit function end if 'email selected records if Request.Form("a") = "update" then 'send email here 'select values are in the deleted_values array BeforeDelete = False end if |
B
|
bhicks11 author 3/13/2009 |
Hi, here are some tips:
|
B
|
bhicks11 author 3/13/2009 |
Just to be sure: I am trying to send the email when I ADD an item. Should I put this BEFOREDELETE or BEFOREADD? Thanks.
|
B
|
bhicks11 author 3/13/2009 |
Hi, here are some tips:
|
![]() |
Sergey Kornilov admin 3/13/2009 |
Simple email hyperlink is a part of HTML standard. <A HREF="mailto:professorname@departmentwebsite.edu?subject=Question">Question for professor!</A> |
B
|
bhicks11 author 3/14/2009 |
Simple email hyperlink is a part of HTML standard. You can add this in Visual Editor (html mode) <A HREF="mailto:professorname@departmentwebsite.edu?subject=Question">Question for professor!</A>
|
J
|
Jane 3/16/2009 |
Hi,
|
B
|
bhicks11 author 3/16/2009 |
Hi, please see my answers below:
|
J
|
Jane 3/16/2009 |
Hi, str = "select FieldName from TableName" Set rstmp = server.CreateObject("ADODB.Recordset") rstmp.open str,dbConnection Response.Write "<input type=button class=button onclick=""mailto:" & rstmp("FieldName") & "?subject=Question"" value=""Question for professor!"">" rstmp.close set rstmp=nothing |
B
|
bhicks11 author 3/16/2009 |
Hi, to select value from database use custom event (Insert ASP code snippet option on the Visual Editor tab). Here is just a sample:
|
![]() |
Sergey Kornilov admin 3/16/2009 |
Use "Insert ASP code snippet" button in visual editor and paste this code there. |