Beginning Silverlight 2 (eBook)
296 Seiten
Apress (Verlag)
978-1-4302-0570-8 (ISBN)
This book takes you on a guided tour of the new tools available to create Silverlight applications, from Expression Design and Expression Blend through to Visual Studio 2008. It explains how each of the tools performs it's part of the job of putting together well-constructed Silverlight applications and demonstrates this with a series of straight-forward examples that illustrate how developers and designers can perform their roles in harmony. By the end of the book, you will be well prepared to start creating Silverlight applications, both on your own or with the support of a design team.
Robert Lair is the president and chief executive officer of Intensity Software, Inc. and has been working with Microsoft .NET technologies since prior to its initial release in 2000. Among his accomplishments, Robert was on the team that created the original ASP.NET sample application IBuySpy, used to demonstrate the power of ASP.NET. Robert is an active speaker and writer in the development community.
With the need for a richer user experience ever more in focus when creating web applications, Microsoft has released Silverlight, the new cross-browser, cross-platform plug-in that allows developers to create rich interactive applications for the Web.Silverlight poses exciting new opportunities for creating visually impressive web applications, offering unparalleled response times and minimal bandwidth requirements. Key differences in the new design tools present developers with new challenges, but author Robert Lair of IBuySpy notoriety (the original ASP.NET application) shows you how to get a firm handle on Silverlight so you can start creating your own Silverlight web applications with exciting results.Explore the best of the new tools and discover how they can benefit your own projects. Microsoft's Expression Design tool plays an important part in creating Silverlight assets, Microsoft Expression Blend is used to build user interaction for Silverlight elements, and Microsoft Visual Studio 2008 manages the interaction between designers and developers and provides the coding environment for the nuts and bolts basis of Silverlight development. Prepare to take a grand tour of all these new tools and explore the fundamentals of building good Silverlight applications from scratch. Once you've mastered the basics, you'll move on to a more in depth discussion of some of the groundbreaking new features of the Silverlight technology and why they will change the way you build web sites of the future.
Robert Lair is the president and chief executive officer of Intensity Software, Inc. and has been working with Microsoft .NET technologies since prior to its initial release in 2000. Among his accomplishments, Robert was on the team that created the original ASP.NET sample application IBuySpy, used to demonstrate the power of ASP.NET. Robert is an active speaker and writer in the development community.
A table of contents is not available for this title.
CHAPTER 6 Data Access and Networking (S. 117-118)
Data access in Silverlight applications works differently than it does in traditional applications. You’ll need to be aware of how it works and the limitations. In this chapter, we will look at what makes data access different, and then explore mechanisms for accessing data in a Silverlight application.
Data Access in Silverlight Applications
As discussed in Chapter 1, RIAs bridge the gap between Windows-based smart clients and web-based applications. When moving to this type of environment, data access and networking can be confusing. In a Windows-based smart client, the application has access to the database at all times. It can create a connection to the database, maintain state with the database, and remain connected.
On the other hand, a web application is what is known as a pseudo-conversational environment, which is, for the most part, a completely stateless and disconnected environment. When a client makes a request to the web server, the web server processes the request and returns a response to the client. After that response has been sent, the connection between the client and the server is disconnected, and the server moves on to the next client request. No connection or state is maintained between the two.
In Silverlight applications, we have one additional layer of complexity. The application runs from the client’s machine, however, it is still a disconnected environment, because it is hosted within a web browser. There is no concept of posting back for each request or creating a round-trip to the server for data processing. Therefore, data access is limited to a small number of options.
In addition, a Silverlight application has a number of security restrictions placed on it to protect the users from the application gaining too much control over their machine. For instance, the Silverlight application has access to only an isolated storage space to store its disconnected data. It has no access whatsoever to the client’s hard disk outside its “sandbox.” Silverlight’s isolated storage is discussed in more detail in Chapter 7.So what are your options for accessing data in a Silverlight application? The following main mechanisms are available:
• The most common mechanism to access data from a Silverlight application is through web services, typically a WCF service.
• Silverlight applications can access data using ADO.NET Data Services, which provides access to data through a URI syntax.
• Silverlight 2 also has built-in socket support, which allows applications to connect directly to a server through TCP sockets.
• Silverlight 2 has out-of-the-box support for JavaScript Object Notation (JSON), as well as RSS 2.0 and Atom 1.0 syndication feed formats.
Of these mechanisms, we’ll explore accessing WCF services from Silverlight 2 in depth, and then have a high-level look at using sockets. For examples and more information on accessing other data services, refer to Pro Silverlight 2 in C# 2008 by Matthew MacDonald (Apress, 2008).
Erscheint lt. Verlag | 31.1.2009 |
---|---|
Zusatzinfo | 296 p. |
Verlagsort | Berkeley |
Sprache | englisch |
Themenwelt | Mathematik / Informatik ► Informatik ► Software Entwicklung |
Mathematik / Informatik ► Informatik ► Web / Internet | |
Schlagworte | Animation • ASP.NET • Browser • Deployment • Expression Blend • interaction • Scratch • Silverlight • XAML |
ISBN-10 | 1-4302-0570-9 / 1430205709 |
ISBN-13 | 978-1-4302-0570-8 / 9781430205708 |
Haben Sie eine Frage zum Produkt? |
![PDF](/img/icon_pdf_big.jpg)
Größe: 7,3 MB
DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasserzeichen und ist damit für Sie personalisiert. Bei einer missbräuchlichen Weitergabe des eBooks an Dritte ist eine Rückverfolgung an die Quelle möglich.
Dateiformat: PDF (Portable Document Format)
Mit einem festen Seitenlayout eignet sich die PDF besonders für Fachbücher mit Spalten, Tabellen und Abbildungen. Eine PDF kann auf fast allen Geräten angezeigt werden, ist aber für kleine Displays (Smartphone, eReader) nur eingeschränkt geeignet.
Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.
Zusätzliches Feature: Online Lesen
Dieses eBook können Sie zusätzlich zum Download auch online im Webbrowser lesen.
Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.
aus dem Bereich