按Tab键时页面重新加载 [英] Page gets reload when I press Tab

查看:70
本文介绍了按Tab键时页面重新加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<table>
    <tr>
    <td class="style4" bgcolor="#999999">Vendor type</td>
    <td><asp:DropDownList ID="Vendor_Type" runat="server" BackColor="#3399FF">
        <asp:ListItem>COMPANY</asp:ListItem>
        <asp:ListItem>VENDOR VEHCILE</asp:ListItem>
        <asp:ListItem>MARKET VEHCILE</asp:ListItem>
        </asp:DropDownList></td>
    </tr>
    </table>
    </div>
    <div>
    <div id="left" style="background-color: #FFFFFF">
    <table style="width: 364px">
    <tr>
    <td bgcolor="#999999">LHC No</td>
    <td><asp:TextBox ID="LHC_No" runat="server" BorderColor="Black"></asp:TextBox></td>
    </tr>
    <tr>
    <td bgcolor="#999999">Lorry No</td>
    <td><asp:TextBox ID="Lorry_No" runat="server" BorderColor="Black"></asp:TextBox></td>
    </tr>
    <tr>
    <td bgcolor="#999999">From STN</td>
    <td><asp:TextBox ID="From_STN" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td bgcolor="#999999">To Destination</td>
    <td><asp:TextBox ID="To_Destination" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td bgcolor="#999999">Permit No</td>
    <td><asp:TextBox ID="Permit_No" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td bgcolor="#999999">Engine No</td>
    <td><asp:TextBox ID="Engine_No" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td bgcolor="#999999">Tax UPTO</td>
    <td><asp:TextBox ID="Tax_UPTO" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td bgcolor="#999999">Insurance Company</td>
    <td><asp:TextBox ID="Insurance_Company" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td bgcolor="#999999">Policy No</td>
     <td><asp:TextBox ID="policy_No" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td bgcolor="#999999">Valid From</td>
    <td><asp:TextBox ID="Valid_From" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td bgcolor="#999999">Running Km</td>
    <td><asp:TextBox ID="Running_Km" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td bgcolor="#999999">Owner</td>
    <td><asp:TextBox ID="Owner" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td bgcolor="#999999">Name</td>
    <td><asp:TextBox ID="Name" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td bgcolor="#999999">Father's Name</td>
    <td><asp:TextBox ID="Fathers_Name" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td bgcolor="#999999">Address</td>
    <td><asp:TextBox ID="Address" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td bgcolor="#999999">Phone</td>
    <td><asp:TextBox ID="Phone" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td bgcolor="#999999">Mobile</td>
    <td><asp:TextBox ID="Mobile" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    </table>
    </div>
    <div id="center" style="background-color: #FFFFFF">
    <table>
    <tr>
    <td class="style2" bgcolor="#999999">Challan_No</td>
    <td><asp:TextBox ID="Challan_No" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style2" bgcolor="#999999">Date</td>
    <td><asp:TextBox ID="Date" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style2" bgcolor="#999999">PKG</td>
    <td><asp:TextBox ID="PKG" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style2" bgcolor="#999999">Actual Wt</td>
    <td><asp:TextBox ID="Actual_Wt" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style2" bgcolor="#999999">BodyMake</td>
    <td><asp:TextBox ID="BodyMake" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style2" bgcolor="#999999">Chasis No</td>
    <td><asp:TextBox ID="Chasis_No" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style2" bgcolor="#999999">Valid Instate</td>
    <td style="background-color: #FFFFFF"><asp:TextBox ID="Valid_Instate"

            runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style2" bgcolor="#999999">Valid Upto</td>
    <td><asp:TextBox ID="Valid_Upto" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style2" bgcolor="#999999">Model</td>
    <td><asp:TextBox ID="Model" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style2" bgcolor="#999999">Pan No</td>
    <td><asp:TextBox ID="Pan_No" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style2" bgcolor="#999999">Driver Name</td>
    <td><asp:TextBox ID="Driver_Name" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style2" bgcolor="#999999">Driver Address</td>
    <td><asp:TextBox ID="Dreiver_Address" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style2" bgcolor="#999999">Driver Phone</td>
    <td><asp:TextBox ID="Driver_Phone" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style2" bgcolor="#999999">Lisence No</td>
    <td><asp:TextBox ID="Lisence_No" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style2" bgcolor="#999999">Broker_Name</td>
    <td><asp:TextBox ID="Broker_Name" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style2" bgcolor="#999999">Broker Address</td>
    <td><asp:TextBox ID="Broker_Address" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style2" bgcolor="#999999">Broker Phone</td>
    <td><asp:TextBox ID="Broker_Phone" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    </table>
    </div>
    <div id="right" style="background-color: #FFFFFF">
    <table>
    <tr>
    <td class="style1" bgcolor="#999999">Lorry Hire</td>
    <td><asp:TextBox ID="TextBox3" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style1" style="background-color: #999999">Diesel Exp</td>
    <td><asp:TextBox ID="Diesel_Exp" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style1" bgcolor="#999999">Handling</td>
    <td><asp:TextBox ID="Handling" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style1" bgcolor="#999999">Enroute Exp</td>
    <td><asp:TextBox ID="Enroute_Exp" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style1" bgcolor="#999999">Halting</td>
    <td><asp:TextBox ID="Halting" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style1" bgcolor="#999999">SubTotal</td>
    <td><asp:TextBox ID="SubTotal" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style1" bgcolor="#999999">Advances</td>
    <td><asp:TextBox ID="Advances" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style1" bgcolor="#999999">Tds%</td>
    <td><asp:TextBox ID="Tds" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style1" bgcolor="#999999">Net Amount</td>
    <td><asp:TextBox ID="Net_Amount" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style1" bgcolor="#999999">Final Deduction</td>
    <td><asp:TextBox ID="Final_Deduction" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style1" bgcolor="#999999">Final Payment</td>
    <td><asp:TextBox ID="Final_payment" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style1" bgcolor="#999999">Amount in Words</td>
    <td><asp:TextBox ID="Amount_in_Words" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style1" bgcolor="#999999">payment</td>
    <td>
        <asp:DropDownList ID="DropDownList1" runat="server" Height="33px" Width="146px"

            BackColor="#3399FF" AutoPostBack="True">
            <asp:ListItem>Cash</asp:ListItem>
            <asp:ListItem>Cheque</asp:ListItem>
        </asp:DropDownList></td>
    </tr>
    <tr>
    <td class="style1" bgcolor="#999999">Cheque No</td>
    <td><asp:TextBox ID="Cheque_No" runat="server" BorderColor="Black" AutoPostBack="
