PDA

View Full Version : این خطا برای چیه code blocks (i.e. <% ... %>).



sg.programmer
یک شنبه 09 مرداد 1390, 21:21 عصر
من قبلاً برنامه ام کار می کرد و الان این خطا را میده این برای چیه
کدها هم توی بلوک <%.....%> هستند


The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).


HttpException (0x80004005): The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).] System.Web.UI.ControlCollection.Add(Control child) +8677431 OboutInc.ImageZoom.ImageZoom.OnInit(EventArgs e) +580 System.Web.UI.Control.InitRecursive(Control namingContainer) +333 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378

moslem.hady
دوشنبه 10 مرداد 1390, 11:35 صبح
کد صفحتو بذار لطفا

sg.programmer
دوشنبه 10 مرداد 1390, 14:02 عصر
<%@ Page Language="C#" MasterPageFile="~/master.master" AutoEventWireup="true" CodeFile="Gallery1.aspx.cs" Inherits="Editor_Gallery" Title="Untitled Page" ValidateRequest="false"%>
<%@ Register Assembly="obout_ImageZoom_NET" Namespace="OboutInc.ImageZoom" TagPrefix="obout" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContentPlace" Runat="Server">
<div>
<obout:ImageZoom ID="ImageZoom1" runat="server" />
</div>
</asp:Content>

moslem.hady
پنج شنبه 13 مرداد 1390, 10:55 صبح
تگ هدت رو تو مسترپیچ اینطوری کن ببین درست نمیشه:
<head runat="server">