473,725 Members | 1,782 Online
Bytes | Software Development & Data Engineering Community
+ 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 2165
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.a spx -->
<%@ 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("Physica l Path of page is:
{0}<br>",MapPat h("GuidedPracti ceExercise1_1.a spx"));
Response.Output .Write("# of controls on page: {0}<br>",Contro ls.Count);
Response.Output .Write("The Value for IsPostback: {0}<br>",IsPost Back);
Response.Output .Write("View State is:
{0}<br>",Enable ViewState==true ?"Enabled":"Dis abled");
%>
</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

"DotNetJero me" 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 "/YourWebDirectio ry/trace.axd"
in your current situation.

Or if you want to see the trace output on your page add a PageOutput="Tru e"
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.a spx -->
<%@ 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("Physica l Path of page is:
{0}<br>",MapPat h("GuidedPracti ceExercise1_1.a spx"));
Response.Output .Write("# of controls on page: {0}<br>",Contro ls.Count);
Response.Output .Write("The Value for IsPostback: {0}<br>",IsPost Back);
Response.Output .Write("View State is:
{0}<br>",Enable ViewState==true ?"Enabled":"Dis abled");
%>
</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

"DotNetJero me" 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
1661
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 messagebox These are my code, but it doenst work. Can someone help me? <html> <head> <title>18 Nov 2004 My first ASP page</title>
6
2310
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
1306
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 Thanks, Mika
0
8872
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8747
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9392
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9246
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9091
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8069
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6694
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5997
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2619
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.