Announcement

Collapse
No announcement yet.

trying to write comments so i know whats going on

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • trying to write comments so i know whats going on

    hi i am failrly new to asp.net, and am trying to learn what some lines do,

    the code is below, i want to write comments so i know what is going on.

    <div class="container" style="height:400px" >

    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging"
    AutoGenerateColumns="False" DataKeyNames="Id"
    DataSourceID="AccessDataSource1"
    EnableModelValidation="True" Font-Size="Small" PageSize="15"
    onselectedindexchanged="GridView1_SelectedIndexChanged" >
    <Columns>
    <asp:CommandField ShowSelectButton="True" />
    <asp:BoundField DataField="Id" HeaderText="Id"
    SortExpression="Id" ReadOnly="True" />
    <asp:BoundField DataField="TheArea" HeaderText="Area"
    SortExpression="TheArea" />


    <asp:BoundField DataField="street" HeaderText="Street" SortExpression="street" />
    <asp:BoundField DataField="num" HeaderText="Number" SortExpression="num" />
    <asp:BoundField DataField="custname" HeaderText="Customer" SortExpression="custname" />
    <asp:BoundField DataField="cor" HeaderText="CO" SortExpression="cor" />
    <asp:BoundField DataField="comp_date" HeaderText="ECCD" HtmlEncode="false" dataformatstring="{0:M/dd/yyyy}" SortExpression="comp_date" />
    <asp:BoundField DataField="cir" HeaderText="SVC Type" SortExpression="cir" />
    <asp:BoundField DataField="ckid" HeaderText="CKID" SortExpression="ckid" />
    <asp:BoundField DataField="term" HeaderText="F2 Tea" SortExpression="term" />



    <asp:TemplateField HeaderText="SVC Group"></asp:TemplateField>


    </Columns>
    <HeaderStyle BackColor="#0099CC" ForeColor="White" />
    <PagerSettings Mode="NumericFirstLast" PageButtonCount="30"
    FirstPageImageUrl="~/Images/FirstPage.jpg"
    FirstPageText="First Page&amp;lt;&amp;lt;"
    LastPageImageUrl="~/Images/LastPage.jpg" LastPageText="Last Page&amp;gt;"
    NextPageImageUrl="~/Images/NextPage.jpg" NextPageText="Next Page&amp;gt;"
    PreviousPageImageUrl="~/Images/PreviousPage.jpg"
    PreviousPageText="Previous Page&amp;lt;" />
    </asp:GridView>

    </div>

    want to figure out what coulmns is displaying and what filters is it trying to apply.

    any comments or help would be great.

    thank you

  • #2
    Hi there soupi,

    I know absolutely nothing about "asp", but I do know how to "Google".

    "To create a comment in ASP you simply place an apostrophe in front of
    what you want commented out.

    The most common practice is to place the apostrophe at the beginning
    of the line of text like we have in the following example."

    Code:
    
    <%
       'Hello I am a comment
        Dim newVar1, newVar2
       'Dim oldVar1, oldVar2
    %>

    "In the above example we had two comments.

    The first comment was a note style comment.

    Programmers often use these kinds of comments to leave information to
    people who are going to read their code or to themselves.

    The second comment we created commented out "Dim oldVar1, oldVar2"
    preventing the ASP interpreter from reading this line of code.

    This kind of comment is a block-out comment that is often used to
    temporarily remove code from a file that may be causing errors or is just
    unnecessary at the time.

    Source:-
    http://www.tizag.com/aspTutorial/aspComments.php


    ~ the original bald headed old fart ~

    Comment

    Working...
    X