A page can have only one server-side Form tag. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: A page can have only one server-side Form tag. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage.master" CodeFile="MainPage.aspx.cs" Inherits="PhotoStudio.MainPage" %> <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> <asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server" ID="ContentPlaceHolder1"> <form runat="server"> <div style="width:100%; border:1px solid #009900; background-color:#E4E4E4"> <div style="height: 267px; width: 549px"> <table width="100%"> <tr><td>Bill No :<asp:Label ID="lblBillNo" runat="server"> </td><td class="style1" colspan="2"><asp:TextBox ID="txtBillNo" runat="server" Visible=false Width="122px"></td><td class="style2"> </td><td> </td></tr> <tr><td>Customer Name :</td> <td class="style1" colspan="2"> <asp:TextBox ID="txtCName" runat="server"></td> <td class="style2"> </td> <td> </td></tr><tr> <td>Phone No :</td><td class="style1" colspan="2"><asp:TextBox ID="txtPhone" runat="server"></td> <td class="style2"> </td><td> </td></tr> <tr><td> Date :</td><td class="style1" colspan="2"><telerik:RadDatePicker ID="rdStartDate" runat="server"> </td><td class="style2"> </td><td> </td></tr><tr><td>Delivery Date :</td> <td class="style1" colspan="2"> <telerik:RadDatePicker ID="rdEndDate" runat="server"> </td><td class="style2"> </td><td> </td></tr><tr><td>System URL :</td><td class="style1"> colspan="2"> <asp:FileUpload ID="browseFilepath" runat="server" /></td> <td class="style2"> </td><td> </td></tr> <tr><td> <asp:GridView ID="DisplayGrid" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" onrowdeleting="GridView1_RowDeleting" onselectedindexchanged="DisplayGrid_SelectedIndexChanged" ShowFooter="True" Width="468px"> <footerstyle backcolor="#507CD1" font-bold="True" forecolor="White" /> <rowstyle backcolor="#EFF3FB" /> <columns> <asp:BoundField DataField="Size" HeaderText="Size" InsertVisible="False" Visible="False" /> <asp:TemplateField HeaderText="Size"> <itemtemplate> <asp:Label ID="lblSize" runat="server" Text='<%# Bind("Size") %>'> </itemtemplate> <asp:TemplateField HeaderText="No Of Copies"> <itemtemplate> <asp:Label ID="lblNoofcopies" runat="server" Text='<%# Bind("Noofcopies") %>'> </itemtemplate> <asp:TemplateField HeaderText="Amount"> <itemtemplate> <asp:Label ID="lblAmount" runat="server" Text='<%# Bind("Amount") %>'> </itemtemplate> <asp:TemplateField HeaderText="Total"> <itemtemplate> <asp:Label ID="lblTotal" runat="server" Text='<%# Bind("Total") %>'> </itemtemplate> <asp:CommandField HeaderText="Delete" ShowDeleteButton="True" /> </columns> <pagerstyle backcolor="#2461BF" forecolor="White" horizontalalign="Center" /> <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" /> <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /> <editrowstyle backcolor="#2461BF" /> <alternatingrowstyle backcolor="White" /> <emptydatatemplate> No Record </emptydatatemplate> </td><td class="style1" colspan="2"> </td> <td class="style2"> </td> <td> </td> </tr> <br /> <br /> <tr><td> </td> <td class="style1"> </td> <td class="style1"> </td> <td class="style2"> </td> <td> </td></tr> <tr><td>Size :</td><td class="style1" colspan="2"> <asp:DropDownList ID="cmbSize" runat="server" AutoPostBack="True" onselectedindexchanged="cmbSize_SelectedIndexChanged"> </td><td class="style2"> </td><td> </td></tr> <tr><td>Amount :</td><td class="style1" colspan="2"> <asp:TextBox ID="txtAmt" runat="server" > </td><td class="style2"> </td><td> </td></tr><tr><td>Extra Copies :</td><td class="style1"> colspan="2"> <asp:TextBox ID="txtNoofcopies" runat="server" AutoPostBack="true" ></td> <td class="style2"> </td><td class="style3"> </td></tr> <tr><td> Extra Copy Amount :</td><td class="style1" colspan="2"> <asp:TextBox ID="TextBox1" runat="server" AutoPostBack="true" ontextchanged="TextBox1_TextChanged"> </td><td class="style2"> </td><td> </td> <tr><td> Total</td><td class="style1" colspan="2"> <asp:TextBox ID="txtTot" runat="server" AutoPostBack="true"> </td><td class="style2"> </td><td> </td> <tr><td> <asp:Label ID="Label3" runat="server" Text="Lamination"> </td><td class="style1" colspan="2"> <asp:DropDownList ID="Ddl" runat="server"> </td><td class="style2"> </td><td> </td><tr><td class="style4"> <asp:Label ID="Label4" runat="server" Text="Lamination Amount"> </td> <td class="style1" colspan="2"> <asp:TextBox ID="txtlami" runat="server" AutoPostBack="true" ontextchanged="txtlami_TextChanged" > </td><td class="style2"> </td><td class="style3"> </td></tr> <tr><td><asp:Label ID="Label1" runat="server" Text="Grand Total : " Font-Bold="true" Font-Size="Medium" > </td> <td class="style1" colspan="2"> <asp:TextBox ID="txtgrandtot" runat="server" AutoPostBack="true" > </td> <td class="style2"> </td> <td> </td> <td> </td></tr> <tr><td> <asp:Label ID="Label2" runat="server" Text="Paid Amount"> </td> <td class="style1" colspan="2"> <asp:TextBox ID="txtPaid" runat="server" ontextchanged="txtPaid_TextChanged"></td> <td class="style2"> </td> <td> </td> <td> </td></tr> <tr><td>Balance</td> <td class="style1" colspan="2"> <asp:TextBox ID="txtbalance" runat="server" > </td> <td class="style2"> </td> <td> </td> <td> </td></tr> <tr><td> <asp:Button ID="btnAdd" runat="server" Text="Add" onclick="btnAdd_Click" /><asp:Button ID="btnSave" runat="server" Text="Save" onclick="btnSave_Click" /> <asp:Button ID="btnClear" runat="server" Text="Clear" onclick="btnClear_Click" /></td> <td class="style1" colspan="2"> </td> <td class="style2"> </td> <td> </td> <td> </td></tr></tr></tr></tr></table> <br /> <asp:ImageButton ID="imgPrint" runat="server" ImageUrl="~/images/print.jpg" onclick="imgPrint_Click" /> <br /> <asp:Label ID="lblError" runat="server" Text=""> </div> </div> </form>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)