I have a specific requirement that involves verifying whether the user is repeatedly inputting the same Project
and Survey No
.
An alert should be triggered if the same combination is entered twice upon button click.
Below is the HTML code snippet:
<td class="label">
Project :
</td>
<td class="field" style="width: 10%;">
<asp:DropDownList ID="ddlProject" runat="server" Width="80%" AutoPostBack="true"
OnSelectedIndexChanged="ddlProject_SelectedIndexChanged">
<asp:ListItem Value="0">--Select--</asp:ListItem>
</asp:DropDownList>
</td>
<td class="label">
Survey No :
</td>
<td class="field">
<asp:TextBox ID="txtSurvey1" runat="server" Width="80%" ReadOnly="true"></asp:TextBox>
</td>
I attempted to use the link below, but it only worked for one textbox value, not the combination as required in my case.
check duplicate data with javascript
Please advise on how to address the combination aspect.