|
 |
aspx thread: Whats the difference?
Message #1 by "Greg Quinn" <greg@i...> on Thu, 31 Jan 2002 13:04:17 -0800
|
|
Whats the difference between
<script language = "vb" runat = "server">
and
<script runat = "server">
??
They both seem to work the same way, is there any performance hit if not
specifying the language?
Greg
Message #2 by "William J Ryan" <wryan@u...> on Thu, 31 Jan 2002 07:29:09 -0600
|
|
Yeah, your pages don't compile if you leave it out in the gold version.
I just bought the book ASP.NET unleashed and the author left the
language specifier out so most of the examples didn't compile.
Typically got the error:
Compiler Error Message: CS1002: ; expected
OR
Compiler Error Message: CS1010: Newline in constant
The examples worked with the addition of "language=3Dvb" in the script
tag.
(BTW, There were also a lot of problems with the examples using the IE
web controls which required updated Import statements for the new IE Web
controls. )
> -----Original Message-----
> From: Greg Quinn [mailto:greg@i...]
> Sent: Thursday, January 31, 2002 3:04 PM
> To: ASP+
> Subject: [aspx] Whats the difference?
>
>
> Whats the difference between
>
> <script language =3D "vb" runat =3D "server">
>
> and
>
> <script runat =3D "server">
>
> ??
>
> They both seem to work the same way, is there any performance
> hit if not specifying the language?
>
> Greg
>
>
>
Message #3 by "Graham Dobson" <grahamdo@a...> on Thu, 31 Jan 2002 09:38:07 -0500
|
|
I guess you are depending on the default setting for the server by not
specifying the Language attribute. I would advise being explicit about this
and would doubt that there is a performance hit in specifying which language
compiler to use.
----- Original Message -----
From: "William J Ryan" <wryan@u...>
To: "ASP+" <aspx@p...>
Sent: Thursday, January 31, 2002 8:29 AM
Subject: [aspx] RE: Whats the difference?
> Yeah, your pages don't compile if you leave it out in the gold version.
> I just bought the book ASP.NET unleashed and the author left the
> language specifier out so most of the examples didn't compile.
> Typically got the error:
>
> Compiler Error Message: CS1002: ; expected
> OR
> Compiler Error Message: CS1010: Newline in constant
>
>
> The examples worked with the addition of "language=vb" in the script
> tag.
>
> (BTW, There were also a lot of problems with the examples using the IE
> web controls which required updated Import statements for the new IE Web
> controls. )
>
>
>
> > -----Original Message-----
> > From: Greg Quinn [mailto:greg@i...]
> > Sent: Thursday, January 31, 2002 3:04 PM
> > To: ASP+
> > Subject: [aspx] Whats the difference?
> >
> >
> > Whats the difference between
> >
> > <script language = "vb" runat = "server">
> >
> > and
> >
> > <script runat = "server">
> >
> > ??
> >
> > They both seem to work the same way, is there any performance
> > hit if not specifying the language?
> >
> > Greg
> >
> >
> >
>
>
Message #4 by "Wizon, Tessa (MSNBCi)" <Tessa.Wizon@M...> on Thu, 31 Jan 2002 08:16:09 -0800
|
|
From what I've read, I believe this is right. The default language is
specified in the machine.config file. Probably best declare it explicitly so
there's no doubt.
-----Original Message-----
From: Graham Dobson [mailto:grahamdo@a...]
Sent: Thursday, January 31, 2002 6:38 AM
To: ASP+
Subject: [aspx] RE: Whats the difference?
I guess you are depending on the default setting for the server by not
specifying the Language attribute. I would advise being explicit about this
and would doubt that there is a performance hit in specifying which language
compiler to use.
----- Original Message -----
From: "William J Ryan" <wryan@u...>
To: "ASP+" <aspx@p...>
Sent: Thursday, January 31, 2002 8:29 AM
Subject: [aspx] RE: Whats the difference?
> Yeah, your pages don't compile if you leave it out in the gold version.
> I just bought the book ASP.NET unleashed and the author left the
> language specifier out so most of the examples didn't compile.
> Typically got the error:
>
> Compiler Error Message: CS1002: ; expected
> OR
> Compiler Error Message: CS1010: Newline in constant
>
>
> The examples worked with the addition of "language=vb" in the script
> tag.
>
> (BTW, There were also a lot of problems with the examples using the IE
> web controls which required updated Import statements for the new IE Web
> controls. )
>
>
>
> > -----Original Message-----
> > From: Greg Quinn [mailto:greg@i...]
> > Sent: Thursday, January 31, 2002 3:04 PM
> > To: ASP+
> > Subject: [aspx] Whats the difference?
> >
> >
> > Whats the difference between
> >
> > <script language = "vb" runat = "server">
> >
> > and
> >
> > <script runat = "server">
> >
> > ??
> >
> > They both seem to work the same way, is there any performance
> > hit if not specifying the language?
> >
> > Greg
> >
> >
> >
>
>
|
|
 |