UseSubmitBehavior property in ASP.Net TextBox

on Nov 16, 2021 02:51 AM

I am using UseSubmitBehavior with Button, now i want to use it with TextBox

so could i use it with Textbox beacuse i created method on text box indexchanged to calling data from database and insert into Database.

some time same record inserted two time into database.

<asp:TextBox ID="txtsearcbn" AutoPostBack="true" runat="server" OnTextChanged="txtsearcbn_TextChanged" Height="24px" Width="127px" UseSubmitBehavior="false"></asp:TextBox>
Download FREE API for Word, Excel and PDF in ASP.Net: Download
on Nov 20, 2021 06:43 AM

No UseSubmitBehavior is a Button property.

You can't use it in TextBox.