Hi,
I have a scenario where the mail has to be sent on button click to the respective user when the "Not Selected" option is selected from the dropdown list. The mail is going on "Non-Selected" option, but the mail is also going when I select the "Selected"
option on button click. Please see the code for your reference:-
HTML:-
<asp:Button ID="btnRejection" runat="server" Text="Save Selection" OnClick="btnRejection_Click" CausesValidation="false" />
Code behind
Row data bound and SelectedIndex changed code:-
protected void gv_Applicants_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
DropDownList ddl = e.Row.FindControl("ddlSelection") as DropDownList;
if (ddl != null)
{
ddl.Selecte ...
Go to the complete details ...