Answer the question
In order to leave comments, you need to log in
How to clear asp net input fields?
Good afternoon. I have input fields (textBox's) to send information to a database. But after sending the data remains in the fields. Standard jquery scripts for clearing the form do not work here, and the html form cannot send data to the database. The reset button works, but only until the form is submitted. After sending, it no longer clears the fields. Maybe there is a solution.? Below is the code.
PS written in vb
"
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem>умент</asp:ListItem>
<asp:ListItem>т</asp:ListItem>
<asp:ListItem>я</asp:ListItem>
<asp:ListItem>умент</asp:ListItem>
<asp:ListItem>умент</asp:ListItem>
<asp:ListItem>Пневматический инструмент</asp:ListItem>
</asp:DropDownList>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
<asp:Button ID="Button2" runat="server" Text="Отправить"/>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question