locked
Upcoming Changes to ASP.NET 2.0 in Beta 2 RRS feed

  • Question

  • User604330581 posted
    We have recently completed planning for Beta 2 of ASP.NET 2.0 and Visual Studio 2005. For the Beta 2 release, we will deliver a high quality release with a go live license to enable live deployments. To do this, we need to focus on finding and fixing bugs, and raising security, performance, and scalability through targeted analysis and improvements. We also are getting great customer feedback from Beta 1 and earlier preview releases, and need to incorporate key feedback into the product. To enable us to meet these goals, and in response to customer feedback, we have decided to remove a small set of features from ASP.NET 2.0. These features are already available in Beta 1, so we’d like to provide you with some advance notice of what changes are coming, and how you can prepare for them. Mobile Device Adapters for ASP.NET Server Controls ASP.NET 2.0 Beta 1 introduced a new control adapter architecture that allows any ASP.NET server control to create alternate renderings for other browsers, including mobile devices. We also included adapters for many of our built-in server controls, to allow developers to use them to create mobile web applications. At the same time, Beta 1 deprecated the ASP.NET mobile controls, which were used in ASP.NET 1.x to build mobile web applications. In Beta 2, we have decided not to deprecate the V1.x mobile controls. We have instead postponed our plans to ship mobile specific adapters for all controls until a later release. If you plan on writing a mobile web application using ASP.NET 2.0, we recommend that you use the ASP.NET mobile controls, found in System.Web.Mobile.dll. We have also decided not to specifically certify individual new devices for use with the mobile controls, through our product release and device updates. Instead, we will provide adapters for V1.x mobile controls that render markup compliant with common markup languages – HTML, cHTML, XHTML Mobile Profile, and CHTML – and work on standard browsers. For many applications, these adapters will work out of the box for a variety of devices. If desired, you can fine-tune your application for an individual device by creating a new device profile and writing new adapters as necessary. We will provide a profiling tool and adapter source to help you customize your applications. We still plan on including the new control adapter architecture in ASP.NET 2.0. You can write control adapters to customize server controls for individual browsers. For example, you can write a control adapter to generate a different rendering for the Calendar control on Internet Explorer. PhoneLink and ContentPager Controls The mobile support in ASP.NET 2.0 Beta 1 included two new controls that were intended to supersede two features of the ASP.NET mobile controls: the PhoneLink server control to replace the PhoneCall mobile control, and the ContentPager control to replace the ability of mobile forms to automatically paginate content according to the screen size of the target browser. Now that we are bringing back the ASP.NET mobile controls, you can implement these features using . To include a link to a phone number in your page, use the System.Web.UI.MobileControls.PhoneCall control. To paginate the contents of your form, use the Paginate property of the System.Web.UI.MobileControls.Form control. The ContentPager control also allowed developers to paginate the contents of controls for desktop browsers. To create a paginated UI in ASP.NET without the ContentPager control, you can either use a GridView control, which has built-in support for pagination, or extend the DataList control with support for pagination. For an example of a pagination UI on ASP.NET, please refer to the MSDN article Creating a Pager Control for ASP.NET by Dino Esposito. Site counters, DynamicImage Control, and the Image Generation Service After receiving feedback and conducting internal testing and evaluation, we have decided that these features require significant additions or changes in response to customer feedback, or significant additional testing to meet stability or scalability requirements. We have decided to remove these features for ASP.NET 2.0, and will look at adding them in a future version. To employ click tracking on your site in ASP.NET 2.0, we recommend you use a 3rd party solution or build your own using page code. To dynamically generate images from content in a database or from data, you can write an ASP.NET handler (.ashx), and use the ASP.NET cache to store these generated images. The code example at the end of this post (see below) shows a handler that returns an image generated from a business object. WebPartPageMenu Control This control provided a convenient mechanism for switching page personalization modes in pages using the web parts control set. The UI generated by this control is a dropdown list or menu similar to Sharepoint. However, pages often require more flexibility for switching modes than this control provides, and the WebPartManager class makes it easy to programmatically switch personalization mode from any server control. To switch modes, you can use an interactive server control such as a Button, LinkButton, or DropDownList, and write an event handler for it that programmatically switches the personalization mode. For example, the following code will switch the personalization mode of a WebPartManager: WebPartManager1.DisplayMode = WebPartManager.DesignDisplayMode Access Data Providers In Beta 1, ASP.NET application services such as membership and roles include Access data providers, and use them by default. In Beta 2, however, we will replace this functionality with support for SQL Server 2005 Express Edition, the new version of SQL Server which combines the file-based simplicity of Access databases with seamless deployment to full editions of SQL Server. The developer model of using the application services stays 100% the same, but the backend implementation will now be much more robust and performant. DataSetDataSource This control provided the ability to bind to an XML data source using a dataset, but had significant overlap with XmlDataSource (which allows binding to XML data) and ObjectDataSource (which allows binding to data components). We are eliminating this control in the interests of simplicity. Built-in Global Themes Global themes provide a useful way to apply a standard consistent look to web pages, and we anticipate that developers will create and exchange a variety of global themes. However, we have decided not to include any built-in general themes in the product. Developers looking for an attractive set of built-in styles for server controls can use autoformats instead. We will also have an online theme gallery on www.asp.net for RTM that will enable developers to find and share themes for their site. Web Administration Tool Profile/Reports Tab This feature was incomplete in Beta 1, and we have decided not to complete the work in Beta 2. We will release samples that show how to get reporting from profile data. Example – An ASP.NET handler that returns a dynamically generated image <%@ WebHandler Language="C#" Class="ImageHandler" %> using System; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Web; using System.Web.Caching; public class ImageHandler : IHttpHandler { public void ProcessRequest (HttpContext context) { // Get the image ID from querystring, and use it to generate a cache key. String imageID = context.Request.QueryString["PhotoID"]; String cacheKey = context.Request.CurrentExecutionFilePath + ":" + imageID; Byte[] imageBytes; // Check if the cache contains the image. Object cachedImageBytes = context.Cache.Get(cacheKey); if (cachedImageBytes != null) { imageBytes = (Byte[])cachedImageBytes; } else { // Get image from business layer, and save it into a Byte array as JPEG. Image im = PhotoLibrary.GetImage("PhotoID"); MemoryStream stream = new MemoryStream(); im.Save(stream, ImageFormat.Jpeg); stream.Close(); im.Dispose(); imageBytes = stream.GetBuffer(); // Store it in the cache (to be expired after 2 hours). context.Cache.Add(cacheKey, imageBytes, null, DateTime.MaxValue, new TimeSpan(2, 0, 0), CacheItemPriority.Normal, null); } // Send back image. context.Response.ContentType = "image/jpeg"; context.Response.Cache.SetCacheability(HttpCacheability.Public); context.Response.BufferOutput = false; context.Response.OutputStream.Write(imageBytes, 0, imageBytes.Length); } public bool IsReusable { get { return false; } } } Thanks, Shanku Niyogi Group Program Manager Web Platform and Tools Team
    Monday, August 16, 2004 11:12 PM

All replies

  • User-1857819390 posted
    I'm a student doing my thesis about mobile applications. This message gave me a bit of trouble. Since I'm doing a thesis, I'm just doing a prototype (no live production work). Should I concentrate on Beta release 1, and probably be stuck with a lot of bugs, or should I have a look at ASP.NET 1.1 Mobile Controls that will be deprecated in less then half a year (not very clever, when a thesis in some way should be based on new technology). Any recommendations? All kind of thoughts are welcome. Can anybody tell me how well the mobile support in Beta 1 is working? I get a feeling that it worked pretty bad since that’s the part that is postponed, or am I wrong?
    Tuesday, August 17, 2004 9:59 AM
  • User604330581 posted
    You should use the ASP.NET 1.1 Mobile Controls. As mentioned in this post, the Mobile Controls will not be deprecated in ASP.NET 2.0.
    Tuesday, August 17, 2004 8:11 PM
  • User1341174311 posted
    Shanku, You mentioned that the Beta 2 release will include a go live license. Do have a rough idea of the expected release date for Beta 2 is? (Note: I posted to your blog as well) Thanks,
    Wednesday, August 18, 2004 1:00 PM
  • User-1816007260 posted
    SiteCounters, ContentPager, DynamicImage Control and the Image Generation Service are all features I really wish you could keep. I'd rather see them delayed for a while to finish up the bugs than to release it without them. What's all the rush when software isn't ready yet ?
    Wednesday, August 18, 2004 3:41 PM
  • User1479144849 posted
    Hi shankun, So no sitecounter !! is that mean all the proprety for ste counter in linkbutton and hyperlink will be removed, or Microsoft will be kind enough to give us the choice of using those proprety in our own sitecounter implemntation. (WILL BE NICE TO HAVE THEM, PLUS THAT MEANS WE DO NOT HAVE TO BUILD OUR CUSTOM CONTROLS INHERITING FROM ORIGINAL CONTROLS AND AFTER RELEASING VS-2005 WE COME BACK AND CHANGE OUR IMPLEMINTATION TO MEET THE VS-2007 OR SO)
    Saturday, August 21, 2004 8:40 PM
  • User-1929628483 posted
    the dynamic image was EVERYTHING that asp.net 2.0 meant . if u take that out ,that means u did take "the heart" out of the body
    Saturday, January 8, 2005 1:21 PM
  • User1929669313 posted
    When will ASP.NET beta 2 be available for download? Thanks
    Saturday, February 26, 2005 9:52 PM
  • User961349301 posted
    Beta 2 will be probably being released in late Q1.
    Sunday, February 27, 2005 4:42 AM
  • User1572957409 posted
    I have on of the newst Visual Stuido 2005 builds. Since 24hours i try the new SQL Express which replaces the Access storing method, which low success My bed: put back the Access Providers like AccessMembershipProvider. Its easier to handle and to use. If i had to learn the new ASP.NET features and Database Features at the same time the Problems increases 4 times. No good intro for the public. If you agree with that vote on it http://lab.msdn.microsoft.com/ProductFeedback/viewfeedback.aspx?feedbackid=5e8d7e3d-349c-47b4-99b2-8ac7010caa2d
    Sunday, February 27, 2005 7:35 AM
  • User188058532 posted

    Removing Dynamic Image from Visual Studio is the worst idea i've ever heard from Microsoft, there was many cases i've met (specially when you are displaying images inside gridview and this image is stored in SqlServer) using dynamic images is the best way to do it to get over the pain of saving the images as files and pass the filenames to image control

    Monday, May 2, 2005 7:39 AM
  • User1953512855 posted
    re:
    > We will also have an online theme gallery on www.asp.net for RTM
    > that will enable developers to find and share themes for their site.

    What happened to that good idea ?

    Saturday, August 26, 2006 8:24 AM