出现的C#问题(100分)
<script Runat="Server">
public string Word;
void Repeat(int intNumTimes)
{
int intCounter;
for(intCounter=0;intCounter<intNumTimes-1;intCounter++)
{
Response.Write(Word);
}
}
</script>
“/s”应用程序中的服务器错误。
--------------------------------------------------------------------------------
编译错误
说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。
编译器错误信息: BC30183: 关键字作为标识符无效。
源错误:
行 1: <script Runat="Server">
行 2: public string Word;
行 3:
行 4: void Repeat(int intNumTimes)
源文件: C:\Inetpub\wwwroot\bhzl\news_images\WordRepeater.ascx 行: 2