1ページに2つのテキストボックスと1つのボタンがあり、これらのテキストボックスはパネルに配置されています.また、このページは1分ごとに自動的に更新されます.今、テキストボックスにテキストを入力し、そのページで何もクリックしませんでした.テキストボックス内のテキストが自動的にクリアされた分.この問題を処理する方法.ボタンクリックイベントが必要ない.ページがロードされたとき,そのテキストがクリアされていない,テキストボックスにこのテキストを保持する方法.しかし、私は隠しフィールドを操作することが可能です. jquery、しかしそれは私にとってはうまくいきません.それはページの読み込み中です.隠しフィールドの値は空です.テキストボックスはテキスト値を保持しません.誰もが私を助けてください.
<asp:Panel ID="Panel1" runat="server">
<div class="full" id="tab-1">
<div class="tabbedData">
<table width="97%" border="0" cellspacing="0" cellpadding="0" class="tblForm">
<tbody>
<tr>
<td width="19%">
Company Name
</td>
<td width="36%">
<asp:TextBox ID="txtCompanyName" runat="server"></asp:TextBox>
</td>
<td width="17%">
Contact
</td>
<td width="28%">
<asp:TextBox ID="txtContact" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
Mr./Mis./...
</td>
<td>
<asp:TextBox ID="txtHonorfic" runat="server" Style="width: 70px;"></asp:TextBox>
</td>
<td>
Phone
</td>
<td>
<asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
</td>
</tr>
</table>
</div>
</div>
</asp:Panel>
ページ更新のような私のJqueryコード、ページ名はCustomer.aspxです
$(document).ready(function () {
window.setInterval(yourfunction, 60000);
});
function yourfunction() { window.location = "Customer.aspx"; }