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