Click here to Skip to main content
15,922,166 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
XML
<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
Posted
Comments
What is the issue? Please clarify.
Member 11111143 17-Dec-14 5:18am    
When I start writing in textbox it shakes then When I press the tab the page gets reloaded instrad of going to the next texbox
See my answer.

1 solution

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.
TextBox loses focus, when you press Tab. So, the problem.

Please remove the AutoPostBack properties and try.
 
Share this answer
 
Comments
Praveen Kumar Upadhyay 17-Dec-14 6:22am    
Correct.
Member 11111143 17-Dec-14 7:09am    
I Have tried that but still its not working.I have copied the whole page with another name but still its not working
Closely look at all the textboxes and remove the AutoPostBack attributes. Then test. Otherwise, test with one textbox and then add another and keep going.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900