Hi,

i am new to this group. I am beginner in Asp.net. i started working on this following example.
1.i created one Asp.net web app in C#
2.And in the Design view i added a textbox,Button,and a label
3.and in the HTMl view i wrote the following code
<%@ Page language="c#" Codebehind="exercise.aspx.cs" AutoEventWireup="false" Inherits="WebApplication3.exercise" %><%@ Page language="c#" Codebehind="exercise.aspx.cs" AutoEventWireup="false" Inherits="WebApplication3.exercise" %> 
<%@ Page language="c#" Codebehind="exercise.aspx.cs" AutoEventWireup="false" Inherits="WebApplication3.exercise" %>
<%@ Page language="c#" Codebehind="exercise.aspx.cs" AutoEventWireup="false" Inherits="WebApplication3.exercise" %>


 
  exercise
  
  
  
  http://schemas.microsoft.com/intellisense/ie5">
 
 
  
       Width="168px" Height="72px">
       runat="server" Width="160px" Height="80px">HyperLink
       runat="server" Width="176px" Height="112px">
  

  <%
    Response.Output.Write("Physical path of page is: {0}
",MapPath("exercise.aspx"));
    Response.Output.Write("Total no of controls: {0}
",Controls.Count);
    Response.Output.Write("The Value for IsPostBack is: {0}
",IsPostBack);
    Response.Output.Write("View State is: {0}
",EnableViewState==true?"Enabled":"Disabled");
    %>
 


4. so for the Controls.Count the o/p should be 4(form+textbox+labelbox+button)
but the o/p what i am gettimng is 1


can anybody explain me which one is correct...
<% Response.Output.Write("Physical path of page is: {0}
",MapPath("exercise.aspx")); Response.Output.Write("Total no of controls: {0}
",Controls.Count); Response.Output.Write("The Value for IsPostBack is: {0}
",IsPostBack); Response.Output.Write("View State is: {0}
",EnableViewState==true?"Enabled":"Disabled"); %><% Response.Output.Write("Physical path of page is: {0}
",MapPath("exercise.aspx")); Response.Output.Write("Total no of controls: {0}
",Controls.Count); Response.Output.Write("The Value for IsPostBack is: {0}
",IsPostBack); Response.Output.Write("View State is: {0}
",EnableViewState==true?"Enabled":"Disabled"); %>