I have a script which sends form values to an email using AspNetEmail.
The script was working when i was calling the script like this:
<asp:Button ID="Finish" runat="server" OnClick="sendEmail">

However, in this new web site version, when the button is pressed, to scripts are supose to run.
So i replaced the button code with this:
<asp:Button ID="Finish" runat="server" OnClick="btnFinish_Click"

I have a script which sends form values to an email using AspNetEmail.
The script was working when i was calling the script like this:
<asp:Button ID="Finish" runat="server" OnClick="sendEmail">

However, in this new web site version, when the button is pressed, to
scripts are supose to run.
So i replaced the button code with this:
<asp:Button ID="Finish" runat="server" OnClick="btnFinish_Click"

I have a script which sends form values to an email using AspNetEmail. The script was working when i was calling the script like this: <asp:Button ID="Finish" runat="server" OnClick="sendEmail">

However, in this new web site version, when the button is pressed, to scripts are supose to run. So i replaced the button code with this: <asp:Button ID="Finish" runat="server" OnClick="btnFinish_Click"

I have a script which sends form values to an email using AspNetEmail. The script was working when i was calling the script like this: <asp:Button ID="Finish" runat="server" OnClick="sendEmail">

However, in this new web site version, when the button is pressed, to scripts are supose to run. So i replaced the button code with this: <asp:Button ID="Finish" runat="server" OnClick="btnFinish_Click"

It appears that your sendEmail is expecting the sender and e arguments.
Depending upon your sendEmail sub/function you may not need these
arguments or you can pass them to the sendEmail function as such
sendEmail(s,e), I think haven't tested but hopefully you get the idea.

I have a script which sends form values to an email using AspNetEmail. The script was working when i was calling the script like this: <asp:Button ID="Finish" runat="server" OnClick="sendEmail">

However, in this new web site version, when the button is pressed, to scripts are supose to run. So i replaced the button code with this: <asp:Button ID="Finish" runat="server" OnClick="btnFinish_Click"

It appears that your sendEmail is expecting the sender and e arguments. Depending upon your sendEmail sub/function you may not need these arguments or you can pass them to the sendEmail function as such sendEmail(s,e), I think haven't tested but hopefully you get the idea.