Hi..
Can any one tell me what is the following error mean and what is its reason?
Error 1 Validation (ASP.Net): Text is not allowed between the opening and closing tags for element MultiView'.
Please help me because it is appear to me in many pages.
Thanks..
The<asp:MultiView> control is a container for a group of<asp:View> controls. insert your contents in MultiView using <asp:View>
<asp:MultiView id="value" Runat="Server" ActiveViewIndex="viewindex"
<asp:View id="value1" Runat="Server"
...insert yourControls, text, and HTML
</asp:View>
<asp:View id="value2" Runat="Server"
...insert yourControls, text, and HTML
</asp:View>
...
</asp:MultiView>
I do exactly what you say but the error is not remove
Please post the block of code pointed to by this error.
Hi..
This is the code:
<%@.PageLanguage="C#"MasterPageFile="~/Administration/AdministrationMasterPage.master"AutoEventWireup="true"CodeFile="UpdateStudentPayment.aspx.cs"Inherits="Administration_UpdateStudentPayment"Title="???????????????????????????"%><asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat="Server"> <divalign=center> <asp:ScriptManagerid="ScriptManager1"runat="server"> </asp:ScriptManager> <br/> <asp:UpdatePanelid="UpdatePanel1"runat="server"UpdateMode="Conditional"> <contenttemplate><asp:MultiViewID="MultiView1"runat="server">//Here is the error <asp:Viewid="View1"runat="server"> <strong><spanstyle="font-size: 24pt"><spanstyle="font-size: 20pt; color: #228b22"></span></span></strong> <asp:LabelID="Label14"runat="server"Text="Label"></asp:Label><br/> <br/> <SPANstyle="COLOR: red"><SPANstyle="FONT-SIZE: 24pt; COLOR: #228b22"></SPAN> <asp:Labelid="Label1"runat="server"Text="?????????:"ForeColor="ForestGreen"Font-Bold="True"></asp:Label> <asp:TextBoxid="TextBox1"runat="server"></asp:TextBox> <BR/> <asp:RegularExpressionValidatorid="RegularExpressionValidator2"runat="server"Font-Bold="True"ValidationExpression="^\d*"ErrorMessage="?????????????????????????? ..."ControlToValidate="TextBox1"></asp:RegularExpressionValidator><BR/> <asp:Labelid="Label9"runat="server"Text="Label"ForeColor="Red"Font-Bold="True"></asp:Label><br/> <BR/><asp:Buttonid="Button1"onclick="Button1_Click1"runat="server"ToolTip="????????????"Width="105px"Text="??????????"ForeColor="ForestGreen"Font-Bold="False"Font-Size="Large"></asp:Button><BR/><BR/> <asp:DetailsViewid="DetailsView1"runat="server"Width="460px"Height="50px"ForeColor="#333333"Font-Bold="True"OnLoad="DetailsView1_Load"OnDataBound="DetailsView1_DataBound"OnDataBinding="DetailsView1_DataBinding"GridLines="None"DataSourceID="SqlDataSource1"DataKeyNames="StudentPaymentID"CellPadding="4"AutoGenerateRows="False"> <FooterStyleBackColor="#507CD1"ForeColor="White"Font-Bold="True"></FooterStyle> <CommandRowStyleBackColor="#D1DDF1"Font-Bold="True"></CommandRowStyle> <EditRowStyleBackColor="#2461BF"></EditRowStyle> <RowStyleBackColor="#D8F3D0"CssClass="leftToRight"></RowStyle> <PagerStyleBackColor="#2461BF"ForeColor="White"HorizontalAlign="Center"></PagerStyle> <Fields> <asp:BoundFieldDataField="StudentPayment_UserID"SortExpression="StudentPayment_UserID"HeaderText="?????????"> <ItemStyleHorizontalAlign="Right"/> <HeaderStyleHorizontalAlign="Right"/> </asp:BoundField> <asp:BoundFieldDataField="UserName"SortExpression="UserName"HeaderText="?????????"> <ItemStyleHorizontalAlign="Right"/> <HeaderStyleHorizontalAlign="Right"/> </asp:BoundField> <asp:BoundFieldReadOnly="True"DataField="StudentPaymentID"InsertVisible="False"SortExpression="StudentPaymentID"HeaderText="????????"> <ItemStyleHorizontalAlign="Right"/> <HeaderStyleHorizontalAlign="Right"/> </asp:BoundField> <asp:BoundFieldDataField="TotalPrice"SortExpression="TotalPrice"HeaderText="?????????????"> <ItemStyleHorizontalAlign="Right"/> <HeaderStyleHorizontalAlign="Right"/> </asp:BoundField> <asp:BoundFieldDataField="PaidMoney"SortExpression="PaidMoney"HeaderText="?????????????"> <ItemStyleHorizontalAlign="Right"/> <HeaderStyleHorizontalAlign="Right"/> </asp:BoundField> <asp:BoundFieldDataField="ReminderMoney"SortExpression="ReminderMoney"HeaderText="????????????? "> <ItemStyleHorizontalAlign="Right"/> <HeaderStyleHorizontalAlign="Right"/> </asp:BoundField> <asp:BoundFieldDataField="PaymentDtae"SortExpression="PaymentDtae"HeaderText="?????????? "> <ItemStyleHorizontalAlign="Right"/> <HeaderStyleHorizontalAlign="Right"/> </asp:BoundField> </Fields> <FieldHeaderStyleBackColor="#C5E9B9"Font-Bold="True"></FieldHeaderStyle> <HeaderStyleBackColor="#507CD1"ForeColor="White"Font-Bold="True"></HeaderStyle> <AlternatingRowStyleBackColor="White"></AlternatingRowStyle> </asp:DetailsView> <asp:SqlDataSourceid="SqlDataSource1"runat="server"SelectCommand="SELECT StudentPayment.*, users.UserName, StudentPayment.StudentPayment_UserID AS Expr1 FROM StudentPayment INNER JOIN users ON StudentPayment.StudentPayment_UserID = users.UserID WHERE (StudentPayment.StudentPayment_UserID = @.UserID)"ConnectionString="<%$ ConnectionStrings:dbconn%>"> <SelectParameters> <asp:ControlParameterControlID="TextBox1"Name="UserID"PropertyName="Text"/> </SelectParameters> </asp:SqlDataSource><BR/><asp:Labelid="Label3"runat="server"Text="?????????????????????????"ForeColor="Red"Font-Bold="True"></asp:Label> <asp:Labelid="Label7"runat="server"Text="Label"ForeColor="Red"Font-Bold="True"></asp:Label> <asp:Labelid="Label4"runat="server"Text="Label"ForeColor="Red"Font-Bold="True"></asp:Label> <asp:Labelid="Label11"runat="server"Text="Label"ForeColor="Red"Font-Bold="True"></asp:Label><BR/><BR/> <asp:Labelid="Label2"runat="server"Text="?????????????????????????? :"ForeColor="ForestGreen"Font-Bold="True"></asp:Label> <asp:TextBoxid="TextBox2"runat="server"OnTextChanged="TextBox2_TextChanged"></asp:TextBox><BR/><BR/> <asp:RegularExpressionValidatorid="RegularExpressionValidator3"runat="server"Font-Bold="True"ValidationExpression="^\d*"ErrorMessage="?????????????????????????? ..."ControlToValidate="TextBox2"></asp:RegularExpressionValidator><BR/><BR/> <asp:Labelid="Label12"runat="server"Text="Label"Font-Bold="True"></asp:Label><BR/><BR/> <asp:Buttonid="Button2"onclick="Button2_Click"runat="server"ToolTip="????????????"Width="75px"Text="????????????"ForeColor="ForestGreen"Font-Size="Large"></asp:Button> <asp:Buttonid="Button3"runat="server"ToolTip="????????????"Width="81px"Text="????????????"ForeColor="ForestGreen"Font-Size="Large"PostBackUrl="~/Administration/Students.aspx"></asp:Button> </SPAN> <STRONG><SPANstyle="FONT-SIZE: 24pt"><BR/></SPAN></STRONG> </asp:View> <asp:Viewid="View2"runat="server"><BR/> <asp:Labelid="Label5"runat="server"Visible="False"Text="????????????????????????"ForeColor="Red"Font-Bold="True"></asp:Label> <SPANstyle="COLOR: red"></SPAN> <asp:Labelid="Label8"runat="server"Text="Label"ForeColor="Red"Font-Bold="True"></asp:Label> <SPANstyle="COLOR: red"></SPAN> <asp:Labelid="Label6"runat="server"Visible="False"Text="Label"ForeColor="Red"Font-Bold="True"></asp:Label> <asp:Labelid="Label10"runat="server"Text="Label"ForeColor="Red"Font-Bold="True"></asp:Label> <SPANstyle="COLOR: red"></SPAN> <SPANstyle="COLOR: forestgreen"><SPANstyle="COLOR: red"></SPAN><BR/></SPAN> <asp:LabelID="Label15"runat="server"Text="?????????????????????????????????? "></asp:Label> <SPANstyle="COLOR: #333333"><BR/></SPAN><BR/> <asp:DetailsViewid="DetailsView2"runat="server"Width="460px"Height="50px"ForeColor="#333333"Font-Bold="True"GridLines="None"DataSourceID="SqlDataSource1"DataKeyNames="StudentPaymentID"CellPadding="4"AutoGenerateRows="False"> <FooterStyleBackColor="#507CD1"ForeColor="White"Font-Bold="True"></FooterStyle> <CommandRowStyleBackColor="#D1DDF1"Font-Bold="True"></CommandRowStyle> <EditRowStyleBackColor="#2461BF"></EditRowStyle> <RowStyleBackColor="#D8F3D0"CssClass="leftToRight"></RowStyle> <PagerStyleBackColor="#2461BF"ForeColor="White"HorizontalAlign="Center"></PagerStyle> <Fields> <asp:BoundFieldDataField="StudentPayment_UserID"SortExpression="StudentPayment_UserID"HeaderText="?????????"> <ItemStyleHorizontalAlign="Right"/> <HeaderStyleHorizontalAlign="Right"/> </asp:BoundField> <asp:BoundFieldDataField="UserName"SortExpression="UserName"HeaderText="?????????"> <ItemStyleHorizontalAlign="Right"/> <HeaderStyleHorizontalAlign="Right"/> </asp:BoundField> <asp:BoundFieldReadOnly="True"DataField="StudentPaymentID"InsertVisible="False"SortExpression="StudentPaymentID"HeaderText="????????"> <ItemStyleHorizontalAlign="Right"/> <HeaderStyleHorizontalAlign="Right"/> </asp:BoundField> <asp:BoundFieldDataField="TotalPrice"SortExpression="TotalPrice"HeaderText="?????????????"> <ItemStyleHorizontalAlign="Right"/> <HeaderStyleHorizontalAlign="Right"/> </asp:BoundField> <asp:BoundFieldDataField="PaidMoney"SortExpression="PaidMoney"HeaderText="?????????????"> <ItemStyleHorizontalAlign="Right"/> <HeaderStyleHorizontalAlign="Right"/> </asp:BoundField> <asp:BoundFieldDataField="ReminderMoney"SortExpression="ReminderMoney"HeaderText="?????????????"> <ItemStyleHorizontalAlign="Right"/> <HeaderStyleHorizontalAlign="Right"/> </asp:BoundField> <asp:BoundFieldDataField="PaymentDtae"SortExpression="PaymentDtae"HeaderText="??????????"> <ItemStyleHorizontalAlign="Right"/> <HeaderStyleHorizontalAlign="Right"/> </asp:BoundField> </Fields> <FieldHeaderStyleBackColor="#C5E9B9"Font-Bold="True"></FieldHeaderStyle> <HeaderStyleBackColor="#507CD1"ForeColor="White"Font-Bold="True"></HeaderStyle> <AlternatingRowStyleBackColor="White"></AlternatingRowStyle> </asp:DetailsView><asp:SqlDataSourceid="SqlDataSource2"runat="server"SelectCommand="SELECT StudentPayment.*, users.UserName, StudentPayment.StudentPayment_UserID AS Expr1 FROM StudentPayment INNER JOIN users ON StudentPayment.StudentPayment_UserID = users.UserID WHERE (StudentPayment.StudentPayment_UserID = @.UserID)"ConnectionString="<%$ ConnectionStrings:dbconn%>"> <SelectParameters> <asp:ControlParameterControlID="TextBox1"Name="UserID"PropertyName="Text"/> </SelectParameters> </asp:SqlDataSource><BR/><asp:HyperLinkid="HyperLink1"runat="server"ToolTip="????????????????????? "Font-Bold="True"NavigateUrl="~/Administration/Students.aspx">?????????????????????</asp:HyperLink></asp:View> <BR/> <asp:Viewid="View3"runat="server"><STRONG><SPANstyle="COLOR: #333333"><BR/> <asp:LabelID="Label16"runat="server"Text="??????"></asp:Label> <SPANstyle="COLOR: red"> </SPAN></SPAN></STRONG> <asp:Labelid="Label13"runat="server"Text="Label"ForeColor="Red"Font-Bold="True"></asp:Label> <STRONG><SPANstyle="COLOR: #333333"><SPANstyle="COLOR: red"> <asp:LabelID="Label17"runat="server"Text="????????????????? .."></asp:Label></SPAN><BR/> <asp:DetailsViewid="DetailsView3"runat="server"Width="460px"Height="50px"ForeColor="#333333"Font-Bold="True"GridLines="None"DataSourceID="SqlDataSource3"DataKeyNames="StudentPaymentID"CellPadding="4"AutoGenerateRows="False"> <FooterStyleBackColor="#507CD1"ForeColor="White"Font-Bold="True"></FooterStyle> <CommandRowStyleBackColor="#D1DDF1"Font-Bold="True"></CommandRowStyle> <EditRowStyleBackColor="#2461BF"></EditRowStyle> <RowStyleBackColor="#D8F3D0"CssClass="leftToRight"></RowStyle> <PagerStyleBackColor="#2461BF"ForeColor="White"HorizontalAlign="Center"></PagerStyle> <Fields> <asp:BoundFieldDataField="UserName"SortExpression="UserName"HeaderText="?????????"> <ItemStyleHorizontalAlign="Right"/> <HeaderStyleHorizontalAlign="Right"/> </asp:BoundField> <asp:BoundFieldDataField="StudentPayment_UserID"SortExpression="StudentPayment_UserID"HeaderText="?????????"> <ItemStyleHorizontalAlign="Right"/> <HeaderStyleHorizontalAlign="Right"/> </asp:BoundField> <asp:BoundFieldDataField="StudentPayment_PaymentID"SortExpression="StudentPayment_PaymentID"HeaderText="????????"> <ItemStyleHorizontalAlign="Right"/> <HeaderStyleHorizontalAlign="Right"/> </asp:BoundField> <asp:BoundFieldDataField="TotalPrice"SortExpression="TotalPrice"HeaderText="?????????????"> <ItemStyleHorizontalAlign="Right"/> <HeaderStyleHorizontalAlign="Right"/> </asp:BoundField> <asp:BoundFieldDataField="PaidMoney"SortExpression="PaidMoney"HeaderText="?????????????"> <ItemStyleHorizontalAlign="Right"/> <HeaderStyleHorizontalAlign="Right"/> </asp:BoundField> <asp:BoundFieldDataField="ReminderMoney"SortExpression="ReminderMoney"HeaderText="?????????????"> <ItemStyleHorizontalAlign="Right"/> <HeaderStyleHorizontalAlign="Right"/> </asp:BoundField> <asp:BoundFieldDataField="PaymentDtae"SortExpression="PaymentDtae"HeaderText="??????????"> <ItemStyleHorizontalAlign="Right"/> <HeaderStyleHorizontalAlign="Right"/> </asp:BoundField> </Fields> <FieldHeaderStyleBackColor="#C5E9B9"Font-Bold="True"></FieldHeaderStyle> <HeaderStyleBackColor="#507CD1"ForeColor="White"Font-Bold="True"></HeaderStyle> <AlternatingRowStyleBackColor="White"></AlternatingRowStyle> </asp:DetailsView> <asp:SqlDataSourceid="SqlDataSource3"runat="server"SelectCommand="SELECT StudentPayment.*, users.UserName, StudentPayment.StudentPayment_UserID AS Expr1 FROM StudentPayment INNER JOIN users ON StudentPayment.StudentPayment_UserID = users.UserID WHERE (StudentPayment.StudentPayment_UserID = @.UserID)"ConnectionString="<%$ ConnectionStrings:dbconn%>"> <SelectParameters> <asp:ControlParameterControlID="TextBox1"Name="UserID"PropertyName="Text"/> </SelectParameters> </asp:SqlDataSource><BR/><asp:HyperLinkid="HyperLink2"runat="server"ToolTip="????????????????????? "NavigateUrl="~/Administration/Students.aspx">?????????????????????</asp:HyperLink><BR/></SPAN></STRONG> </asp:View><BR/> </asp:MultiView></contenttemplate><triggers><asp:AsyncPostBackTriggerControlID="Button1"EventName="Click"></asp:AsyncPostBackTrigger></triggers></asp:UpdatePanel> <br/> <br/> <br/> <br/> <br/> </div></asp:Content>
Sorry for that appearance
0 comments:
Post a Comment