net application. I have one gridview with checkboxes.Whenever checkbox is checked i want to send email to users. My columns of gridview are id,name,emailid etc. Whenever checkbox is checked i want to send email. I written javascript code to catch up all the emailids from gridview and pushing all the email ids to the array. I am confusing how to take these id's to the server side. This is my button.
<asp:Button ID="Button1" class="submitLink blueButton" runat="server" Text="GETID" OnClientClick="javascript:sendEmail()" OnClick="Button1_Click" />
Using below line of code I am able to get the required email id's
$('#<%= gdvRegretletter.ClientID %> input[type="CheckBox"]').each(function () {
if ($(this).closest('tr').find('input[type="checkbox"]').prop("checked") == true)
email.push($(this).closest('tr').find('td:eq(3)').text().trim());
});
Array email will be capturing all the required email id's but i want these values inside the Button1_Click event in server side. May i have some idea to achieve this? Thank you for your time.