I have the code here as in the following:

<%@ Import Namespace="System.Data" %>
<%@ Page Language="C#" Debug="true" %>

<script  runat="server">
sub Page_Load
if Not Page.IsPostBack then
   dim mycdcatalog=New DataSet
   cdcatalog.DataSource= mycdcatalog
end if
end sub


<form runat="server">
<asp:Repeater id="cdcatalog" runat="server">

<table style=";font-family:Arial;width:56%;margin:1em 5% 5% 1em" border="1">
<tr style="background-color:black;color:white">
<th align="left">Title</th>
<th align="left">Date Added</th>

  <tr style="background-color:#FFFFCC;color:red">
<td><%#Container.DataItem("title")%> </td>
 <asp:Repeater ID="Repeater_a" DataSource="<%#XPathSelect("song/date")%>"

<td colspan="3"></td>



However, this is what I get:

Compiler Error Message: CS1002: ; expected
c:\inetpub\wwwroot\cd_collection\separator_client.aspx(6,14): error CS1002: ; expected
c:\inetpub\wwwroot\cd_collection\separator_client.aspx(7,1): error CS1519: Invalid token 'if' in class, struct, or interface member declaration
c:\inetpub\wwwroot\cd_collection\separator_client.aspx(7,12): error CS1002: ; expected
c:\inetpub\wwwroot\cd_collection\separator_client.aspx(7,28): error CS1002: ; expected
c:\inetpub\wwwroot\cd_collection\separator_client.aspx(8,24): error CS1002: ; expected
c:\inetpub\wwwroot\cd_collection\separator_client.aspx(9,31): error CS1001: Identifier expected
c:\inetpub\wwwroot\cd_collection\separator_client.aspx(10,24): error CS1519: Invalid token '=' in class, struct, or interface member declaration
c:\inetpub\wwwroot\cd_collection\separator_client.aspx(11,24): error CS1002: ; expected
c:\inetpub\wwwroot\cd_collection\separator_client.aspx(12,5): error CS1519: Invalid token 'if' in class, struct, or interface member declaration
c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_ao07id8k.0.cs(141,9): error CS0650: Syntax error, bad array declarator. To declare a managed array the rank specifier precedes the variable's identifier. To declare a fixed size buffer field, use the fixed keyword before the field type.
c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_ao07id8k.0.cs(141,10): error CS0270: Array size cannot be specified in a variable declaration (try initializing with a 'new' expression)
c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_ao07id8k.0.cs(141,60): error CS1002: ; expected

Have I done something wrong here?
I tried some other apps and it does execute properly.

Thanks for your help.

7 Years
Discussion Span
Last Post by ajwei810192

Thanks, I just found out I also need to take out the subroutine at the beginning of the script, or it would not work.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.