我已經安裝了Ajax擴展並添加了對應用程序的引用。我面臨着很奇怪的問題,我的母版頁接受阿賈克斯擴展工具,其中像我的內容頁拋錯誤「元素的ScriptManager/UpdatePanel的不是一個已知的元素。」Ajax擴展適用於主頁面,但不適用於內容頁面
My WebConfig:
<?xml version="1.0"?><configuration>
<system.web>
<customErrors mode="Off">
</customErrors>
<authentication mode="Windows"/>
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
</pages>
</system.web>
</configuration>
My contentPage:
<%@ Page Language="C#" MasterPageFile="~/yuva.master" AutoEventWireup="true" CodeBehind="PicSave.aspx.cs" Inherits="YuvaRK12.PicSave" %>
<asp:Content ID="MypicSave" runat="server" ContentPlaceHolderID= "MainCPH" >
<table id="Main" style="width:100%; height:350px; background-color:White;"><tr><td>
<asp:Label ID="lbl1" runat="server"></asp:Label>
<asp:Label ID="vis" runat="server" ></asp:Label>
<table id="Photo" style=" margin-left:auto; margin-right:auto;">
<tr><td>
<asp:FileUpload ID="FileUpload1" runat="server" />
</td></tr>
<tr><td>
<input id="ImageBT"
type="button"
value="Upload Image"
runat="server"
onserverclick="ImageBT_ServerClick" style=" float:left;" />
</td></tr><tr><td style="border-style:ridge; border-width:3px;">
<center>
<asp:Image id="MyImg" runat="server"
style="width:150px;
height:150px;"
BorderStyle="solid"
BorderWidth="1px"/>
</center>
</td></tr></table> <!-- Photo End Here-->
<center>
<table><tr><td>
<asp:Button ID="SBtn" runat="server"
Text="Submit" BorderStyle="ridge"
BorderWidth="4px"
OnClick="SBtn_Click" />
</td></tr></table>
</center>
</td></tr></table><!--Main End here-->
</asp:Content>
我是缺少在這裏?非常奇怪的Ajax拓正在與母版頁,但不與內容頁!什麼是它的解決方案?.
hnDabhi,工具箱顯示Ajax擴展名,但是當我拖放它到頁面時,它似乎無法控制,顯示沒有屬性顯示在關注控件上,如腳本管理器和更新面板以及錯誤下劃線。 –
你可以分享一些你的代碼,錯誤或截圖;什麼?以便它將問題擴大給我。 – hnDabhi
注意: - 它是在Asp.net Web應用程序不是Ajax啓用應用程序 –