Click here to Skip to main content
15,892,575 members
Articles / Web Development / ASP.NET

ASP.NET MVC Flexigrid sample

Rate me:
Please Sign up or sign in to vote.
4.75/5 (40 votes)
31 Oct 2008CPOL7 min read 576.3K   18.2K   189  
How to create an ASP.NET MVC sample using LINQ to SQL, Flexigrid for JQuery, and JSON.
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>9.0.30729</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{7E859631-1939-44E9-BB7D-7D89CBBD3F2A}</ProjectGuid>
    <ProjectTypeGuids>{603c0e0b-db56-11dc-be95-000d561079b0};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>Flexigrid</RootNamespace>
    <AssemblyName>CP-Flexigrid</AssemblyName>
    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Core">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Data.DataSetExtensions">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Data.Linq">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Runtime.Serialization">
      <RequiredTargetFramework>3.0</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.ServiceModel">
      <RequiredTargetFramework>3.0</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.ServiceModel.Web">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\..\..\Program Files\Microsoft ASP.NET\ASP.NET MVC Beta\Assemblies\System.Web.Abstractions.dll</HintPath>
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\..\..\Program Files\Microsoft ASP.NET\ASP.NET MVC Beta\Assemblies\System.Web.Mvc.dll</HintPath>
    </Reference>
    <Reference Include="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\..\..\Program Files\Microsoft ASP.NET\ASP.NET MVC Beta\Assemblies\System.Web.Routing.dll</HintPath>
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Xml.Linq">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Drawing" />
    <Reference Include="System.Web" />
    <Reference Include="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
    <Reference Include="System.Xml" />
    <Reference Include="System.Configuration" />
    <Reference Include="System.Web.Services" />
    <Reference Include="System.EnterpriseServices" />
    <Reference Include="System.Web.Mobile" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Controllers\HomeController.cs" />
    <Compile Include="Controllers\JsonController.cs" />
    <Compile Include="Default.aspx.cs">
      <DependentUpon>Default.aspx</DependentUpon>
      <SubType>ASPXCodeBehind</SubType>
    </Compile>
    <Compile Include="FlexigridObject.cs" />
    <Compile Include="Global.asax.cs">
      <DependentUpon>Global.asax</DependentUpon>
    </Compile>
    <Compile Include="JsonSerializer.cs" />
    <Compile Include="Models\Customer.designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Customer.dbml</DependentUpon>
    </Compile>
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="Views\Home\Index.aspx.cs">
      <DependentUpon>Index.aspx</DependentUpon>
      <SubType>ASPXCodeBehind</SubType>
    </Compile>
    <Compile Include="Views\Home\Index.aspx.designer.cs">
      <DependentUpon>Index.aspx</DependentUpon>
    </Compile>
    <Compile Include="Views\Json\FlexigridObject.ascx.cs">
      <DependentUpon>FlexigridObject.ascx</DependentUpon>
      <SubType>ASPXCodeBehind</SubType>
    </Compile>
    <Compile Include="Views\Json\FlexigridObject.ascx.designer.cs">
      <DependentUpon>FlexigridObject.ascx</DependentUpon>
    </Compile>
    <Compile Include="Views\Shared\Error.aspx.cs">
      <DependentUpon>Error.aspx</DependentUpon>
      <SubType>ASPXCodeBehind</SubType>
    </Compile>
    <Compile Include="Views\Shared\Error.aspx.designer.cs">
      <DependentUpon>Error.aspx</DependentUpon>
    </Compile>
    <Compile Include="Views\Shared\Site.Master.cs">
      <DependentUpon>Site.Master</DependentUpon>
      <SubType>ASPXCodeBehind</SubType>
    </Compile>
    <Compile Include="Views\Shared\Site.Master.designer.cs">
      <DependentUpon>Site.Master</DependentUpon>
    </Compile>
  </ItemGroup>
  <ItemGroup>
    <Content Include="App_Data\Northwind.mdf">
    </Content>
    <Content Include="App_Data\Northwind_log.ldf">
      <DependentUpon>Northwind.mdf</DependentUpon>
    </Content>
    <Content Include="Content\flexigrid\accept.png" />
    <Content Include="Content\flexigrid\coffee.png" />
    <Content Include="Content\flexigrid\css\flexigrid\._flexigrid.css" />
    <Content Include="Content\flexigrid\css\flexigrid\._ie.css" />
    <Content Include="Content\flexigrid\css\flexigrid\flexigrid.css" />
    <Content Include="Content\flexigrid\css\flexigrid\images\._fhbg.gif" />
    <Content Include="Content\flexigrid\css\flexigrid\images\._wbg.gif" />
    <Content Include="Content\flexigrid\css\flexigrid\images\bg.gif" />
    <Content Include="Content\flexigrid\css\flexigrid\images\btn-sprite.gif" />
    <Content Include="Content\flexigrid\css\flexigrid\images\ddn.png" />
    <Content Include="Content\flexigrid\css\flexigrid\images\dn.png" />
    <Content Include="Content\flexigrid\css\flexigrid\images\fhbg.gif" />
    <Content Include="Content\flexigrid\css\flexigrid\images\first.gif" />
    <Content Include="Content\flexigrid\css\flexigrid\images\hl.png" />
    <Content Include="Content\flexigrid\css\flexigrid\images\last.gif" />
    <Content Include="Content\flexigrid\css\flexigrid\images\line.gif" />
    <Content Include="Content\flexigrid\css\flexigrid\images\load.gif" />
    <Content Include="Content\flexigrid\css\flexigrid\images\load.png" />
    <Content Include="Content\flexigrid\css\flexigrid\images\magnifier.png" />
    <Content Include="Content\flexigrid\css\flexigrid\images\next.gif" />
    <Content Include="Content\flexigrid\css\flexigrid\images\prev.gif" />
    <Content Include="Content\flexigrid\css\flexigrid\images\up.png" />
    <Content Include="Content\flexigrid\css\flexigrid\images\uup.png" />
    <Content Include="Content\flexigrid\css\flexigrid\images\wbg.gif" />
    <Content Include="Content\flexigrid\css\images\add.png" />
    <Content Include="Content\flexigrid\css\images\close.png" />
    <Content Include="Content\flexigrid\flash.png" />
    <Content Include="Content\flexigrid\flexigrid.js" />
    <Content Include="Content\flexigrid\flexigrid.pack.js" />
    <Content Include="Content\flexigrid\index.html" />
    <Content Include="Content\flexigrid\lib\jquery\jquery.js" />
    <Content Include="Content\flexigrid\sample1.html" />
    <Content Include="Content\flexigrid\style.css" />
    <Content Include="Default.aspx" />
    <Content Include="Global.asax" />
    <Content Include="Views\Json\FlexigridObject.ascx" />
    <Content Include="Web.config" />
    <Content Include="Content\Site.css" />
    <Content Include="Scripts\jquery-1.2.6.js" />
    <Content Include="Scripts\jquery-1.2.6.min.js" />
    <Content Include="Scripts\MicrosoftAjax.js" />
    <Content Include="Scripts\MicrosoftAjax.debug.js" />
    <Content Include="Scripts\MicrosoftMvcAjax.js" />
    <Content Include="Scripts\MicrosoftMvcAjax.debug.js" />
    <Content Include="Views\Home\Index.aspx" />
    <Content Include="Views\Shared\Error.aspx" />
    <Content Include="Views\Shared\Site.Master" />
    <Content Include="Views\Web.config" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Models\Customer.dbml">
      <Generator>MSLinqToSQLGenerator</Generator>
      <LastGenOutput>Customer.designer.cs</LastGenOutput>
      <SubType>Designer</SubType>
    </None>
  </ItemGroup>
  <ItemGroup>
    <Service Include="{3259AA49-8AA1-44D3-9025-A0B520596A8C}" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Content\flexigrid\css\.DS_Store" />
    <None Include="Content\flexigrid\css\._.DS_Store" />
    <None Include="Content\flexigrid\css\flexigrid\._images" />
    <None Include="Content\flexigrid\post.php" />
    <None Include="Content\flexigrid\post2.php" />
    <None Include="Content\flexigrid\pspbrwse.jbf" />
    <None Include="Models\Customer.dbml.layout">
      <DependentUpon>Customer.dbml</DependentUpon>
    </None>
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
  <ProjectExtensions>
    <VisualStudio>
      <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
        <WebProjectProperties>
          <UseIIS>False</UseIIS>
          <AutoAssignPort>True</AutoAssignPort>
          <DevelopmentServerPort>1526</DevelopmentServerPort>
          <DevelopmentServerVPath>/</DevelopmentServerVPath>
          <IISUrl>
          </IISUrl>
          <NTLMAuthentication>False</NTLMAuthentication>
          <UseCustomServer>False</UseCustomServer>
          <CustomServerUrl>
          </CustomServerUrl>
          <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
        </WebProjectProperties>
      </FlavorProperties>
    </VisualStudio>
  </ProjectExtensions>
</Project>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions