Friday, March 26, 2010

Silverlight 4 + RIA Services - Ready for Business: Authentication and Personalization

Silverlight 4 + RIA Services - Ready for Business: Authentication and Personalization


Silverlight 4 + RIA Services - Ready for Business: Authentication and Personalization

Posted: 26 Mar 2010 07:32 AM PDT

To continue our series ,  In real business applications our data is often very valuable and as such we need to know who is accessing what data and control certain data access to only users with privilege.  Luckily this is very easy to do with...( read more )...(read more)

Displaying 2D QR barcodes in Windows Phone applications

Posted: 26 Mar 2010 11:37 AM PDT

Last year, enthused by the Starbucks Mobile Card application for the iPhone, I built an app that displays 2D QR barcodes in Silverlight. Today, in two minutes, I got that running on the Windows Phone. Talk about an awesome development experience. These...( read more )...(read more)

Silverlight 4 + RIA Services - Ready for Business: Authentication and Personalization

Posted: 26 Mar 2010 07:32 AM PDT

To continue our series ,  In real business applications our data is often very valuable and as such we need to know who is accessing what data and control certain data access to only users with privilege.  Luckily this is very easy to do with Read More......(read more)

Silverlight 4 + RIA Services - Ready for Business: Authentication and Personalization

Posted: 26 Mar 2010 07:32 AM PDT

To continue our series ,  In real business applications our data is often very valuable and as such we need to know who is accessing what data and control certain data access to only users with privilege.  Luckily this is very easy to do with Read More......(read more)

Silverlight 4 + RIA Services - Ready for Business: Authentication and Personalization

Posted: 26 Mar 2010 07:32 AM PDT

To continue our series ,  In real business applications our data is often very valuable and as such we need to know who is accessing what data and control certain data access to only users with privilege.  Luckily this is very easy to do with RIA Services.  For example, say we want to let only authenticated users access our data in this example.   That is as easy to accomplish as adding an attribute, see line 2 below.    1: [EnableClientAccess] 2: [RequiresAuthentication] 3: public class DishViewDomainService : LinqToEntitiesDomainService<DishViewEntities> 4: { 5:   When we run the application, we now get an error.  Clearly you can do a bit better from a user experience angle… but the message...(read more)

Using jQuery to Insert a New Database Record

Posted: 26 Mar 2010 11:44 AM PDT

The goal of this blog entry is to explore the easiest way of inserting a new record into a database using jQuery and .NET. I'm going to explore two approaches: using Generic Handlers and using a WCF service (In a future blog entry I'll take a look at OData and WCF Data Services). Create the ASP.NET Project I'll start by creating a new empty ASP.NET application with Visual Studio 2010. Select the menu option File, New Project and select the ASP.NET Empty Web Application project template. Setup the Database and Data Model I'll use my standard MoviesDB.mdf movies database. This database contains one table named Movies that looks like this: I'll use the ADO.NET Entity Framework to represent my database data: Select the menu option Project, Add New...(read more)

New Channel 9 Video: The Umbraco Core Team

Posted: 26 Mar 2010 10:09 AM PDT

Earlier this year, I created a new version of my site using Umbraco , and ported my old community server blog over to it. If you're reading on my site now, you're reading this on an umbraco-based blog. I'm still working on porting my main site (wallpaper...( read more )...(read more)

New Channel 9 Video: The Umbraco Core Team

Posted: 26 Mar 2010 10:09 AM PDT

Earlier this year, I created a new version of my site using Umbraco , and ported my old community server blog over to it. If you're reading on my site now, you're reading this on an umbraco-based blog. I'm still working on porting my main site (wallpaper...( read more )...(read more)

Enumerating the Future With Reactive Extensions

Posted: 26 Mar 2010 09:27 AM PDT

