ASP.NET "Client"
The client we are going to produce is a very simple three-paned screen, much like Outlook, with folders on the left, messages on the top right, and message text on the bottom right, as shown in Figure 7-8.
Figure 7-8. Web mail interface
Open Visual Web Developer Express and create a new ASP.NET Web Application named WHSMailWeb
, as shown in Figure 7-9.
Figure 7-9. Creating the ASP.NET web application
When the project loads, we can add our existing WHSMailCommon
and WHSMailHost
projects to the solution and have everything contained in one place. Make sure these two projects are closed in any other IDEs, and then right-click on the WHSMailWeb
solution. From the context menu, select Add→Existing Project... and navigate to the location of your WHSMailCommon
and WHSMailHost
projects, as shown in Figure 7-10. You can also find this command in the standard File menu in Visual Studio.
Figure 7-10. Adding existing projects
Select the .csproj or .vbproj for each project. They will now appear in the Solution Explorer and can be edited and compiled from here.
Back in the WHSMailWeb
project, set a reference to the WHSMailCommon
project, along with the System.ServiceModel
assembly.
Now let's ...
Get Coding4Fun now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.