G
GaryDean
I have an asp.net app using Atlas (july ctp) written from an example I
found at the 4guysfromrolla.com site. It's very much like the examples
I find at this site. I have pasted the body of the aspx page below.
As you can see it has the ScriptManager the page and then, inside an
UpdatePanel
it has a GridView and a datasource. The app runs but anytime an action
is taken such as a page change or an update it causes a normal klunky
postback just as though the Atlas components were not on the page.
So, it doesn't work as expected.
Can anyone tell me what is wrong?
Thanks,
Gary
<body>
<form id="form1" runat="server">
<atlas:ScriptManager ID="ScriptManager1" runat="server" />
<atlas:UpdatePanel ID="UpdatePanel1" runat="server"
Mode="Conditional">
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="EmployeeId"
DataSourceID="ObjectDataSource1">
<Columns>
<asp:CommandField ShowEditButton="True" />
<asp:BoundField DataField="EmployeeId"
HeaderText="EmployeeId" InsertVisible="False"
ReadOnly="True" SortExpression="EmployeeId" />
<asp:BoundField DataField="FirstName"
HeaderText="FirstName" SortExpression="FirstName" />
<asp:BoundField DataField="LastName"
HeaderText="LastName" SortExpression="LastName" />
<asp:BoundField DataField="Department"
HeaderText="Department" SortExpression="Department" />
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
DeleteMethod="Delete"
InsertMethod="Insert"
OldValuesParameterFormatString="original_{0}" SelectMethod="GetData"
TypeName="DataSet1TableAdapters.EmployeesTableAdapter"
UpdateMethod="Update">
<DeleteParameters>
<asparameter Name="Original_EmployeeId" Type="Int16"
/>
</DeleteParameters>
<UpdateParameters>
<asparameter Name="FirstName" Type="String" />
<asparameter Name="LastName" Type="String" />
<asparameter Name="Department" Type="String" />
<asparameter Name="Original_EmployeeId" Type="Int16"
/>
</UpdateParameters>
<InsertParameters>
<asparameter Name="FirstName" Type="String" />
<asparameter Name="LastName" Type="String" />
<asparameter Name="Department" Type="String" />
</InsertParameters>
</asp:ObjectDataSource>
</ContentTemplate>
</atlas:UpdatePanel>
</form>
<script type="text/xml-script">
<page xmlns:script="http://schemas.microsoft.com/xml-script/2005">
<references>
</references>
<components>
</components>
</page>
</script>
</body>
found at the 4guysfromrolla.com site. It's very much like the examples
I find at this site. I have pasted the body of the aspx page below.
As you can see it has the ScriptManager the page and then, inside an
UpdatePanel
it has a GridView and a datasource. The app runs but anytime an action
is taken such as a page change or an update it causes a normal klunky
postback just as though the Atlas components were not on the page.
So, it doesn't work as expected.
Can anyone tell me what is wrong?
Thanks,
Gary
<body>
<form id="form1" runat="server">
<atlas:ScriptManager ID="ScriptManager1" runat="server" />
<atlas:UpdatePanel ID="UpdatePanel1" runat="server"
Mode="Conditional">
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="EmployeeId"
DataSourceID="ObjectDataSource1">
<Columns>
<asp:CommandField ShowEditButton="True" />
<asp:BoundField DataField="EmployeeId"
HeaderText="EmployeeId" InsertVisible="False"
ReadOnly="True" SortExpression="EmployeeId" />
<asp:BoundField DataField="FirstName"
HeaderText="FirstName" SortExpression="FirstName" />
<asp:BoundField DataField="LastName"
HeaderText="LastName" SortExpression="LastName" />
<asp:BoundField DataField="Department"
HeaderText="Department" SortExpression="Department" />
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
DeleteMethod="Delete"
InsertMethod="Insert"
OldValuesParameterFormatString="original_{0}" SelectMethod="GetData"
TypeName="DataSet1TableAdapters.EmployeesTableAdapter"
UpdateMethod="Update">
<DeleteParameters>
<asparameter Name="Original_EmployeeId" Type="Int16"
/>
</DeleteParameters>
<UpdateParameters>
<asparameter Name="FirstName" Type="String" />
<asparameter Name="LastName" Type="String" />
<asparameter Name="Department" Type="String" />
<asparameter Name="Original_EmployeeId" Type="Int16"
/>
</UpdateParameters>
<InsertParameters>
<asparameter Name="FirstName" Type="String" />
<asparameter Name="LastName" Type="String" />
<asparameter Name="Department" Type="String" />
</InsertParameters>
</asp:ObjectDataSource>
</ContentTemplate>
</atlas:UpdatePanel>
</form>
<script type="text/xml-script">
<page xmlns:script="http://schemas.microsoft.com/xml-script/2005">
<references>
</references>
<components>
</components>
</page>
</script>
</body>