True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style1" bgcolor="#999999">Date</td>
    <td><asp:TextBox ID="Date3" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="style1" bgcolor="#999999">Bank</td>
    <td><asp:TextBox ID="Bank" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td bgcolor="#999999">Driver Sign</td>
    <td><asp:TextBox ID="Driver_Sign" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    </table>
    </div>
    </div>
    <div id="bottom">
    <table>
    <tr>
    <td bgcolor="#999999">Special Instruction</td>
    <td><asp:TextBox ID="Special_instruction" runat="server" BackColor="#99CCFF"

            BorderColor="Black" Height="118px" TextMode="MultiLine" Width="619px" AutoPostBack="True">I
        ...............................Vendor/ driver of above particular vehicle do
        here by confirm having received in proper condition the goods detailed in above
        noted lorry challan for safe carriage to your destination office on my risk at
        the hired rate detailed and calculated above . I agree and undertake that goods
        will be loaded/unlaoaded as per your office instructions and your rule and
        regulations. No other goods will be loaded in or transhipped from my above
        vehicle in route. If any damage/shortage/theft of goods is found , the value of
        such goods may be recovered from me and I have received all the necessary
        document in respect of the contract for delivery to destination station. I have
        understood the condition of carriage of goods upon destination and shall also
        arrange loading/unloading of the entire contents, conditions have been read over
        and explained to me in my own language </asp:TextBox></td>
    </tr>
    </table>
    </div>
        <div id="lg">
    <table style="width: 100%">
    <tr>
    <td bgcolor="#999999">Prepared By</td>
    <td><asp:TextBox ID="Prepared_By" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    <td bgcolor="#999999">Certified By</td>
    <td class="style5"><asp:TextBox ID="Certified_By" runat="server"

            BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    <td bgcolor="#999999">Audit By</td>
    <td><asp:TextBox ID="Audit_by" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    <tr>
    <td bgcolor="#999999">Staff Code</td>
    <td><asp:TextBox ID="Staff_Code" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    <td bgcolor="#999999">Passed By</td>
    <td><asp:TextBox ID="Passed_By" runat="server" BorderColor="Black" AutoPostBack="True"></asp:TextBox></td>
    </tr>
    </table>



I have used both Autopost true and false but the problem Remains the same


I have used both Autopost true and false but the problem Remains the same

推荐答案

Refer - TextBox.AutoPostBack Property[^].

Refer - TextBox.AutoPostBack Property[^].
Quote:

Gets or sets a value that indicates whether an automatic postback to the server occurs when the TextBox control loses focus.

Gets or sets a value that indicates whether an automatic postback to the server occurs when the TextBox control loses focus.

TextBox loses focus, when you press Tab. So, the problem.



Please remove the AutoPostBack properties and try.

TextBox loses focus, when you press Tab. So, the problem.

Please remove the AutoPostBack properties and try.


这篇关于按Tab键时页面重新加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