Hello, I amtrying to create when user click the Add button, it displays the textboxes and the add button becomes the submit button, and also shows the clear button. The clear button, clears the textboxes, but if the user enter data into textboxes, it not only adds data to the database but also, closes the etxtboxes area. I've tried using the onclickclient but there is an error:
This is my .aspx:
<tr>
<td width="100">No:</td>
<td width="120"><asp:textbox id="no" runat="server" /></td>
<td class="text" width="200">
</td>
</tr>
</table>
<div align="center">
<asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="Clear" Visible="false" />
<asp:Button ID="Button3" runat="server" onclick="Button3_Click" OnClientClick="Button1_Click" Text="Add" />
</div>
This is my .aspx for Button 3 and the function to add the data into database: ...
Go to the complete details ...