When searching for ASP.NET MVC 2.0, the RC 2 version still appears higher in search engine results. Note however that the final release ASP.NET MVC 2 RTM is available. It is available from Microsoft’s site here.
Posts Tagged ‘asp.net’
ASP.NET MVC 2.0 RTM Download
Friday, April 9th, 2010Building ASP.NET web pages without Visual Studio.NET
Tuesday, January 26th, 2010Related to the previous post, we were tasked with adding pages to an existing third-party ASP.NET web application without having access to the site’s existing code-behind files.
Although a slightly unusual situation, after a little digging around we found that it was quite easy to create the additional pages and integrate them into the website without the usual creation of a web project in Visual Studio.NET. Instead each web page was created manually, here’s what was required:
For each web page create two files…
page.aspx.cs
Simply create a class that inherits from System.Web.UI.Page. This will be the class that represents the web page.
namespace MyNamespace {
public partial class _Default : System.Web.UI.Page
{
}
}
page.aspx
Include the following directive at the top of the aspx page (assuming the aspx file uses a C# code behind file)
<% @ Page Language=”C#” CodeFile=”page.aspx.cs” Inherits=”MyNamespace._Default” Debug=”true” %>
Using namespaces in aspx files
Monday, January 25th, 2010When developing ASP.NET web applications libraries are usually used by including them in the code behind files. On a recent project, which involved maintenance of a client’s existing web application .NET libraries were required for use on the web page but there was no access to the page’s code-behind file.
There is a way to include required namespaces directly within aspx files - in the event that namespaces need to be imported within aspx files you can use the <%Import %> directive.
Example:
<%@ Import namespace=”Enter.Namespace.Here” %>