Browse by Tags
All Tags »
How To (
RSS)
How to create a CSHTML and WebMatrix TweetMeme Helper Microsoft has recently introduced the first beta of its new stack for building great web sites – WebMatrix . One of the key components of WebMatrix is the ASP.Net Web Pages “Razor” Syntax (or simply: CSHTML ) that lets you write C# code inside the HTML markup. Helpers in WebMatrix Among the new possibilities and simplicity that this approach brings to people who build web sites, there is also the notion of Helper . Helpers are a way to use a single...
How To: Call a Java EE Web Service from a .Net Client
Many organizations have server side investments in Java technologies. While they want to build a compelling UI with Microsoft’s latest technologies, such as WPF and Silverlight, they still want to benefit from those existing investments instead of rewriting them. In order to do so, we have to bridge between those technologies and allow client side technologies consume Java web services.
This post is a step by step guide for building a Java EE Web Service, and a .Net client application that consumes it.
...
Visual Studio 2008 SP1: EntityDataSource for ASP.Net EntityDataSource is a new DataSource control for ASP.Net (just like ObjectDataSource and SQLDataSource and more recent - LinqDataSource) which makes declaratively binding ASP.NET UI controls to Entity Data Models very easy. In this post I will build a simple web application that uses EntityDataSource in order to demo how it is being used. 1. Create a simple Web Application, and create an initial GridView on it. < body > < form id ="form1"...
SQL Server 2008 FILESTREAM - Part 1 SQL Server 2008 has a lot of new cool features that I've talked about before: SQL Server 2008 IntelliSense SQL Server 2008 T-SQL: DECLARE and SET in the Same Statement SQL Server 2008 T-SQL: Insert Multiple Rows SQL Server 2008 T-SQL: MERGE Statement One of the great features in SQL 2008 is it's FILESTEAM support. To make things short, we can now not only store the path to the file in our database, but we can now store the whole file inside the SQL Server...
Compare .Net Assemblies with Framework Design Studio Trying to keep up with all the Alphas, Betas and CTP's, I was looking for a tool that will help me to compare .Net assemblies so that I can easily spot what's new in each drop. Just when I didn't find a suitable tool and was about to write one for my self, I noticed Framework Design Studio , by Krzysztof Cwalina, Hongping Lim and David Fowler. From the Framework Design Studio Home Page: " Framework Design Studio is a set of tools...
ADO.Net Data Services Part 1 - Building a Simple Web Data Service This post is part of my Get Started with ADO.Net Data Services post series. This post is a step by step guide for building a Simple Web Data Service for the Blog database I posted in the last post . 1. Create a new standard ASP.Net Web Application . Notice that there is no special project template for a Web Data Service, and later we will see the new item template. In this guide, I called my web application BlogWebApp . 2. Create...
How To: Create a RSS Syndication Service with WCF This post is a step by step guide for creating a Syndication Service with WCF. In this guide, I will create a WCF Service that returns my blogs posts as RSS 2.0 and ATOM items, that can be consumed with an RSS Reader. Creating the Service Contract 1. Create a new Class Library, and add references to the System.Runtime.Serialization.dll which contains the basic attributes used for serialization, System.ServiceModel.dll which contains the WCF components...
How To: Model Inheritance in Databases Playing with some Object Relational Mapping technologies these days such as Linq to SQL and ADO.Net Entity Framework , one of the capabilities that is important to check is which strategies of inheritance modeling is supported by each technology. This post talks about how to model inheritance in the database, regardless the technology that we will use later to talk to the database. Assuming that the business entities look somewhat similar to this: There are...
This post is a step by step guide on how to write a custom validator using Application Block Software Factory and integrate it in the configuration editor of Enterprise Library.
...
How To: Create Virtual Directory for your Service using Script When you want to host your WCF Service in IIS, you should follow several steps: 1. Your service should compile to \bin directory instead of \bin\debug 2. You must change the name of the configuration file from app.config to web.config 3. Create a .svc file in a specific format. and 4. Create a virtual directory in IIS that points to the physical location of you service (probably not a subdirectory of wwwroot..) I am using 2 scripts for...