![]() |
|
|
|
#1 |
|
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.EmployeesTableAdap ter" UpdateMethod="Update"> <DeleteParameters> <asp /> </DeleteParameters> <UpdateParameters> <asp <asp <asp <asp /> </UpdateParameters> <InsertParameters> <asp <asp <asp </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> GaryDean |
|
|
|
|
#2 |
|
Posts: n/a
|
Hi Gary,
The first thing I notice is that you aren't enabling partial page rendering. I have no idea why this isn't the default, but try it this way: <atlas:ScriptManager id="ScriptManager1" runat="server" EnablePartialRendering="true"></atlas:ScriptManager> Let us know if this helps? Ken Microsoft MVP [ASP.NET] "GaryDean" <> wrote in message news:%... >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.EmployeesTableAdap ter" > UpdateMethod="Update"> > <DeleteParameters> > <asp > /> > </DeleteParameters> > <UpdateParameters> > <asp > <asp > <asp > <asp > /> > </UpdateParameters> > <InsertParameters> > <asp > <asp > <asp > </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> > > > Ken Cox [Microsoft MVP] |
|
|
|
#3 |
|
Posts: n/a
|
Ken,
Yes that was it. There was nothing wrong with the example at the website. Just pilot error on my part. This Atlas stuff really looks great. -- Regards, Gary Blakely "Ken Cox [Microsoft MVP]" <> wrote in message news:%... > Hi Gary, > > The first thing I notice is that you aren't enabling partial page > rendering. I have no idea why this isn't the default, but try it this way: > > <atlas:ScriptManager id="ScriptManager1" runat="server" > EnablePartialRendering="true"></atlas:ScriptManager> > > Let us know if this helps? > > Ken > Microsoft MVP [ASP.NET] > > "GaryDean" <> wrote in message > news:%... >>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.EmployeesTableAdap ter" >> UpdateMethod="Update"> >> <DeleteParameters> >> <asp >> /> >> </DeleteParameters> >> <UpdateParameters> >> <asp >> <asp >> <asp >> <asp >> /> >> </UpdateParameters> >> <InsertParameters> >> <asp >> <asp >> <asp >> </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> >> >> >> > > GaryDean |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dial Up Problem | smackedass | A+ Certification | 3 | 02-02-2007 11:59 PM |
| Re: Virus Problem ** Help!** | David BlandIII | A+ Certification | 1 | 03-02-2004 06:00 PM |
| Pioneer DVR3100S problem with Satellite receiver Samsung DCR 9500 | Fredrik Bengtsson | DVD Video | 0 | 12-12-2003 02:32 PM |
| Re: Serious Computer Problem | hootnholler | A+ Certification | 1 | 11-24-2003 12:18 PM |
| Re: Serious Computer Problem | Bret | A+ Certification | 0 | 11-19-2003 12:51 AM |