473,466 Members | 1,381 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

A very basic page with trace=true doesnt work.


I have installed visual studio .net and now i started to write the first few
examples from the 70-315 book by Kalani.

It looks like all server side code that i put between <% %> doesnt process
from an aspx file. Even a page with <%@ Page Language = "c#" Trace="True" %>
doesnt show the trace information.

If i create an .asp file, the server side code between <% %> will process
and display correctly on the page.

Im really clueless since every friend I ask tells me it should work fine.

Regards,

Bruno
Nov 19 '05 #1
3 2146
Hi Bruno,

Make sure that 'enabled = "true" ' under <trace> node in the web.config file.

Even though you set it true in the page directive...it'll be overriden by
this application level setting available in the web.config file.

cheers,

Jerome. M

"Bruno Paquette" wrote:

I have installed visual studio .net and now i started to write the first few
examples from the 70-315 book by Kalani.

It looks like all server side code that i put between <% %> doesnt process
from an aspx file. Even a page with <%@ Page Language = "c#" Trace="True" %>
doesnt show the trace information.

If i create an .asp file, the server side code between <% %> will process
and display correctly on the page.

Im really clueless since every friend I ask tells me it should work fine.

Regards,

Bruno

Nov 19 '05 #2
Hi Jerome,

Thx for trying to help me,

I am not even to work with web.config file. I am just creating a single
aspx file. here is my code :

<!-- StepByStep1_3.aspx -->
<%@ Page Language="C#" Trace="true" %>
<html>
<body>
Trace Information
</body>
</html>

And what I get is a blank web page when the results should be Request
Details, Trace Information, Control Tree.. etc..

Even this :

<%@ Page Language="c#"%>
<html>
<body>
<%
Response.Output.Write("Physical Path of page is:
{0}<br>",MapPath("GuidedPracticeExercise1_1.aspx") );
Response.Output.Write("# of controls on page: {0}<br>",Controls.Count);
Response.Output.Write("The Value for IsPostback: {0}<br>",IsPostBack);
Response.Output.Write("View State is:
{0}<br>",EnableViewState==true?"Enabled":"Disabled ");
%>
</body>
</html>

Returns me a blank page. It looks like all C# code isnt processed at all.
If i create a single .asp page and i put server code between <% %> tags it
will work and display fine.

Odd thing is that I had it to work fine the first time I installed .net.
Now that I have reinstalled my pc, and did the same .net installation I have
this problem. In my second code example, am I suppose to have intellisense
or something between <% %> tags? because im not having it.

Thx,

Bruno

"DotNetJerome" wrote:
Hi Bruno,

Make sure that 'enabled = "true" ' under <trace> node in the web.config file.

Even though you set it true in the page directive...it'll be overriden by
this application level setting available in the web.config file.

cheers,

Jerome. M

"Bruno Paquette" wrote:

I have installed visual studio .net and now i started to write the first few
examples from the 70-315 book by Kalani.

It looks like all server side code that i put between <% %> doesnt process
from an aspx file. Even a page with <%@ Page Language = "c#" Trace="True" %>
doesnt show the trace information.

If i create an .asp file, the server side code between <% %> will process
and display correctly on the page.

Im really clueless since every friend I ask tells me it should work fine.

Regards,

Bruno

Nov 19 '05 #3
Hi Bruno,

I noticed that in the Page attributes code you havent mentioned that you
want the Pageoutput ="True" this by deafult is false and hence you are able
to see the trace on the page itself.

To view your trace goto to the following URL "/YourWebDirectiory/trace.axd"
in your current situation.

Or if you want to see the trace output on your page add a PageOutput="True"
attribute to the page.

e.g <%@ Page Language="C#" Trace="true" PageOutput = "true" %>
****************************
Hope this helps,

Shaun, M.C.P
http://blogs.wwwcoder.com/shaunakp
****************************

PageOutput

"Bruno Paquette" wrote:
Hi Jerome,

Thx for trying to help me,

I am not even to work with web.config file. I am just creating a single
aspx file. here is my code :

<!-- StepByStep1_3.aspx -->
<%@ Page Language="C#" Trace="true" %>
<html>
<body>
Trace Information
</body>
</html>

And what I get is a blank web page when the results should be Request
Details, Trace Information, Control Tree.. etc..

Even this :

<%@ Page Language="c#"%>
<html>
<body>
<%
Response.Output.Write("Physical Path of page is:
{0}<br>",MapPath("GuidedPracticeExercise1_1.aspx") );
Response.Output.Write("# of controls on page: {0}<br>",Controls.Count);
Response.Output.Write("The Value for IsPostback: {0}<br>",IsPostBack);
Response.Output.Write("View State is:
{0}<br>",EnableViewState==true?"Enabled":"Disabled ");
%>
</body>
</html>

Returns me a blank page. It looks like all C# code isnt processed at all.
If i create a single .asp page and i put server code between <% %> tags it
will work and display fine.

Odd thing is that I had it to work fine the first time I installed .net.
Now that I have reinstalled my pc, and did the same .net installation I have
this problem. In my second code example, am I suppose to have intellisense
or something between <% %> tags? because im not having it.

Thx,

Bruno

"DotNetJerome" wrote:
Hi Bruno,

Make sure that 'enabled = "true" ' under <trace> node in the web.config file.

Even though you set it true in the page directive...it'll be overriden by
this application level setting available in the web.config file.

cheers,

Jerome. M

"Bruno Paquette" wrote:

I have installed visual studio .net and now i started to write the first few
examples from the 70-315 book by Kalani.

It looks like all server side code that i put between <% %> doesnt process
from an aspx file. Even a page with <%@ Page Language = "c#" Trace="True" %>
doesnt show the trace information.

If i create an .asp file, the server side code between <% %> will process
and display correctly on the page.

Im really clueless since every friend I ask tells me it should work fine.

Regards,

Bruno

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Wen | last post by:
Hi everyone, ..After my first lesson, I have to create a asp page with: ..asp tag for time ..client script that runs at the server for date ..client script that runs at client and shows a...
6
by: dee | last post by:
Hi In web.config I have to the following: <configuration> <system.web> <customErrors defaultRedirect="error.htm" mode="On" /> </system.web> </configuration>
5
by: Mika | last post by:
Hi all, if you could kindly test this W3C validated page specifically in Firefox only and advise if you see the streetscape appear. (Designed for broadband): http://tinyurl.com/35mwxr ...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.