帮我如何清除错误 [英] Help me How to clear Error

查看:50
本文介绍了帮我如何清除错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在网页中进行设计

我的错误

I have designing in my web page

My error

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>

推荐答案

您不能在母版中包含表单标签,在此页面上也不能包含另一个表单标签.删除子页面上的表单标签,您就可以了.
You can''t have a form tag in the master and another on this page. remove the form tag on the child page and you should be okay.


这篇关于帮我如何清除错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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