473,395 Members | 1,558 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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>
<asp:Parameter Name="Original_EmployeeId" Type="Int16"
/>
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="FirstName" Type="String" />
<asp:Parameter Name="LastName" Type="String" />
<asp:Parameter Name="Department" Type="String" />
<asp:Parameter Name="Original_EmployeeId" Type="Int16"
/>
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="FirstName" Type="String" />
<asp:Parameter Name="LastName" Type="String" />
<asp:Parameter 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>

Sep 17 '06 #1
2 1545
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" <Ga******@newsgroups.nospamwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>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>
<asp:Parameter Name="Original_EmployeeId" Type="Int16"
/>
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="FirstName" Type="String" />
<asp:Parameter Name="LastName" Type="String" />
<asp:Parameter Name="Department" Type="String" />
<asp:Parameter Name="Original_EmployeeId" Type="Int16"
/>
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="FirstName" Type="String" />
<asp:Parameter Name="LastName" Type="String" />
<asp:Parameter 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>

Sep 17 '06 #2
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]" <BA**********@newsgroups.nospamwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
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" <Ga******@newsgroups.nospamwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>>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>
<asp:Parameter Name="Original_EmployeeId" Type="Int16"
/>
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="FirstName" Type="String" />
<asp:Parameter Name="LastName" Type="String" />
<asp:Parameter Name="Department" Type="String" />
<asp:Parameter Name="Original_EmployeeId" Type="Int16"
/>
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="FirstName" Type="String" />
<asp:Parameter Name="LastName" Type="String" />
<asp:Parameter 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>


Sep 17 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Justin Lemkul | last post by:
Hello all, I am hoping someone out there will be able to help me. I am trying to install a program that utilizes NumPy. In installing NumPy, I realized that I was lacking Atlas. I ran into...
4
by: Diane Yocom | last post by:
I'm trying to use an Atlas UpdatePanel to just update a label when a text box has changed. The problem is that my textbox is in a user control and I'm using Master Pages - with the combination of...
2
by: Bob | last post by:
Hi, I discovered the new framework 'Atlas' and i want to use it on my existing application. The problem is that on any page of my existing page, the tag <atlas: .../is not recognized. So my...
1
by: TARUN | last post by:
Hello All, I am facing problem regarding Atlas. I have install the AtlasSetup.msi in my .NET framework 2.0, and i open the new Atlas Website...... Let me first explain the my senario, I...
1
by: TARUN | last post by:
Hello All, I am facing problem regarding Atlas. I have install the AtlasSetup.msi in my .NET framework 2.0, and i open the new Atlas Website...... Let me first explain the my senario, I...
2
by: Tina | last post by:
I'm trying to get started with Atlas and associated necessary javascript at the same time. I started out at http://atlas.asp.net/walkthroughs/gettingstarted/basic.net where they have an...
9
by: lanem | last post by:
I installed atlas on my dev machine and everything works great. When I try to get it working on the server, I get this error when building the page: "Request for the permission of type...
4
by: Brad Baker | last post by:
I'm trying to implement a gridview control using atlas & asp.net per the following article: http://weblogs.asp.net/scottgu/archive/2005/12/26/433997.aspx My frustration is that the page I've...
0
by: BillE | last post by:
I have the same problem as identified in http://forums.asp.net/thread/1402420.aspx (Atlas Crashing Visual Studio 2005) I'm using VS2005, visual basic.
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.