i am trying to keep Textbox value when i upload image by using hidden fields but after alot of try i am posting this issue that it always refresh textbox and my text box value flushes ??
my code is,
var hv = $('#hidden1').val();
var img = document.getElementById("<%= Btn_Preview.ClientID%>");
img.click();
$('TxtBxDesignation').val() = hv;
actualy i call this script on change event and also calling .click event of preview button to view image on the same time i upload image
<asp:FileUpload runat="server" ID="FU_Img" onchange="FU_Img_onchange(this);" /><br />
<asp:Button ID="Btn_Preview" runat="server" Text="Preview" BorderColor="Transparent"
BackColor="Transparent" OnClick="Btn_Preview_Click" />
but its not working for me and textbox refresh when image upload and if i freez this line
"var img = document.getElementById("<%= Btn_Preview.ClientID%>");"
it works smoothly but for sure no chnage image ???
hopes for your suggestion thanks