Iterating over a collection of items seems like a pretty straightforward mundane concept. I don't know about you, but I don't spend the typical day thinking about the mechanics of iteration, much like I don't spend a lot of time thinking about how a roll of toilet paper is made. At least I didn't until watching Elmo Potty Time with my son. Now I think about it all the time, but I digress. Historically, I've always thought of iteration as an action over a static set of items. You have this collection of elements, perhaps a snapshot of data, and you then proceed to grab a reference to each one in order and do something with that reference. What you do with it is your business. I'm not going to pry. It wasn't till the yield operator was introduced...(read more)

Non-Embedded Content for your Popup Control’s Target Container

Posted: 26 Mar 2010 07:10 AM PDT

Yesterday I posted about client side predicates for Popup controls. Thanks for all the Tweets and Emails. The Popup control is very powerful and Popups are now an expected construct in many web user interfaces. I received a number of questions about using content in Popups that is not embedded in the containing page. Probably the easiest is to use in iFrame inside the Panel container for the Popup. In code it looks like this. Code Snippet < h1 > Modal iFrame </ h1 > < asp : Button ID ="ButtonIFrame" runat ="server" Text ="Button" />< br />< br /> < div > < asp : Panel ID ="PaneliFrame" runat ="server" CssClass ="modalPopup" Style =" display...(read more)

FluentPath now on CodePlex

Posted: 25 Mar 2010 11:23 PM PDT

My FluentPath library is now available on CodePlex. I've also modified the code so that it can now be compiled against .NET 3.5SP1 and not just .NET 4.0. http://fluentpath.codeplex.com/ Read More......(read more)

Silverlight Cream for March 25, 2010 -- #820

Posted: 25 Mar 2010 10:01 PM PDT

In this Issue: René Schulte , Jeremy Likness , Hassan , Victor Gaudioso , SilverLaw , Mike Taulty , Phani Raj , Tim Heuer , Christian Schormann , Brad Abrams , David Anson , Diptimaya Patra , and Daniel Vaughan . Shoutouts: Last week, Koen Zwikstra announced...( read more )...(read more)

Data binding user settings in Windows Phone applications

Posted: 25 Mar 2010 06:02 PM PDT

Thanks to the rich data binding system built into Silverlight for Windows Phone, you can easily store rich user settings without using code behind files. The canonical example of user settings is a "Show this welcome screen at startup" checkbox so that...( read more )...(read more)

Installing Silverlight applications without the browser involved

Posted: 25 Mar 2010 02:50 PM PDT

One of the features we are introducing in Silverlight 4 is a 'silent install' mechanism for out-of-browser applications. Currently every out-of-browser application (trusted or not) starts from an in-browser mechanism. In some instances where you want...( read more )...(read more)

Presenting IIS URL Rewriter 2.0

Posted: 25 Mar 2010 06:13 AM PDT

Optimizing Windows Server-based Web sites for search just got a lot easier now that the final release of IIS URL Rewriter 2.0 is available for download . The newest version of URL Rewriter takes URL simplification to the next level by enabling developers Read More......(read more)

U.S. MSDN Premium Subscribers: Test and Develop at No Cost on Windows Azure

Posted: 25 Mar 2010 07:00 PM PDT

U.S. developers can benefit from no-cost phone and e-mail technical support to help fast-track their cloud application development by using Front Runner for Windows Azure. As an MSDN Premium Subscriber, you can leverage your MSDN subscription to obtain over 700 hours of compute time on Windows Azure to test and develop your latest cloud applications.

SketchFlow Training Videos

Posted: 25 Mar 2010 07:00 PM PDT

Ready to learn how you can create interactive prototypes with SketchFlow in Expression Blend 3? Get started with this 12-part series with downloadable guide and files.

Tip#102: Did you know… How to specify tag specific formatting

Posted: 25 Mar 2010 11:22 AM PDT

Let's see this with an example.  I have the following html code on my page. Now if I format the document by selecting Edit –> Format document (or Ctrl K, Ctrl D) The document becomes I want the content inside td should remain on the same line...(read more)

To the command line enthusiasts: Some quick know-hows for Upgrading to VS 2010

