Monday, March 12, 2012

Works in ASP.Net Web matrix - but not Frontpage

I have code working in Web Matrix but when I load it into Frontpage and publish it, I receive errors. The error listing is below and has what appears to be a clear explanation - but not to me unfortunately. Greatly appreciate any help.

Compiler Error Message: CS1040: Preprocessor directives must appear as the first non-whitespace character on a line

Source Error:

Line 137: <td>
Line 138: <p>
Line 139: Photo: <img src="http://pics.10026.com/?src=<%# DataBinder.Eval(Container.DataItem,"SmallPhotoPathway") % /><%# DataBinder.Eval(Container.DataItem,"SmallPhotoFilename") %>" </img>
Line 140: </p>
Line 141: </td
Source File: c:\inetpub\wwwroot\Web-Dev\birdSearch.aspx Line: 139Check out this article on how to use FrontPage with ASP.NET:

http://msdn.microsoft.com/office/default.aspx?pull=/library/en-us/odc_fp2003_ta/html/odc_FPUsingASPNETWithFrontPage2003.asp

0 comments:

Post a Comment