Still, Atlas and javascript problems... here's how to recreate. As you can see, I added a simple javascript function that is not being called from anywhere on my page. When I comment out the javascript function, the code mysteriously works. What gives? Any suggestions?
VS 2005 version 8.0.50727.42
.NET Framework version 2.0.50727
Atlas
A simple javascript function in the head of the html document
<script language="javascript">
function sayHelloAlex(){
for(i = 0; i < 5; i++){
alert('Hello Alex');
}
}
</script> --------------------------------------------
<atlas:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True"></atlas:ScriptManager>
<atlas:UpdatePanel ID="upComments" runat="server">
<ContentTemplate>
<div>
<asp:Button ID="btnAddComment" runat="server" Text="Click Me!" OnClick="btnAddComment_Click" />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</div>
</ContentTemplate>
</atlas:UpdatePanel>
--------------------------------------------
Code-behind:Protected Sub btnAddComment_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Label1.Text = "You just clicked the button"
End Sub