After updating the Input Text field in a web forms application using a JavaScript method, the change method in the C# code does not seem to work. How can I resolve this issue?
<asp:TextBox ID="Value1" Columns="2" MaxLength="3" Text="1" runat="server" OnTextChanged="Value1_TextChanged"/>
<button onclick="changeText()">sample</button>
<script>
function changeText(){
$("input[id$='Value1']").val("Change Value!");
}
</script>
``
On the cs file of this page:
protected void Value1_TextChanged(object sender, EventArgs e)
{
string test="this works";
}
What is the interaction between the Value1_TextChanged method in C# and the changeText method in JavaScript?