User283571144 posted
Hi learningintern,
According to your description, I couldn't understand your requirement clearly.
Do you mean you want to prevent resubmit in the page?
If this is your requirement, I suggest you could try to use javascript.
More details, you could refer to below codes:
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript">
var isSubmitted = false;
function preventMultipleSubmissions() {
if (!isSubmitted) {
$('#<%=btnSubmit.ClientID %>').val('Submitting.. Plz Wait..');
isSubmitted = true;
return true;
}
else {
return false;
}
}
</script>
<asp:TextBox ID="txtCounter" runat="server"></asp:TextBox>
<asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClientClick="return preventMultipleSubmissions();" OnClick="btnSubmit_Click" />
If this is not your requriement, I suggest you could post more information.
Best Regards,
Brando