本文介绍了(创建control-updatepanel服务器标记的错误不正确)如何从设计视图中删除它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<%@ Page Title =Language =C#MasterPageFile =〜/ MasterPage.masterAutoEventWireup =trueCodeFile =Diamond.aspx.csInherits =Diamond%>
< asp:Content ID =Content1ContentPlaceHolderID =headRunat =Server>
.auto-style7 {
宽度:649px;
}
< asp:Content ID =Content2ContentPlaceHolderID =ContentPlaceHolder1Runat =Server>
< asp:ScriptManager ID =ScriptManager1 runat =server>
< asp:UpdatePanel ID =UpdatePanel1runat =server>
< contenttemplate>
< asp:Label ID =lblCategoryNamerunat =serverText =LabelForeColor =#CC00FF字体大小=大> ; | < asp:Label ID =Label2runat =serverText =CategoryFont-Size =LargeForeColor =#CC00FF> ; | |
> < asp:Panel ID =pnlProductrunat =serverBorderColor =BlackBorderStyle =InsetBorderWidth =1px 高度=500pxScrollBars =自动> < asp:DataList ID =dlProductrunat =serverRepeatColumns =3Width =600px> < itemtemplate>
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Diamond.aspx.cs" Inherits="Diamond" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
.auto-style7 {
width: 649px;
}
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<contenttemplate>
<asp:Label ID="lblCategoryName" runat="server" Text="Label" ForeColor="#CC00FF" Font-Size="Large">
| <asp:Label ID="Label2" runat="server" Text="Category" Font-Size="Large" ForeColor="#CC00FF">
|
|
<asp:Panel ID="pnlProduct" runat="server" BorderColor="Black" BorderStyle="Inset" BorderWidth="1px"
Height="500px" ScrollBars="Auto">
<asp:DataList ID="dlProduct" runat="server" RepeatColumns="3" Width="600px">
<itemtemplate>
< asp:Label ID =lblProductNamerunat =serverText =<%#Eval(product_name)%>Style = font-weight:700> | > alt =/> | < asp:Label ID =lblPricerunat =serverText ='<%#Eval(product_price)%>'> |
<asp:Label ID="lblProductName" runat="server" Text="<%#Eval("product_name") %>" Style="font-weight:700">
| ">
" alt="" />
| <asp:Label ID="lblPrice" runat="server" Text='<%#Eval("product_price")%>'>
|
| < asp:Panel ID =Panel1runat =serverBorderColor =Black BorderStyle =InsetBorderWidth =1px Height =500pxScrollBars =Auto> < asp:DataList ID =dlCategoryrunat =serverBackColor =WhiteGridLines =Horizontal BorderColor =#CCCCCCBorderStyle =NoneBorderWidth =1pxCellPadding =4ForeColor =Black> < FooterStyle BackColor =#CCCCCCForeColor =Black/> < HeaderStyle font-Bold =TrueForeColor =WhiteBackColor = #333333/> < itemte mplate> < asp:LinkButton ID =lbtnCategorynamerunat =serverText =<%#Eval(category_name)%>CommandArguement =<%#Eval (category_Id)%>> < SelectedItemStyle BackColor =# CC3333Font-Bold =TrueForeColor =White/> | | 我尝试过: <%@ Register Assembly =AjaxControlToolkitNamespace =AjaxControlToolkitTagPrefix =asp%> 尝试了这个sti ll不工作
| <asp:Panel ID="Panel1" runat="server" BorderColor="Black" BorderStyle="Inset" BorderWidth="1px"
Height="500px" ScrollBars="Auto">
<asp:DataList ID="dlCategory" runat="server" BackColor="White" GridLines="Horizontal"
BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" >
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
<HeaderStyle font-Bold="True" ForeColor="White" BackColor="#333333" />
<itemtemplate>
<asp:LinkButton ID="lbtnCategoryname" runat="server" Text="<%#Eval("category_name") %>" CommandArguement="<%#Eval("category_Id") %>" >
<SelectedItemStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
|
|
What I have tried:
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
tried this still not working
推荐答案
关闭此标签,好像复制粘贴错误
Close this tag, Seems like copy paste mistake
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<contenttemplate>
这篇关于(创建control-updatepanel服务器标记的错误不正确)如何从设计视图中删除它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!