Contents tagged with ASP.NET
-
Asynchronous error handling change in ASP.NET AJAX 3.5
There is a subtle change in the .NET 3.5 release of the Microsoft Ajax Library that might catch some developers by surprise when handling asynchronous postback errors. The change can be found at the end of the endPostBack function of the PageRequestManager object. In the first release of the Ajax library, if an error was not handled on the client; an alert box was used to convey to the user the error message:
-
ASP.NET 3.5 Extensions History Control Tip
Originally introduced in the ASP.NET Futures package, the history control in the ASP.NET 3.5 Extensions preview comes with a few nice additions. One of the updates is the ability to change the page title when adding a history point. This is important because without updating the title, the history list isn't very much help after a few updates. To illustrate the problem, here is what the history list in IE could look like after adding a few history points:
-
SSL Support for Virtual Earth is here
If you've ever placed a Virtual Earth map or Google map on an HTTPS page then you're probably familiar with the mixed content message that appears when the page loads:
-
ASPInsiders
Recently, along with a few others, I've received the honor of joining the ASPInsiders. It has been a true privilege being a part of such a talented and great group and I look forward to sharing and learning from them as much as possible.
-
ASP.NET AJAX in Action - Finally!
After a long but rewarding journey I'm happy to announce that our book, ASP.NET AJAX In Action, is finally out! Currently, the book is available in eBook format from the Manning web site. On August 24th (next week), the printed book will be available as well. Source code for the book can be freely downloaded from here.
-
ASP.NET AJAX Role Application Service – Visual Studio 2008 (Orcas)
The first version ASP.NET AJAX gave us client-side support for two application services – profile and authentication. In Visual Studio 2008 (Orcas), an additional built-in service has been added: roles. If you’ve downloaded Eilon’s ASP.NET AJAX JavaScript Class Browser and installed the beta 2 (or beta 1) version of .NET 3.5, then you’ll find the new service under the Sys.Services namespace:
Adding support for the role service
If you’re upgrading an ASP.NET 2.0 web site to .NET 3.5 and want to leverage this new built-in service, you’ll have to make a few minor adjustments to web.config (new web sites in .NET 3.5 will already have these configurations). The first change requires adding the role service to the sectionGroup of the configuration settings:
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" /> <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> </sectionGroup>
Next, you need to enable the service from the list of web services under system.web.extensions:
-
We're on .NET Rocks!
A while back, Garbin, Rama and myself did an interview with the .NET Rocks guys. We were given an opportunity to talk about ASP.NET AJAX and our upcoming book. Today, the recording has been released on the site which you can find here. Both Carl and Richard were fun and easy to talk to. Enjoy.
-
MIX07 Session: Extending the Browser Programming Model with Silverlight
There have been a lot of great sessions here at MIX07. To compliment those sessions, there has been some great blog coverage as well. A great post is this one from from Scott Hanselman, that puts things into context quite nicely.
-
ASP.NET AJAX: Client-side event viewer
Often times when an ASP.NET developer is first learning about the page lifecycle, he puts together a simple application that displays the raised events on the page. This widespread technique helps him understand the order in which the events occur, the arguments that are passed along, and ultimately what can and cannot be accomplished during each event.
-
MSDN Webcast Recap: An Introduction to ASP.NET 2.0 Web Parts
First, thank you to everyone who attended the webcast last week on ASP.NET 2.0 Web Parts. During the webcast there were some great questions and I had a fun time doing it. Below are the related links: