preserve value in textbox after postback in user control
问题 I am loading text into a textbox through jquery as so: $.ajax({ type: "POST", url: "../myfile.ascx/myfunction", data: "{variable:'" + value + "'}", contentType: "application/json", dataType: "json", success: function (response) { $('input[id$=txtMyTextBox]').val(response.d); } }); this portion works fine, but when I cause the page to postback from other controls I loose the value it had inserted in txtMyTextBox..Now I am using a user control so I have a databind instead of page load. I tried