???????????????????????????????<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true">
Wish the above can help you.
CTP November (ASPAJAXCTP.msi) has 'been installed' and in the .bin folder are these files :
AtlasControlKit.dll
AtlasControlKit.pdb
Microsoft.Web.Atlas.dll (2.0.50727.6025)
While ASPAJAXCTP.msi 'did install', I will admit being clueless as how to confirm this installation is complete and functioning?
I have 'corrected' this line of code per your valued council, and it now is:
<
asp:ScriptManagerID="ScriptManager1"runat="server"EnablePartialRendering="true"/>Also, I have corrected, re-edited an error in this line and removed
Round = "8"where there was an error and is now writtenRounded=true :<
cc1:DropShadowPropertiesTargetControlID="Panel1"Opacity=".75"Radius="8"Rounded=true/>The code is as follows and it appears there is 'still' a problem. I imagine that my problem is the installation/configuring of 'tools' and how to confirm their installation.
<
body><formid="form1"runat="server"><asp:ScriptManagerID="ScriptManager1"runat="server"EnablePartialRendering="true"/><divstyle="text-align: center"><asp:PanelID="Panel1"runat="server"BackColor="Lime"Height="136px"Style="z-index: 100;left: 178px; position: absolute; top: 103px"
Width="171px"></asp:Panel><cc1:DropShadowExtenderID="DropShadowExtender1"runat="server"><cc1:DropShadowPropertiesTargetControlID="Panel1"Opacity=".75"Radius="8"Rounded=true/></cc1:DropShadowExtender></div></form></
body>I imagine that this is a configuration error where 'files' have yet to be placed in their correct location.
Compilation Error
Description:
An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.Compiler Error Message:BC30560: 'ScriptManager' is ambiguous in the namespace 'Microsoft.Web.UI'.
Source Error:
Line 10: <body>
Line 11: <form id="form1" runat="server">
Line 12: <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" />
Line 13: <div style="text-align: center">
Line 14: <asp:Panel ID="Panel1" runat="server" BackColor="Lime" Height="136px" Style="z-index: 100;
Source File: C:\Documents and Settings\HP_Owner\My Documents\Visual Studio 2005\WebSites\DropShadow\Default.aspxLine: 12
Try to uninstall Atlas from your PC and install Ajax Beta 2 & Futures November CTP.The latest Ajax framework is made of Microsoft Ajax Library,asp.net 2.0 server extensions and Ajax ControlToolkit.You can download Ajax package from here -http://ajax.asp.net/default.aspx?tabid=47&subtabid=471
You should install Ajax Beta 2 first and then install Futures November CTP in your PC. The latest Ajax controltoolkit in Ajax Beta 2 is different from that in Atlas package.You can download the latest Ajax controltoolkit from here -http://www.codeplex.com/AtlasControlToolkit
Besides,after you have installed all the Ajax package,try to check your web.config and compare them to the following web.config.
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="microsoft.web" type="Microsoft.Web.Configuration.MicrosoftWebSectionGroup, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="converters" type="Microsoft.Web.Configuration.ConvertersSection"/>
<sectionGroup name="scripting" type="Microsoft.Web.Configuration.ScriptingSectionGroup, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="webServices" type="Microsoft.Web.Configuration.ScriptingWebServicesSectionGroup, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="Microsoft.Web.Configuration.ScriptingJsonSerializationSection, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false"/>
<section name="profileService" type="Microsoft.Web.Configuration.ScriptingProfileServiceSection, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false"/>
<section name="authenticationService" type="Microsoft.Web.Configuration.ScriptingAuthenticationServiceSection, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<connectionStrings>
<add name="AspForumsConnection" connectionString="Data Source=.;Initial Catalog=Performancing;UID=sa;PWD=Infy_1001"
providerName="System.Data.SqlClient" />
<add name="ProductConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Product.mdf;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<pages>
<controls>
<add tagPrefix="asp" namespace="Microsoft.Web.UI" assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="Microsoft.Web.UI.Controls" assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
<tagMapping>
<add tagType="System.Web.UI.WebControls.CompareValidator" mappedTagType="Microsoft.Web.UI.Compatibility.CompareValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagType="System.Web.UI.WebControls.CustomValidator" mappedTagType="Microsoft.Web.UI.Compatibility.CustomValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagType="System.Web.UI.WebControls.RangeValidator" mappedTagType="Microsoft.Web.UI.Compatibility.RangeValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagType="System.Web.UI.WebControls.RegularExpressionValidator" mappedTagType="Microsoft.Web.UI.Compatibility.RegularExpressionValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagType="System.Web.UI.WebControls.RequiredFieldValidator" mappedTagType="Microsoft.Web.UI.Compatibility.RequiredFieldValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagType="System.Web.UI.WebControls.ValidationSummary" mappedTagType="Microsoft.Web.UI.Compatibility.ValidationSummary, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</tagMapping>
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
</namespaces>
</pages>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies>
</compilation>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="Microsoft.Web.Script.Services.ScriptHandlerFactory, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET" path="ScriptResource.axd" type="Microsoft.Web.Handlers.ScriptResourceHandler" validate="false"/>
</httpHandlers>
<httpModules>
<add name="WebResourceCompression" type="Microsoft.Web.Handlers.WebResourceCompressionModule, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptModule" type="Microsoft.Web.UI.ScriptModule, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="MagicAjax" type="MagicAjax.MagicAjaxModule, MagicAjax" />
</httpModules>
<urlMappings enabled="true">
<add url="~/Home.aspx" mappedUrl="~/Default.aspx?tabindex=0"/>
<add url="~/Forums.aspx" mappedUrl="~/Default.aspx?tabindex=1"/>
<add url="~/Faq.aspx" mappedUrl="~/Default.aspx?tabindex=2"/>
</urlMappings>
<authentication mode="Forms">
<forms name=".MyCookie" cookieless="AutoDetect" protection="All" loginUrl="Login.aspx" slidingExpiration="true" timeout="30" path="/">
<credentials passwordFormat="SHA1"/>
</forms>
</authentication
<membership defaultProvider="AccessMembershipProvider" userIsOnlineTimeWindow="10">
<providers>
<clear/>
<add name="AccessMembershipProvider" type="Samples.AccessProviders.AccessMembershipProvider" connectionStringName="SQLAuth" requiresQuestionAndAnswer="true" applicationName="/Cust" minRequiredPasswordLength="2" enablePasswordRetrieval="true" enablePasswordReset="true" requiresUniqueEmail="true" passwordFormat="Clear" description="Stores and retrieves membership data from SQL Server"/>
</providers>
</membership>
<!--<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" timeout="1" cookieName="PHPSESS_ID@.PLANETRE" cookieless="UseCookies"/>-->
</system.web>
<location path="Members">
<!--This tells ASP.NET that the path "/Members" (the lead / is always implied)
should deny access to all unknown users. When someone tries to access a page
in /Members they will instead be redirected to the login.aspx-->
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add name="ScriptModule" preCondition="integratedMode" type="Microsoft.Web.UI.ScriptModule, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-ISAPI-2.0"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="Microsoft.Web.Script.Services.ScriptHandlerFactory, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptResource" verb="GET" path="ScriptResource.axd" type="Microsoft.Web.Handlers.ScriptResourceHandler"/>
</handlers>
</system.webServer>
</configuration>
You should change the following codes
<cc1:DropShadowExtenderID="DropShadowExtender1"runat="server"><cc1:DropShadowPropertiesTargetControlID="Panel1"Opacity=".75"Radius="8"Rounded=true/></cc1:DropShadowExtender>
for
<%@. Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="Ajax" %>
<Ajax:DropShadowExtender ID="DropShadowExtender1" runat="server" TargetControlID ="panelSetup" Opacity =".75" Radius ="8" Rounded="true">
</Ajax:DropShadowExtender>
Wish the above can help you.
Thanks much for your time. So far all that has been acomplished is to remove and I hope successfully replaced Ajax Beta 2 & Futures November CTP (now December).
A quick once over of the web.config file reveals missing from 'my' web.config file is these lines:
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
</namespaces>
I will insert these lines and cocntinue on.
Thanks much
These lines were found inside the <tagMapping> :
<tagMapping>
<addtagType="System.Web.UI.WebControls.CompareValidator"mappedTagType="Microsoft.Web.UI.Compatibility.CompareValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<addtagType="System.Web.UI.WebControls.CustomValidator"mappedTagType="Microsoft.Web.UI.Compatibility.CustomValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<addtagType="System.Web.UI.WebControls.RangeValidator"mappedTagType="Microsoft.Web.UI.Compatibility.RangeValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<addtagType="System.Web.UI.WebControls.RegularExpressionValidator"mappedTagType="Microsoft.Web.UI.Compatibility.RegularExpressionValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<addtagType="System.Web.UI.WebControls.RequiredFieldValidator"mappedTagType="Microsoft.Web.UI.Compatibility.RequiredFieldValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<addtagType="System.Web.UI.WebControls.ValidationSummary"mappedTagType="Microsoft.Web.UI.Compatibility.ValidationSummary, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</tagMapping>
I review your posts and don't think rouding corner building error is caused by the missing web.config.But it works fine indeed in my PC.If you still have question about this,can you send your project to my email:v-jicwan@.microsoft.com?I will test it.
I believe that I still 'have issues' with my configuration. Within VWD 2005 Express, File 'New Web Site', my options, Visual Studio installed Templates are:
ASP.NET Web Site
ASP.NET AJAX-Enabled Web Site
ASP.NET Web Service
ASP.NET AJAX CTP-Enabled Web
The "How Do I" video with ASP.NET AJAX found here -
http://asp.net/learn/videos/default.aspx?tabid=63
is of course followed I belive, character by character, line by line and with regrets, I do not compile and have a simple panel displayed with rounded corners.
I feel that the "AtlasControlToolkit" could be missing some important elements.
This is the error, copying the exception detail from the clipboard.
System.ArgumentNullException was unhandled by user code
Message="Extender controls require a ScriptManager to be present on the page.\r\nParameter name: scriptManager"
Source="AtlasControlToolkit"
ParamName="scriptManager"
StackTrace:
at AtlasControlToolkit.ExtenderControlBase`2.EnsureScripts(ScriptManager scriptManager) in d:\TFS\AtlasControlToolkit\AtlasControlToolkit\ExtenderBase\ExtenderControlBase.cs:line 193
at AtlasControlToolkit.ExtenderControlBase`2.EnsureScripts() in d:\TFS\AtlasControlToolkit\AtlasControlToolkit\ExtenderBase\ExtenderControlBase.cs:line 178
at AtlasControlToolkit.ExtenderControlBase`2.OnLoad(EventArgs e) in d:\TFS\AtlasControlToolkit\AtlasControlToolkit\ExtenderBase\ExtenderControlBase.cs:line 519
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
The browser 'fails' to load and when closing, I am returned back to VWD 2005 "ExtenderControlBase.cs" tab (page) with the cursor fixed to this string -
int
scriptCount = scriptManager.Scripts.Count;The few lines of code is -
<%
@.PageLanguage="VB"AutoEventWireup="true"CodeFile="Default.aspx.vb"Inherits="_Default" %><%
@.RegisterAssembly="AtlasControlToolkit"Namespace="AtlasControlToolkit"TagPrefix="cc1" %><!
DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.1//EN""http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><
htmlxmlns="http://www.w3.org/1999/xhtml"><
headrunat="server"><title>Untitled Page</title></
head><
body><formid="form1"runat="server"><asp:ScriptManagerID="ScriptManager1"runat="server"/><div><asp:PanelID="Panel1"runat="server"Height="150px"Style="z-index: 100; border-left-color: #ffff33;left: 222px; border-bottom-color: #ffff33; border-top-style: solid; border-top-color: #ffff33;
border-right-style: solid; border-left-style: solid; position: absolute; top: 112px;
background-color: #ffffcc; border-right-color: #ffff33; border-bottom-style: solid"
Width="150px"></asp:Panel><cc1:RoundedCornersExtenderID="RoundedCornersExtender1"runat="server"><cc1:RoundedCornersPropertiesTargetControlID="Panel1"Radius=8/></cc1:RoundedCornersExtender></div></form></
body></
html>It is possible that 'the problem' is installing all the tools of the toolkit. I imagine that I may be missing a few ot the screws and nuts of the toolkit or at least misplaced them someplace. This desktop I am using is a XPhome. Once I receive a Christmas gift of an 80g drive, I shall load 'fresh', VWD 2005 Express, the SQL, and what is found at -
http://ajax.asp.net/default.aspx?tabid=47
The code from the 'learn it' video does display as fortelled in the video when called upon with IE but when I 'load' the code in VWD, then there are these errors.
One thing I woulld like to learn/know, is the file structure, files in the folders and their 'installed' location.
I will try, try again till I get it configured right. Thanks much for your guidence.
There are some codes in your last post which are only suitable to the old Atlas package,but not Ajax Beta 2 or Ajax RC 1.0.If you uninstall the old Ajax package named Atlas and install Ajax Beta 2 or Ajax RC 1.0(the latest Ajax framework) in your PC,you should change some of codes as the following.Otherwise they can not work.There are some changes between the old Atlas control toolkit and the latest Ajax control toolkit.Try to download the latest Ajax RC 1.0 and Futures Dec CTP from here -http://ajax.asp.net/default.aspx?tabid=47&subtabid=471and download the latest Ajax control toolkit from here - http://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=AtlasControlToolkit
Change the following codes in your post
<cc1:DropShadowExtender ID="DropShadowExtender1" runat="server">
?????<cc1:DropShadowProperties TargetControlID ="Panel1" Opacity =".75" Radius ="8" Rounded = true />
</cc1:DropShadowExtender>
for
<%@. Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="Ajax" %
<Ajax:DropShadowExtender ID="DropShadowExtender1" runat="server" TargetControlID ="panelSetup" Opacity =".75" Radius ="8" Rounded="true">
</Ajax:DropShadowExtender>
Here are some sample codes about Ajax:DropShadowExtender which works fine in my PC for your reference.
<div>
<asp:Panel ID="pnlRoundedCorner" runat="server" BackColor="LimeGreen">
<table>
<tr><td id="RoundedCorner">Rounded Corner Rectangle:<asp:TextBox ID="TBRoundedCorner" runat="server"></asp:TextBox></td></tr>
</table>
</asp:Panel>
<Ajax:RoundedCornersExtender ID="RoundedCornersExtender1" runat="server" TargetControlID="pnlRoundedCorner" Radius="60"></Ajax:RoundedCornersExtender>
</div
Wish the above can help you slove your problems.
0 件のコメント:
コメントを投稿