Hi. I have a text box that I add using the following code. I have a button on the same page. When I change text in the text box it triggers the click event of the button. I have no idea why this is happening. Why would it
Dim tb As New TextBox
tb.ID = oControlName
tb.CssClass = "xTextBoxHundredPercent"
'Here is the markup for the button
<asp:Button ID="btnSave" runat="server" Text="Button" Width="100%" />
'Here is the click event for the button that gets triggered when the text in the text box added with above code is changed
Protected Sub btnSave_Click(sender As Object, e As EventArgs) Handles btnSave.Click