PC Review


Reply
Thread Tools Rate Thread

compilation error..

 
 
maya
Guest
Posts: n/a
 
      14th Jul 2006
Hi, I'm following csharpfriends tutorial, but on this example,

http://www.csharpfriends.com/quickst...CS/intro2.aspx
(which runs fine)

when I try to run it in my own machine (IIS) I get following compilation
error:

Compiler Error Message: BC30084: 'For' must end with a matching 'Next'.

Source Error:

Line 26: <p>
Line 27:
Line 28: <% for (int i=0; i <8; i++) { %>
Line 29: <font size="<%=i%>"> Welcome to ASP.NET </font> <br>
Line 30: <% }%>

what does this error mean please (this at work, where I'm on Windows
Server 2003 and IIS w/a no. of projects (solutions) installed that we
develop in VS and run w/no problems..) I know Java and JavaScript, so I
know what a for-loop is, etc.. but I don't get this error, "'For' must
end with a matching 'Next'" ??

thank you...


 
Reply With Quote
 
 
 
 
Tom Porterfield
Guest
Posts: n/a
 
      14th Jul 2006
maya wrote:
> Hi, I'm following csharpfriends tutorial, but on this example,
>
> http://www.csharpfriends.com/quickst...CS/intro2.aspx
> (which runs fine)
>
> when I try to run it in my own machine (IIS) I get following compilation
> error:
>
> Compiler Error Message: BC30084: 'For' must end with a matching 'Next'.
>
> Source Error:
>
> Line 26: <p>
> Line 27:
> Line 28: <% for (int i=0; i <8; i++) { %>
> Line 29: <font size="<%=i%>"> Welcome to ASP.NET </font>
> <br> Line 30: <% }%>
>
> what does this error mean please (this at work, where I'm on Windows
> Server 2003 and IIS w/a no. of projects (solutions) installed that we
> develop in VS and run w/no problems..) I know Java and JavaScript, so I
> know what a for-loop is, etc.. but I don't get this error, "'For' must
> end with a matching 'Next'" ??


Have you got the page scripting language set to vbscript or javascript?
That is a visual basic error.
--
Tom Porterfield

 
Reply With Quote
 
maya
Guest
Posts: n/a
 
      14th Jul 2006
Tom Porterfield wrote:
> maya wrote:
>> Hi, I'm following csharpfriends tutorial, but on this example,
>>
>> http://www.csharpfriends.com/quickst...CS/intro2.aspx
>>
>> (which runs fine)
>>
>> when I try to run it in my own machine (IIS) I get following compilation
>> error:
>>
>> Compiler Error Message: BC30084: 'For' must end with a matching 'Next'.
>>
>> Source Error:
>>
>> Line 26: <p>
>> Line 27:
>> Line 28: <% for (int i=0; i <8; i++) { %>
>> Line 29: <font size="<%=i%>"> Welcome to ASP.NET </font>
>> <br> Line 30: <% }%>
>>
>> what does this error mean please (this at work, where I'm on Windows
>> Server 2003 and IIS w/a no. of projects (solutions) installed that we
>> develop in VS and run w/no problems..) I know Java and JavaScript, so I
>> know what a for-loop is, etc.. but I don't get this error, "'For' must
>> end with a matching 'Next'" ??

>
> Have you got the page scripting language set to vbscript or javascript?
> That is a visual basic error.


thank you for yr response Tom.. actually I thought I had been a jerk,
and forgotten lang directive when copied code, but actually when you go
to some of the pages he doesn't have language directive...

http://www.csharpfriends.com/quickst...tro/intro1.src

thank you very much.. (I guess ASP defaults to VBScript, right?)




 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compilation Error Miro Microsoft ASP .NET 1 9th Apr 2009 12:20 AM
Compilation Error Miro Microsoft Dot NET 1 9th Apr 2009 12:20 AM
VC++ Compilation Error =?Utf-8?B?SHVzc2Fpbg==?= Windows XP Embedded 2 5th Oct 2004 08:24 PM
Compilation Error VC++ 7 Paljo Microsoft VC .NET 1 9th Sep 2003 06:49 PM
Compilation Error - Please Help James Zhuo Microsoft ASP .NET 2 25th Aug 2003 03:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:07 PM.