469,909 Members | 1,747 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,909 developers. It's quick & easy.

no 'option' in aspx file means 'option'="false"?

Cas
Hi,

If i omit to mention e.g. the option 'debug' in the line below of an aspx
file, does it means it's set to false?

<%@ Page Language="VB" CodeFile="any.aspx.vb" Inherits="_Default" %>

Thanks
Cas
Aug 27 '06 #1
5 1429
The default debug setting is "true".
In order to set it to "false" you must *explicitly* set it to "false".

The place to do that is in web.config's <compilation... section.

Set <compilation debug = "false" when you publish web sites.
*Never* run a production website with debug set to true.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Cas" <s@swrote in message news:uB**************@TK2MSFTNGP06.phx.gbl...
Hi,

If i omit to mention e.g. the option 'debug' in the line below of an aspx file, does it means it's
set to false?

<%@ Page Language="VB" CodeFile="any.aspx.vb" Inherits="_Default" %>

Thanks
Cas

Aug 27 '06 #2
Cas
Thanks for replying.
To be sure i understand:
if i put <compilation debug = "false" in the web.config, i don't need to put
"debug="false" in every aspx file. I just can omit it in every aspx file.
Right?

Cas
"Juan T. Llibre" <no***********@nowhere.comschreef in bericht
news:ue**************@TK2MSFTNGP03.phx.gbl...
The default debug setting is "true".
In order to set it to "false" you must *explicitly* set it to "false".

The place to do that is in web.config's <compilation... section.

Set <compilation debug = "false" when you publish web sites.
*Never* run a production website with debug set to true.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Cas" <s@swrote in message news:uB**************@TK2MSFTNGP06.phx.gbl...
>Hi,

If i omit to mention e.g. the option 'debug' in the line below of an aspx
file, does it means it's set to false?

<%@ Page Language="VB" CodeFile="any.aspx.vb" Inherits="_Default" %>

Thanks
Cas


Aug 27 '06 #3
Actually the default setting is False!

If you don't set the debug attribute on the page, and you leave it out
of web.config entirely then the global web.config attribute is used. If
you look in <Framework Dir>\Config\web.config.comments you will see it
set to false.

As a test, compile the app with no settings, look in the "Temporary
ASP.Net files" directory and you will see no code files in there (.cs or
..vb), now change it to debug=true and re build the app and you'll find
the code files needed for debugging,

Kevin Jones

Juan T. Llibre wrote:
The default debug setting is "true".
In order to set it to "false" you must *explicitly* set it to "false".

The place to do that is in web.config's <compilation... section.

Set <compilation debug = "false" when you publish web sites.
*Never* run a production website with debug set to true.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Cas" <s@swrote in message news:uB**************@TK2MSFTNGP06.phx.gbl...
>Hi,

If i omit to mention e.g. the option 'debug' in the line below of an aspx file, does it means it's
set to false?

<%@ Page Language="VB" CodeFile="any.aspx.vb" Inherits="_Default" %>

Thanks
Cas

Aug 28 '06 #4
Oops, good catch!

This is the second time I thank you today.
Maybe I should have taken a nap before replying yesterday.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Kevin Jones" <kj**********@develop.comwrote in message
news:u4**************@TK2MSFTNGP04.phx.gbl...
Actually the default setting is False!

If you don't set the debug attribute on the page, and you leave it out of web.config entirely then
the global web.config attribute is used. If you look in <Framework Dir>\Config\web.config.comments
you will see it set to false.

As a test, compile the app with no settings, look in the "Temporary ASP.Net files" directory and
you will see no code files in there (.cs or .vb), now change it to debug=true and re build the app
and you'll find the code files needed for debugging,

Kevin Jones

Juan T. Llibre wrote:
>The default debug setting is "true".
In order to set it to "false" you must *explicitly* set it to "false".

The place to do that is in web.config's <compilation... section.

Set <compilation debug = "false" when you publish web sites.
*Never* run a production website with debug set to true.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Cas" <s@swrote in message news:uB**************@TK2MSFTNGP06.phx.gbl...
>>Hi,

If i omit to mention e.g. the option 'debug' in the line below of an aspx file, does it means
it's set to false?

<%@ Page Language="VB" CodeFile="any.aspx.vb" Inherits="_Default" %>

Thanks
Cas
Aug 28 '06 #5
np

:)

Juan T. Llibre wrote:
Oops, good catch!

This is the second time I thank you today.
Maybe I should have taken a nap before replying yesterday.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Kevin Jones" <kj**********@develop.comwrote in message
news:u4**************@TK2MSFTNGP04.phx.gbl...
>Actually the default setting is False!

If you don't set the debug attribute on the page, and you leave it out of web.config entirely then
the global web.config attribute is used. If you look in <Framework Dir>\Config\web.config.comments
you will see it set to false.

As a test, compile the app with no settings, look in the "Temporary ASP.Net files" directory and
you will see no code files in there (.cs or .vb), now change it to debug=true and re build the app
and you'll find the code files needed for debugging,

Kevin Jones

Juan T. Llibre wrote:
>>The default debug setting is "true".
In order to set it to "false" you must *explicitly* set it to "false".

The place to do that is in web.config's <compilation... section.

Set <compilation debug = "false" when you publish web sites.
*Never* run a production website with debug set to true.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Cas" <s@swrote in message news:uB**************@TK2MSFTNGP06.phx.gbl...
Hi,

If i omit to mention e.g. the option 'debug' in the line below of an aspx file, does it means
it's set to false?

<%@ Page Language="VB" CodeFile="any.aspx.vb" Inherits="_Default" %>

Thanks
Cas
Aug 28 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

33 posts views Thread by Steven Bethard | last post: by
10 posts views Thread by Sylvain Thenault | last post: by
59 posts views Thread by Pierre Quentel | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.