-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuffer.aspx.cs
34 lines (33 loc) · 916 Bytes
/
Buffer.aspx.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Buffer : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Session["UserID"] != null)
{
lblUserID.Text = Convert.ToString(Session["UserID"]);
}
else
{
Response.Redirect("AssetC.aspx");
}
if (!this.IsPostBack)
{
List<LUT_Assets_Masters> dt = this.GetData();
rptMarkers.DataSource = dt;
rptMarkers.DataBind();
}
}
private List<LUT_Assets_Masters> GetData()
{
AssetTaggingEntities context = new AssetTaggingEntities();
List<LUT_Assets_Masters> am1 = null;
am1 = (from am in context.LUT_Assets_Masters select am).ToList();
return am1;
}
}