Click here to Skip to main content
15,896,201 members
Articles / Programming Languages / Javascript

VisualJS.NET custom control development

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
14 Nov 2012CPOL4 min read 16.5K   198   13  
How to use custom JavaScript controls under VisualJS.NET.
��<?xml version="1.0" encoding="utf-16"?>

<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

  <PropertyGroup>

    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>

    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>

    <ProductVersion>

    </ProductVersion>

    <SchemaVersion>2.0</SchemaVersion>

    <ProjectGuid>{8403C236-E7A2-49F7-93CD-3FE1953164B3}</ProjectGuid>

    <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>

    <OutputType>Library</OutputType>

    <AppDesignerFolder>Properties</AppDesignerFolder>

    <RootNamespace>SpinnerTest</RootNamespace>

    <AssemblyName>SpinnerTest</AssemblyName>

    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>

    <UseIISExpress>false</UseIISExpress>

  </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="Microsoft.CSharp" />

    <Reference Include="PokeIn, Version=2.0.3.7, Culture=neutral, PublicKeyToken=c03c33f96b41f68a, processorArchitecture=MSIL">

      <SpecificVersion>False</SpecificVersion>

      <HintPath>_dlls\PokeIn.dll</HintPath>

    </Reference>

    <Reference Include="System" />

    <Reference Include="System.Data" />

    <Reference Include="System.Core" />

    <Reference Include="System.Data.DataSetExtensions" />

    <Reference Include="System.Web.Extensions" />

    <Reference Include="System.Windows.Forms" />

    <Reference Include="System.Xml.Linq" />

    <Reference Include="System.Drawing" />

    <Reference Include="System.Web" />

    <Reference Include="System.Xml" />

    <Reference Include="System.Configuration" />

    <Reference Include="System.Web.Services" />

    <Reference Include="System.EnterpriseServices" />

    <Reference Include="System.Web.DynamicData" />

    <Reference Include="System.Web.Entity" />

    <Reference Include="System.Web.ApplicationServices" />

    <Reference Include="VisualJS, Version=1.0.4.0, Culture=neutral, PublicKeyToken=c03c33f96b41f68a, processorArchitecture=MSIL">

      <SpecificVersion>False</SpecificVersion>

      <HintPath>_dlls\VisualJS.dll</HintPath>

    </Reference>

  </ItemGroup>

  <ItemGroup>

    <Content Include="About.aspx" />

    <Content Include="Account\ChangePassword.aspx" />

    <Content Include="Account\ChangePasswordSuccess.aspx" />

    <Content Include="Account\Login.aspx" />

    <Content Include="Account\Register.aspx" />

    <Content Include="Styles\Site.css" />

    <Content Include="Default.aspx" />

    <Content Include="Global.asax" />

    <Content Include="Scripts\jquery-1.4.1-vsdoc.js" />

    <Content Include="Scripts\jquery-1.4.1.js" />

    <Content Include="Scripts\jquery-1.4.1.min.js" />

    <Content Include="VisualJSApp\PokeInHandler.aspx" />

    <Content Include="VisualJSApp\SamplePage.aspx" />

    <Content Include="VisualJSApp\SamplePage2.aspx" />

    <Content Include="VisualJSApp\SpinnerPage.aspx" />

    <Content Include="VisualJSApp\Style\CustomStyle.css" />

    <Content Include="VisualJSApp\Style\ReadMe.txt" />

    <Content Include="Web.config" />

    <Content Include="Web.Debug.config">

      <DependentUpon>Web.config</DependentUpon>

    </Content>

    <Content Include="Web.Release.config">

      <DependentUpon>Web.config</DependentUpon>

    </Content>

    <Content Include="_dlls\PokeIn.dll" />

    <Content Include="_dlls\PokeIn.xml" />

    <Content Include="_dlls\VisualJS.dll" />

    <Content Include="_dlls\VisualJS.xml" />

  </ItemGroup>

  <ItemGroup>

    <Compile Include="About.aspx.cs">

      <DependentUpon>About.aspx</DependentUpon>

      <SubType>ASPXCodeBehind</SubType>

    </Compile>

    <Compile Include="About.aspx.designer.cs">

      <DependentUpon>About.aspx</DependentUpon>

    </Compile>

    <Compile Include="Account\ChangePassword.aspx.cs">

      <DependentUpon>ChangePassword.aspx</DependentUpon>

      <SubType>ASPXCodeBehind</SubType>

    </Compile>

    <Compile Include="Account\ChangePassword.aspx.designer.cs">

      <DependentUpon>ChangePassword.aspx</DependentUpon>

    </Compile>

    <Compile Include="Account\ChangePasswordSuccess.aspx.cs">

      <DependentUpon>ChangePasswordSuccess.aspx</DependentUpon>

      <SubType>ASPXCodeBehind</SubType>

    </Compile>

    <Compile Include="Account\ChangePasswordSuccess.aspx.designer.cs">

      <DependentUpon>ChangePasswordSuccess.aspx</DependentUpon>

    </Compile>

    <Compile Include="Account\Login.aspx.cs">

      <DependentUpon>Login.aspx</DependentUpon>

      <SubType>ASPXCodeBehind</SubType>

    </Compile>

    <Compile Include="Account\Login.aspx.designer.cs">

      <DependentUpon>Login.aspx</DependentUpon>

    </Compile>

    <Compile Include="Account\Register.aspx.cs">

      <DependentUpon>Register.aspx</DependentUpon>

      <SubType>ASPXCodeBehind</SubType>

    </Compile>

    <Compile Include="Account\Register.aspx.designer.cs">

      <DependentUpon>Register.aspx</DependentUpon>

    </Compile>

    <Compile Include="Default.aspx.cs">

      <DependentUpon>Default.aspx</DependentUpon>

      <SubType>ASPXCodeBehind</SubType>

    </Compile>

    <Compile Include="Default.aspx.designer.cs">

      <DependentUpon>Default.aspx</DependentUpon>

    </Compile>

    <Compile Include="Global.asax.cs">

      <DependentUpon>Global.asax</DependentUpon>

    </Compile>

    <Compile Include="Properties\AssemblyInfo.cs" />

    <Compile Include="Site.Master.cs">

      <DependentUpon>Site.Master</DependentUpon>

      <SubType>ASPXCodeBehind</SubType>

    </Compile>

    <Compile Include="Site.Master.designer.cs">

      <DependentUpon>Site.Master</DependentUpon>

    </Compile>

    <Compile Include="VisualJSApp\FormInElement.cs">

      <SubType>Form</SubType>

    </Compile>

    <Compile Include="VisualJSApp\FormInElement.designer.cs">

      <DependentUpon>FormInElement.cs</DependentUpon>

    </Compile>

    <Compile Include="VisualJSApp\Helper\globalAsaxHelper.cs" />

    <Compile Include="VisualJSApp\MainForm.cs">

      <SubType>Form</SubType>

    </Compile>

    <Compile Include="VisualJSApp\MainForm.designer.cs">

      <DependentUpon>MainForm.cs</DependentUpon>

    </Compile>

    <Compile Include="VisualJSApp\PokeInHandler.aspx.cs">

      <DependentUpon>PokeInHandler.aspx</DependentUpon>

      <SubType>ASPXCodeBehind</SubType>

    </Compile>

    <Compile Include="VisualJSApp\SamplePage.aspx.cs">

      <DependentUpon>SamplePage.aspx</DependentUpon>

      <SubType>ASPXCodeBehind</SubType>

    </Compile>

    <Compile Include="VisualJSApp\SamplePage2.aspx.cs">

      <DependentUpon>SamplePage2.aspx</DependentUpon>

      <SubType>ASPXCodeBehind</SubType>

    </Compile>

    <Compile Include="VisualJSApp\SpinnerForm.cs">

      <SubType>Form</SubType>

    </Compile>

    <Compile Include="VisualJSApp\SpinnerForm.designer.cs">

      <DependentUpon>SpinnerForm.cs</DependentUpon>

    </Compile>

    <Compile Include="VisualJSApp\SpinnerPage.aspx.cs">

      <DependentUpon>SpinnerPage.aspx</DependentUpon>

      <SubType>ASPXCodeBehind</SubType>

    </Compile>

    <Compile Include="VisualJSApp\SpinnerPage.aspx.designer.cs">

      <DependentUpon>SpinnerPage.aspx</DependentUpon>

    </Compile>

  </ItemGroup>

  <ItemGroup>

    <Folder Include="App_Data\" />

  </ItemGroup>

  <ItemGroup>

    <Content Include="Account\Web.config" />

    <Content Include="Site.Master" />

  </ItemGroup>

  <ItemGroup>

    <EmbeddedResource Include="VisualJSApp\License\VisualJS.NET.license" />

    <EmbeddedResource Include="VisualJSApp\SpinnerForm.resx">

      <DependentUpon>SpinnerForm.cs</DependentUpon>

    </EmbeddedResource>

  </ItemGroup>

  <ItemGroup>

    <ProjectReference Include="..\CustomControls\WebControls.csproj">

      <Project>{985463FB-28AD-4DFC-8BD5-0AC26C3D7621}</Project>

      <Name>WebControls</Name>

    </ProjectReference>

  </ItemGroup>

  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />

  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />

  <ProjectExtensions>

    <VisualStudio>

      <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">

        <WebProjectProperties>

          <UseIIS>False</UseIIS>

          <AutoAssignPort>True</AutoAssignPort>

          <DevelopmentServerPort>1656</DevelopmentServerPort>

          <DevelopmentServerVPath>/</DevelopmentServerVPath>

          <IISUrl>

          </IISUrl>

          <NTLMAuthentication>False</NTLMAuthentication>

          <UseCustomServer>False</UseCustomServer>

          <CustomServerUrl>

          </CustomServerUrl>

          <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>

        </WebProjectProperties>

      </FlavorProperties>

    </VisualStudio>

  </ProjectExtensions>

  <!-- 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>

  -->

  <Target Name="BeforeBuild">

    <ItemGroup>

      <VSJSLicenseTool Include="VisualJSLicense.exe" />

      <VSJSLicenseFile Include="$(ProjectDir)VisualJSApp\License\VisualJS.NET.license" />

    </ItemGroup>

    <Message Importance="high" Text="Generating License File.." />

    <Exec ContinueOnError="false" WorkingDirectory="$(DevEnvDir)" Command="@(VSJSLicenseTool) -vsproject:&quot;@(VSJSLicenseFile)&quot;" />

    <Message Importance="high" Text="License File is Generated and Embedded." />

  </Target>

  <Target Name="AfterBuild">

    <WriteLinesToFile File="@(VSJSLicenseFile)" Lines="VisualJS.NET License File (Do Not Edit This File)" Overwrite="true" />

  </Target>

</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
Poland Poland
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions