I have a requirement, where I want to check whether user is not inserting the same Project
, Survey No
again and again.
It should fire an alert if it enters the same combination twice on button click
Here is my HTML:-
<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 tried the below link, but it was not for the combination. It was just for one textbox value, So it was not working in my case.
check duplicate data with javascript
Kindly let me know how to deal with the combination part