Posted: 25 Mar 2010 01:07 PM PDT

Hello, I am Renin John, a Software Development Engineer in Test from the VC++ Project and Build team. I am aware that some of you prefer to do your daily work from the command prompt rather than from the IDE. I thought it would help if I put together instructions for the same using the knowledge I acquired testing Project Conversion.

 

In order to perform an upgrade from a prior version of Visual Studio (VC6 through VS 2008) through the command line, you could use one of the following tools:

 

1.       devenv.exe

2.       VCUpgrade.exe

 

They'll come in handy even if you're thinking of scripting the conversion process.

 

1.       DevEnv.exe:

 

Like in the previous versions, you could upgrade using the devenv.exe command: just invoke it with the "/upgrade" switch. The location of devenv.exe is specified by the DevEnvDir environment variable in the VS 2010 command prompt window.

 

Command:            a) To upgrade solution file: devenv.exe /upgrade <solution file (.sln)>; or

                              b) To upgrade project file: devenv.exe /upgrade <project file (.vcproj)>

 

This command will generate a log file named UpgradeLog.XML (UpgradeLog2.XML if UpgradeLog.XML already exists, UpgradeLog<n+1> if UpgradeLog<n> already exists, where n=2,3,…) at the end of conversion, that will contain the detailed list of errors/warnings from the conversion of the solution/project files.

 

Note:

i)  Conversion on the command line using devenv.exe is not supported for VC6.

ii) Since the devenv.exe command is not available in the VC Express SKU, this form of conversion is not applicable here.

Hence for the above two cases, you would need to stick to the VS IDE. However, if it's for a single project file, you have the option of using VCUpgrade.exe (described below).

 

2.       VCUpgrade.exe

 

This is a new tool introduced in VS 2010. It is located in the directory specified by the VS100COMNTOOLS environment variable in the VS 2010 command prompt window.

 

It is going to be included in the next release of WinSDK, so the users will be able to convert their SDK based samples even if they do not have devenv.exe or rather, Visual Studio installed.

 

Command: vcupgrade.exe <project file (.dsp/.vcproj)>

 

The conversion results will be displayed in the command window once the conversion is complete.

 

If you are re-converting your project file, invoke VCUpgrade with the "/overwrite" switch, otherwise the existing files will not be replaced.

 

Note: This tool has some limitations and cannot be used to convert solution files. It is recommended only for single project files: those which do not contain project to project references, and whose solution files do not contain project dependencies as this information from the solution will be lost during conversion (This is because, in VS 2010, solution dependencies are converted into project-to-project references). Use the devenv.exe tool (explained earlier) instead in these other cases, which is generally more preferred over VCUpgrade.

 

Reversing the upgrade:

 

a)      If you did a solution file upgrade:

Go to the directory containing the solution and run:

del /S *.vcxproj* *.props

del *.sln UpgradeLog*.XML

move Backup\*.sln .

for /F %B in ('dir /B Backup*') do rd /S /Q %B

rd /S /Q _UpgradeReport_Files

 

b)      If you did a project file upgrade:

Go to the directory containing the project file and run:

del /S *.vcxproj* *.props

del UpgradeLog*.XML

rd /S /Q _UpgradeReport_Files

 

You could just throw these commands into a batch file and let it take care of this for you (Replace %B above with %%B if in the batch script).

Note: If the directory containing the particular solution/project contains other solution/project files that you do not want to have deleted, please modify the commands accordingly. Also, if your project uses ".props" files located somewhere outside this directory, take care to delete those files as well.

 

Hope you enjoyed this blog. Do let me know if you have any questions/comments.

 

Installing Silverlight applications without the browser involved

Posted: 25 Mar 2010 02:50 PM PDT

One of the features we are introducing in Silverlight 4 is a 'silent install' mechanism for out-of-browser applications. Currently every out-of-browser application (trusted or not) starts from an in-browser mechanism. In some instances where you want Read More......(read more)

No comments:

Post a Comment