This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddControllersWithViews(); | |
// Default Session Timeout is 20 minutes. | |
services.AddSession(options => | |
{ | |
options.IdleTimeout = TimeSpan.FromMinutes(30); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<asp:GridView ID="gridView3" runat="server" CssClass="table-striped" | |
AutoGenerateColumns="false" AllowPaging="true" | |
PageSize="10" Caption="Multi Dimensional Array"> | |
<Columns> | |
<asp:BoundField ItemStyle-Width="150px" | |
DataField="Name" HeaderText="Name" /> | |
<asp:BoundField ItemStyle-Width="150px" | |
DataField="City" HeaderText="City" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Multi Dimensional Array | |
string[,] arrMultiD = { | |
{ "Ram","Delhi", "India" }, | |
{ "John", "WS DC","USA" }, | |
{ "Stewart","London", "UK" }, | |
{ "Sham","Mumbai", "India"}, | |
{ "Tod","Florida","USA" }, | |
{ "Bryan","Kitet","Russia" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<asp:GridView ID="gridView2" runat="server" CssClass="table-striped" | |
AutoGenerateColumns="false" AllowPaging="true" | |
PageSize="10" Caption="Two Dimensional Array"> | |
<Columns> | |
<asp:BoundField ItemStyle-Width="180px" | |
DataField="Text" HeaderText="Name" /> | |
<asp:BoundField ItemStyle-Width="180px" | |
DataField="Value" HeaderText="Country" /> | |
</Columns> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Tow Dimensional Array | |
string[,] arr2D = { | |
{ "Ram", "India" }, | |
{ "John", "USA" }, | |
{ "Stewart", "UK" }, | |
{ "Sham", "India"}, | |
{ "Tod","USA" }, | |
{ "Bryan","Russia" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<asp:GridView ID="gridView1" runat="server" CssClass="table-striped" | |
AutoGenerateColumns="true" AllowPaging="true" | |
PageSize="10" Caption="One Dimensional Array"> | |
</asp:GridView> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//One Dimensional Array | |
string[] arr1D = { "Ram", "John", "Stewart", "Sham", "Tod", "Bryan" }; | |
gridView1.DataSource = arr1D; | |
gridView1.DataBind(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// core module example | |
import { NgModule, Optional, SkipSelf } from '@angular/core'; | |
import { ApiService } from './services/api.service'; | |
@NgModule({ | |
providers: [ ApiService ] | |
}) | |
export class CoreModule { | |
// do not allow to be used more than ONCE!!! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// feature module example | |
import { NgModule } from '@angular/core'; | |
import { SharedModule } from '../shared/SharedModule'; | |
import { HomeComponent } from './Home/Home.component'; | |
import { ProjectComponent } from './project/project.component'; | |
@NgModule({ | |
imports: [ | |
NgModule, |
NewerOlder