Hi,
I try to use an updatepanel and declarative atals together but I have a problem.
When I stat the page, everything is ok (the button to enable/disable the textbox works fine) but when the updatepanel is refreshed (via the click event on the second button) the first button didn't work anymore...
Any idea (I use april CTP) ?
Here is my code :
<form id="form1" runat="server">
<atlas:ScriptManager ID="MyScriptManager" runat="server" EnablePartialRendering="true" />
<atlas:UpdatePanel ID="UpdatePanel" runat="server">
<ContentTemplate>
<div class="description">
<input id="textBox" type="text"/>
<input type="button" id="enabledButton" class="buttonstyle" value="Toggle Enabled Property" />
</div>
</ContentTemplate>
<Triggers>
<atlas:ControlEventTrigger ControlID="Button1" EventName="Click" />
</Triggers>
</atlas:UpdatePanel>
<asp:Button ID="Button1" runat="server" Text="Button" />
</form>
<script type="text/xml-script">
<page xmlns:script="http://schemas.microsoft.com/xml-script/2005">
<components>
<textBox id="textBox" text="Simple text box control" cssClass="textBox">
<bindings>
<binding id="setEnabled" dataContext="textBox" dataPath="enabled" property="enabled" transform="Invert" automatic="false" />
</bindings>
</textBox>
<button id="enabledButton">
<click>
<invokeMethod target="setEnabled" method="evaluateIn" />
</click>
</button>
</components>
</page>
</script>
</body>
Thanks
Olivier
I found the problem in an other thread...
http://forums.asp.net/thread/1316994.aspx
So, it's an known problem...
Olivier
No comments:
Post a Comment