I'm not getting xml-support on beta 2. why?

Published Sun, Nov 19 2006 6:08

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.

Filed under: ,

Comments

# cpjolly said on Friday, November 24, 2006 1:20 PM

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

# Luis Abreu said on Friday, November 24, 2006 4:44 PM

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.

# raffaeu said on Tuesday, December 05, 2006 9:19 AM

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'.

# raffaeu said on Wednesday, December 06, 2006 3:24 AM

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 Comment

(required) 
(required) 
(optional)
(required)