Sites Services
Web
Forms
Web
Pages
Single Page Apps
MVCWeb Api
SignalR
ASP.NET
[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;
    }
}
    <div>
        Today is <%=DateTime.Now.ToString("dd-MMM-yyyy")%>
        <%=DateTime.Now.AddDays(2).ToString("dd-MMM-yyyy")%>
    </div>

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

Today is 17-Dec-2017   19-Dec-2017
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">    
    <div>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:montegodataContext %>" 
        SelectCommand="SELECT [TRADE], [TODAY], [CLASS], [RULE], [CATEGORY], [LEGEND], [AMOUNT] FROM [FUNDING]">
    </asp:SqlDataSource>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="SqlDataSource1">
        <Columns>
            <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"     />
        </Columns>
    </asp:GridView>
    </div>    
    </form>
IdKeyNameFlagAmountNumberBirthday
1KeyNameM1234.5612345617/08/1972 00:00:00
2CharlotteF4444.65123418/08/1993 00:00:00
3nd123.0012330/12/1960 00:00:00
4fe1.001132410/11/1989 00:00:00
54526Q62.003131554654628/05/1932 00:00:00
6keynameW12.0012345614/07/1981 00:00:00
76611s5.001211/06/1973 00:00:00
8gg123.451234528/02/4000 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

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