Monthly Archives: April 2007

Introducing LINQ – Part 3

Salute to Granville Barnett for his third one! Yes, I am talking about the third article about introducing LINQ.
Here is an example:

In Part 2 we took a look at LINQ to SQL, how to generate an entity, and also how to query that entity. In this part we will look a little more at what entities are, as well as taking a closer look at the key types we can use and their application.

view original

Seven JavaScript Techniques You Should Be Using Today

This article I found in Digital Web Magazine and gives extensive idea of how everyone should use JavaScript nowadays. Here is a summary of the best practices which are described there:

– Branch when possible
– Make Flags
– Make bridges
– Try Event Delegation
– Include methods with your getElementsByWhatever
– Encapsulate your code
– Reinvent the wheel

view original

My First Orcas Beta1 Review

vwd on My First Orcas Beta1 Review
Last night I had the chance(meaning time) to download and install the new Beta1 release. Here will share some of my first impressions. Actually I played with WebDeveloper Express version and that one left me with very nice impression.

After clean install on my quite old PC seems very light and not memory consuming. I started new ASP.NET project and wrote some lines. What is obvious is that in the control toolbox on the left you can find all old set of controls as weel as some new ones like AJAX controls. Havent chance to play and investigate much but I have noticed nice and new XML controls.

That Express edition comes with lightweight web server which runs aside IIS, so you dont need to upgrade it or make any configuration there.

While writting code new intellisense made me nice impression as well as the ability to omit function parameters which arent used in the function body.

Stay tooned for more after the weekend.

Here is a link to updated Visual Studio Orcas Samples
Here is a link to Visual Web Developer Orcas Express Edition

First look at Orcas Beta1

aa700831.1VS1 First look at Orcas Beta1
Yes, its here! Well currently not final but it will show you the way. Many new features are planed to ship with the final release. So far some of the new features are:

– Intellisense Everywhere
– Relaxed Delegates
– Multi-Targeting

Here is the download page
Here is the link to a group blog from members of the VB team

Google AJAX Feed API Review

code sm Google AJAX Feed API ReviewGoogle keeps providning us with great services everyday. Today lets have a look at newly released AJAX Feed API. According to Mark Lucovsky from Google you can: “mash up feeds using only a few lines of JavaScript rather than dealing with complex server-side proxies”

JavaScript and XMLHttpRequest use the Same-Origin Policy (SOP). With this policy, scripts can access data from the same host from which the containing page of HTML was served, but not other hosts. This protects users from certain classes of scripting attacks, but prevents many developers from writing AJAX-based mashups. The Google AJAX Feed API offers a simple workaround to these restrictions for a specific type of content available on the web: syndication feeds.

The AJAX Feed API can return feeds in two formats: JSON and XML. By default, the API returns the feed in the JSON format.

The AJAX Feed API JSON format is an abbreviated, canonicalized version of the original feed. It maps Atom and RSS attributes like title, description, and summary to a set of common JSON properties so that you can access Atom and RSS feeds uniformly. For example, the JSON result format returns RSS attribute description as the JSON property content, just like Atom. Likewise, the RSS element pubDate is returned as the JSON property publishedDate to make the results uniform with Atom feeds. The JSON result format is useful if you only want to access standard RSS and Atom elements, and you don’t want to worry about the differences between feed formats.

Links related to the topic:

Combined JSON/XML Result Format
Google AJAX Feed API Developer Guide
AJAX Tune Bar

Silverlight has jus been anounced!

logo main sl Silverlight has jus been anounced!Yesturday at the 2007 National Association of Broadcasters conference (NAB2007), Microsoft Corp. unveiled Microsoft® Silverlight™, a new cross-browser, cross-platform plug-in for delivering the next generation of media experiences and rich interactive applications (RIAs) for the Web.

Microsoft Silverlight, previously called Windows® Presentation Foundation Everywhere (WPF/E), integrates with existing Web technologies and assets to provide higher-quality experiences with lower costs for media delivery. Delivered to end users through a seamless, fast installation, Silverlight offers consistent experiences to both Macintosh and Windows users on a variety of browsers including Internet Explorer®, Firefox and Safari.

view Silverlight web site
view press release

AjaxPro Beta with jQuery Support

Michael Schwarz has provided small example how to implement AJAXPro with jQuery and JSON support. Here are some valueable links and the actual code:

“I forgot to put the beta version online that will support jQuery and json.js from http://www.json.org. You can download the latest beta of the AjaxPro library at http://www.ajaxpro.info/download/jQueryAjaxPro.zip. The download currently includes only the .NET 2.0 library including a Visual Studio .NET 2005 Web Site project.

The C# AjaxMethod

I added a very simple AjaxMethod HelloWorld which will only return a string and get one argument. The reason is that I don’t have included the new JSON converters which will be ready in the next days.
[AjaxPro.AjaxMethod]
public static string HelloWorld(string s)
{
return “Hello ” + s + “!”;
}

view original

Beyond HTML: Rich Internet Applications

Today I came across this great article by Rick Strahl called “Beyond HTML: Rich Internet Applications”. He gives pretty good overview of current and future situation with RIA applications. In the article you will find his opinion over the following topics:

– Windows Presentation Foundation
– XBAP
– WPF/E
– Why Flash isnt the key

PS.
in one of the comments below somebody asks where is SVG, and why isnt it mentioned. I would like to say that SVG is way out of the picture. There are several factors that are seriously on the way to provide multiplatform solution:
– Adobe officially anounced that will stop supporting that format
– Creating SVG application isnt piece of cake and sometimes supporting these is also trouble
– There isnt native browsers support, you will need to install viewers to play SVG

Here is the link to original article by Rick