Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Atlas Problem

 
Thread Tools Search this Thread
Old 09-17-2006, 01:11 AM   #1
Default Atlas Problem


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" />
&nbsp;
<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>
<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>





GaryDean
  Reply With Quote
Old 09-17-2006, 02:53 AM   #2
Ken Cox [Microsoft MVP]
 
Posts: n/a
Default Re: Atlas Problem
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" />
> &nbsp;
> <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>
> <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>
>
>
>





Ken Cox [Microsoft MVP]
  Reply With Quote
Old 09-17-2006, 07:25 PM   #3
GaryDean
 
Posts: n/a
Default Re: Atlas Problem
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" />
>> &nbsp;
>> <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>
>> <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>
>>
>>
>>

>
>





GaryDean
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46