Saturday, March 10, 2012

xml-script support in the v1.0 Beta Release

Hi,

correct. You must also use the CTP if you want to take advantage of xml-script.


hello.

just to add that now element names = class names. so you must use setpropertyaction in xml -script (instead of setproperty)

So now my question is how to get the same functionality without using the xml-script (we can not deploy to production with CTP software). Before we had something similiar to the code below. Now what are my options to getting the same functionality? I am guessing that I would have to write javascript to get the same functionality.

<body>
<form id="form1" runat="server">
<ajax:ScriptManager ID="ScriptManager1" runat="server">
</ajax:ScriptManager>
<div>
<a id="ShowOptionalItemsHyperLink" href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?PostID=1452945#">Promotion</a>
<div id="div1" runat="server" style="visibility: hidden;">
this is it.......
</div>
</div>
<script type="text/xml-script">
<page xmlns:script="http://schemas.microsoft.com/xml-script/2005">
<components>
<control id="div1" visibilityMode="Collapse" />
<hyperLink id="ShowOptionalItemsHyperLink">
<click>
<setProperty target="div1" property="visible" value="true" />
</click>
</hyperLink>
</components>
</page>
</script>

</form>
</body>


hello.

well, that's true. in this case, you should take a look at the $addHandler/$removeHandler methods since they help you in handling the DOM events you need in this case.


Luis Abreu:

just to add that now element names = class names.

What does this mean? Can you rewrite this in a sentence please? I'm having a horrible time converting xml-script databinding based on a MS example to the new Beta 2. It's ridiculous.

No comments:

Post a Comment