Sites Services
Single Page Apps
MVCWeb Api
[Site Entry Point: Frames][SignalR:MoveSquare]
[Site Entry Point: MVC]    [SignalR: KnockOut Form]
[Site Entry Point: Index]  [MVC: Standard Razor]
[Site Entry Point: Page]
Montego Home Montego Home
A Table with three columns with vertical-align: top, middle, bottom
/* File:Global.asax.cs */
public class MvcApplication : System.Web.HttpApplication
    protected void Session_Start(object sender, EventArgs e)
        Session["CartItemNumArray"] = new ArrayList();
        Session["salestaxrate"]     = 0.2;
        Today is <%=DateTime.Now.ToString("dd-MMM-yyyy")%>

    <!-- Session Variables must be cast to their type -->
    <% double salestax = (double)Session["salestaxrate"]; %>
		ArrayList stockPicks = (ArrayList)Session["CartItemNumArray"];
		int k =  stockPicks.Count; 
    Value of Session Variable SalesTaxRate is: <%=salestax%><br/>
    Size Session ArrayList is: <%=k%> 

Today is 04-Apr-2020   06-Apr-2020
Value of Session Variable SalesTaxRate is: 0.2
Size Session ArrayList is: 3
Watch the count of the ArrayList when you press Refresh,
this is an example of in ASP.NET, by default all the pages post to themselves.

The syntax for producing a grid of a Data Table is as follows.
    <form id="form1" runat="server">    
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:montegodataContext %>" 
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            <asp:BoundField DataField="TRADE"       HeaderText="Trade"      SortExpression="TRADE"      />
            <asp:BoundField DataField="TODAY"       HeaderText="TODAY"      SortExpression="TODAY"      />
            <asp:BoundField DataField="CLASS"       HeaderText="CLASS"      SortExpression="CLASS"      />
            <asp:BoundField DataField="RULE"        HeaderText="RULE"       SortExpression="RULE"       />
            <asp:BoundField DataField="CATEGORY"    HeaderText="CATEGORY"   SortExpression="CATEGORY"   />
            <asp:BoundField DataField="LEGEND"      HeaderText="LEGEND"     SortExpression="LEGEND"     />
            <asp:BoundField DataField="AMOUNT"      HeaderText="Amount"     SortExpression="AMOUNT"     />
1KeyNameM1234.5612345617/08/1972 00:00:00
2CharlotteF4444.65123418/08/1993 00:00:00
3noddyd123.0012330/12/1960 00:00:00
4frde1.001132410/11/1989 00:00:00
54526Q62.003131554654628/05/1932 00:00:00
76611s5.001211/06/1973 00:00:00
9minusg12.10666613/08/1967 00:00:00
10nng123.4565432116/09/1968 00:00:00
11ggf0.121234520/08/1965 00:00:00
12minusx5.00520/04/1958 00:00:00
13DarrenM12.001220/12/1960 00:00:00
14hjkf4.00518/09/2015 00:00:00
15retM4.00402/09/2015 00:00:00
16ertt5.005620/09/2015 00:00:00
17af1.00204/01/2016 00:00:00
18bananaw12.004313/02/2016 00:00:00
19abcf123.001202/02/2016 00:00:00
20Peterf655.006555407/03/2016 00:00:00
21try65yrtyi65.0012344508/03/2016 00:00:00
22ewtwtewh54.00123414/03/2016 00:00:00
24ghghghh5456.00554510/10/2017 00:00:00
25RogerX123.34123431/12/2017 00:00:00
26  0.00020/04/2019 00:00:00

Note that <asp:HyperLink> cannot be used with PostBackUrl="..." but must use NavigateUrl="..."
The buttons <asp:Button> <asp:LinkButton> <asp:ImageButton> can use both
(netPlanets) PostBackUrl asp:HyperLink
Page Navigation Sign On or Links Asp.Net Nature of the Form Details on the Planets of the Solar System