Ihre beste Quelle der Informationen und der Nachrichten ungefhr Kleinteile, Vista und Microsoft auf dem Internet

Vista ARTIKEL OBERSEITE 50 Vista VIDEOS Vista WEICH Vista HILFE

Ermglichen Sie ASP.NET AJAX v1.0 zu Ihrer vorhandenen ASP.NET 2.0 Web site oder Netz-Anwendung.


Vor wenigen Tagen, teilte ich ber, wie man Ihr ASP.NET 1.1 bis ASP.NET 2.0, dieses mal verbessert, das ich mich ber das Ermglichen VON ASP.NET AJAX v1.0 zu Ihrer vorhandenen Web site oder Netz-Anwendung besprechen werde.

1) Sie mssen downlaod und die ASP.NET 2.0 AJAX Verlngerungen 1.0 anzubringen. Hier
2) Sie knnen and Extrakt the ASP.NET AJAX SteuerToolkit downloaden. Hier

Nach bringen Sie es an, finden Sie heraus, da Sie AJAX herstellen knnen ermglicht Netz-Anwendung, wenn Sie neue Projekte verursachen (Web site oder Netz-Anwendung). Sie knnen auch herausfinden, da es einen neuen Vorsprung gibt, der „AJAX Verlngerungen“ im Toolbox genannt wird. Wenn Sie den ASP.NET AJAX SteuerToolkit extrahiert haben, knnen Sie das folgende tun,

1) Verursachen Sie den neuen Vorsprung, der „AJAX SteuerToolkit“ genannt wird;
2) Rechtes Klicken unter dem verursachten Vorsprung und klickt an „whlt Einzelteile…“;
3) Klicken „grast…“ und grasen Sie zum Heft, dem Sie den ASP.NET AJAX SteuerToolkit extrahieren, und dann grasen Sie „~ \ SampleWebSite \ Sortierfach \“ und whlen Sie AjaxControlToolokit.dll vor
4) Jetzt sehen Sie eine Menge Kontrollen, die Sie bereit sind, zu verwenden. Sie knnen grasen und ansehen „Toolkit Phasen“ die Probe und die Idee auf den Kontrollen erhalten.

Sie sind jetzt bereit, Ihre AJAX Web site oder Netzanwendung zu errichten. Jedoch wenn Sie irgendeine vorhandene ASP.NET 2.0 Web Aufstellungsort-oder Netz-Anwendung haben, tun Sie die normale Ttigkeit, um AJAX zu schreiben, finden Sie heraus, da der AJAX nicht in Ihrer vorhandenen Web site oder Netz-Anwendung arbeitet. Sie mssen das folgende tun zwecks lieen Ihre vorhandene ASP.NET 2.0 Web site oder Netz-Anwendung „ermglichter AJAX“ sein,

1) ffnen Sie web.config von Ihrer vorhandenen Web site oder Netzanwendung
2) Fgen Sie das folgende XML unter <Konfiguration hinzu> Tab.

<configSections>
  <sectionGroup name=“ system.web.extensions“ type=“ System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 ″>
  <sectionGroup name=“ scripting“ type=“ System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 ″>
  <Kapitelname =“ scriptResourceHandler“ type=“ System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, ″ PublicKeyToken=31bf3856ad364e35 requirePermission=“ falsches“ allowDefinition=“ MachineToApplication“/>
  <sectionGroup name=“ webServices“ type=“ System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 ″>
  <Kapitelname =“ jsonSerialization“ type=“ System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, ″ PublicKeyToken=31bf3856ad364e35 requirePermission=“ falsches“ allowDefinition=“ berall“/>
  <Kapitelname =“ profileService“ type=“ System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, ″ PublicKeyToken=31bf3856ad364e35 requirePermission=“ falsches“ allowDefinition=“ MachineToApplication“/>
  <Kapitelname =“ authenticationService“ type=“ System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, ″ PublicKeyToken=31bf3856ad364e35 requirePermission=“ falsches“ allowDefinition=“ MachineToApplication“/>
  </sectionGroup>
  </sectionGroup>
  </sectionGroup>
  </configSections>

  <system.web>
  <Seiten>
  <Kontrollen>
  <addieren Sie tagPrefix=“ Asp“ namespace=“ System.Web.UI“ assembly=“ System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, ″ PublicKeyToken=31bf3856ad364e35/>
  </controls>
  </pages>
  <! -
  Stellen Sie Kompilation debug=“ zutreffend“ ein, um das Ausprfen einzusetzen
  Symbole in die kompilierte Seite. Weil dieses
  beeinflut Leistung, stellt diesen Wert ein, um nur auszurichten
  whrend der Entwicklung.
  ->
  <Kompilation debug=“ falsch“>
  <Versammlungen>
        <add assembly=”System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″/>
      </assemblies>
    </compilation>

    <httpHandlers>
      <remove verb=”*” path=”*.asmx”/>
      <add verb=”*” path=”*.asmx” validate=”false” type=”System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″/>
      <add verb=”*” path=”*_AppService.axd” validate=”false” type=”System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″/>
      <add verb=”GET,HEAD” path=”ScriptResource.axd” type=”System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ validate=”false”/>
    </httpHandlers>

    <httpModules>
      <add name=”ScriptModule” type=”System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″/>
    </httpModules>
  </system.web>

  <system.web.extensions>
    <scripting>
      <webServices>
      <!– Uncomment this line to customize maxJsonLength and add a custom converter –>
      <!–
      <jsonSerialization maxJsonLength=”500″>
        <converters>
          <add name=”ConvertMe” type=”Acme.SubAcme.ConvertMeTypeConverter”/>
        </converters>
      </jsonSerialization>
      –>
      <!– Uncomment this line to enable the authentication service. Include requireSSL=”true” if appropriate. –>
      <!–
        <authenticationService enabled=”true” requireSSL = “true|false”/>
      –>

      <!– Uncomment these lines to enable the profile service. To allow profile properties to be retrieved
           and modified in ASP.NET AJAX applications, you need to add each property name to the readAccessProperties and
           writeAccessProperties attributes. –>
      <!–
      <profileService enabled=”true”
                      readAccessProperties=”propertyname1,propertyname2″
                      writeAccessProperties=”propertyname1,propertyname2″ />
      –>
      </webServices>
      <!–
      <scriptResourceHandler enableCompression=”true” enableCaching=”true” />
      –>
    </scripting>
  </system.web.extensions>

  <system.webServer>
    <validation validateIntegratedModeConfiguration=”false”/>
    <modules>
      <add name=”ScriptModule” preCondition=”integratedMode” type=”System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″/>
    </modules>
    <handlers>
      <remove name=”WebServiceHandlerFactory-Integrated” />
      <add name=”ScriptHandlerFactory” verb=”*” path=”*.asmx” preCondition=”integratedMode”
           type=”System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″/>
      <add name=”ScriptHandlerFactoryAppServices” verb=”*” path=”*_AppService.axd” preCondition=”integratedMode”
           type=”System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″/>
      <add name=”ScriptResource” preCondition=”integratedMode” verb=”GET,HEAD” path=”ScriptResource.axd” type=”System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ />
    </handlers>
  </system.webServer>

Now you are ready to make your web site or web application to be “AJAX Enabled”.

Popularity: 3%


Written by kenlin@HK [MVP]. Read more great feeds at is source WEBSITE
no comments.
Read more articles on msdn and .NET Framework and Visual Studio.

Related articles

No comments

There are still no comments on this article.

Leave your comment...

If you want to leave your comment on this article, simply fill out the next form:




You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> .