LA.NET [EN]

Nov 19

In beta 2, xml-script is maintained in the value-added bits. So, in order to use it, you need to insert the client side script file needed to support its parsing and processing. If you”re using a simple HTML page, just drop the previewscript.js file on that page; if you”re using an ASP.NET page, then you can load it through a ScriptReference:


<asp:ScriptManager runat=”server” id=”manager”>
  <Scripts>
     <asp:ScriptReference Assembly=”Microsoft.Web.Preview” Name=”Microsoft.Web.Resource.ScriptLibrary.PreviewScript.js” />
  </Scripts>
</asp:ScriptManager>


btw, the name of resource can be easily obtained through reflector.

4 comments so far

  1. cpjolly
    7:20 pm - 11-24-2006

    Luis, do you know of anywhere that xml-script is documented ?

    It”s really hard to know how to get started, especially as lots of the examples out there don”t seem to work in the November CTP…

    Thanks for any suggestions

    Chris

  2. Luis Abreu
    10:44 pm - 11-24-2006

    hello.
    well, the best way i know is to read the source files. all the objects that can be used from xml-script have a descriptor property applied to the class and there you”ll be able to see the properties, methods and events which you can use from xml-script.

  3. raffaeu
    3:19 pm - 12-5-2006

    I receive this error

    Assembly ”Microsoft.Web.Preview, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35” does not contain a Web resource with name ”Microsoft.Web.Resource.ScriptLibrary.PreviewScript.js”.

  4. raffaeu
    9:24 am - 12-6-2006

    If i try to open Microsoft.Web.Preview with reflector i can see in the resources folder the Preview.js file but when i try to load it into my ScriptManager i receive this strange error.
    Do you solved the rpblem?

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>