moble control code file
Hi im just writing a mobile web form and wanted to put my c# code in a .cs file. I tried this code
***********************************
<%@ Page Inherits="System.Web.UI.MobileControls.MobilePage" Language="C#" CodeFile="~/Default.aspx.cs"%>
*************************************
I get these errors
************************************
1) Error 1 Validation (XHTML 1.0 Transitional): Element 'head' occurs too few times. \\sideshowbob1\students\s02090619\My Documents\Visual Studio 2005\WebSites\mobile\mobile_location\Default.aspx 6 2 \\sideshowbob1\students\...\mobile_location
************************************
2)
Warning 8 The type 'System.Web.UI.MobileControls.MobilePage' in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET Files\mobile_location\1131b266\4059c4da\App_Web_de fault.aspx.cdcab7d2.2efiscjz.0.cs' conflicts with the imported type 'System.Web.UI.MobileControls.MobilePage' in 'c:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2. 0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll'. Using the one in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET Files\mobile_location\1131b266\4059c4da\App_Web_de fault.aspx.cdcab7d2.2efiscjz.0.cs'. c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\mobile_location\1131b266\4059c4da\App_Web_de fault.aspx.cdcab7d2.2efiscjz.0.cs 156
********************************************
If i remove the CodeFile="~/Default.aspx.cs part of the code the errors dissapear.
Is it possible to use a cs file for mobile controls? Or do I have to use script tags?
Many thanks
CRS
|