Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 23rd, 2012, 03:40 PM
Friend of Wrox
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default Ajax content template question

Considering the following snippet of markup code:
Code:
  <asp:UpdatePanel runat="server" ID="DeparmentsUpdatePanel">
    <ContentTemplate>
       <asp:GridView id="departmentsGrid" runat="server" AllowPaging="True" PageSize="4" 
        onpageindexchanging="departmentsGrid_PageIndexChanging1" 
        onsorting="departmentsGrid_Sorting1">
  </asp:GridView>

 </ContentTemplate>
Why is it necessary to wrap the gridview in a ContentTemplate tag in order for the Upadate Panel to render the gridview data/content? Is contentTemplate part of the UpdatePanel functionality? I thought Update Panel was a stand alone widget or device. Because when I try to take the ContentTemplate tag out the above listed code, the compiler for Visual studio goes crazy throws a bunch of warning and errors and tells me that I can't do that. Boy howdy does the Visual Studio compiler complain about it when I do that let me tell you. Also on similar note, I noticed that after loading up my Visual Studio with the AJAX control toolkit from what I had on Visual Studio from over a year ago after the hard drive on my other computer crashed that the AJAX control toolkit has added a whole new slew of AJAX widgets in the AJAX control toolkit that I didn't see a year ago or at least it seems that way to me. So it might just seem that despite the oncoming rush for JQuery that AJAX doesn't seem to want to be going anywhere or away fast when it comes to .NET web development. Am I wrong about this?
Also while I have you here. I know that you have touched on this issue before, but I still have some confusion in my mind about the difference between heavily typed datasets and LINQ and ET. What is the difference between the two and what are the similarities? Does this mean that heavily typed datasets are rapidly becoming a thing of the past?

Thanks once again!
 
Old March 24th, 2012, 05:01 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
I thought Update Panel was a stand alone widget or device.
It is. But it uses a nested ContentTemplate control to define its contents. Since the UpdatePanel can also contain triggers (in the <Triggers /> element), the UpdatePanel uses the ContentTemplate to distinguish between content and triggers. Many other controls use child controls as well.

No-one said AJAX is going away. What is going away and is getting replaced with jQuery is the Microsoft client side AJAX library. The toolkit is still going string despite the many alternatives.

Quote:
I still have some confusion in my mind about the difference between heavily typed datasets and LINQ and ET
.I assume you mean strongly typed data sets.

DataSet have a very strong relationship with the database and carry a lot of overhead. You can find the differences between typed and untyped datasets here:
http://stackoverflow.com/questions/4...typed-datasets
https://www.google.com/#hl=en&sclien...=1050&bih=1318

For the differences between typed datasets and your own POCO objects for EF / LINQ to SQL

http://stackoverflow.com/questions/1...tasets-ado-net
http://stackoverflow.com/questions/4...atasets-in-net
https://www.google.com/#hl=en&sclien...=1050&bih=1318

Quote:
Does this mean that heavily typed datasets are rapidly becoming a thing of the past?
IMO, they already are. I don't think I've used or create one in the past four years or so.....

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Disappearing UserName & Question within Customized PasswordRecovery Question Template eddiemcham ASP.NET 3.5 Basics 13 June 13th, 2009 04:23 AM
content template manisha agarwal ASP.NET 2.0 Basics 1 September 2nd, 2008 10:09 AM
Ajax- loading content spacecraft Ajax 2 May 3rd, 2007 06:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.