473,396 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1548
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

33
by: Steven Bethard | last post by:
I feel like this has probably been answered before, but I couldn't find something quite like it in the archives. Feel free to point me somewhere if you know where this has already been answered. ...
10
by: Sylvain Thenault | last post by:
Hi there ! Can someone explain me the following behaviour ? >>> l = >>> 0 in (l is False) Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: iterable argument...
3
by: Carpe Diem | last post by:
Hello I have an aspx page that loses Session("user") value after a few minutes even after I set <sessionState mode="InProc" cookieless="false" timeout="300"> in web.config and wrote function...
9
by: kai | last post by:
Hi, All I create an ASP.NET page, it contains FirstName textbox and LastName textbox. I setup "enableViewState=false" in page directive. When I enter data in FirstName and LastName textbox,...
2
by: gabon | last post by:
I'm creating a select entirely through JavaScript and very strangely IE doesn't show the text in the option elements. Here part of the code: this.form_country=document.createElement("select");...
59
by: Pierre Quentel | last post by:
Hi all, In some program I was testing if a variable was a boolean, with this test : if v in My script didn't work in some cases and I eventually found that for v = 0 the test returned True ...
3
by: André | last post by:
Hi, I put that question already, but it's still not very clear to me, so ... Assume following option in web.config= debug="false" but in one aspx page (test.aspx) <%@ debug="true" ..%>
1
by: yoni12ab | last post by:
Hi Im new in my job never configure iis the problem is that I reinstalled visual studio 2003 becouse of debugger problem and the local web site was working fine and now it doesent work it giving...
4
by: seberino | last post by:
I'm looking over the docs for the re module and can't find how to "NOT" an entire regex. For example..... How make regex that means "contains regex#1 but NOT regex#2" ? Chris
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.