forked from mehta96aayushi/Online-Food-Ordering-System
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathUpdate_Menu.aspx.cs
More file actions
40 lines (32 loc) · 1002 Bytes
/
Update_Menu.aspx.cs
File metadata and controls
40 lines (32 loc) · 1002 Bytes
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
35
36
37
38
39
40
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace OFOS
{
public partial class Update_Menu : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Session["admin"] == null)
{
Response.Redirect("Admin_Login.aspx?You need to login first");
}
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Session["admin"] = null;
Response.Redirect("Admin_Login.aspx");
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("Add_items.aspx");
}
protected void Button2_Click(object sender, EventArgs e)
{
Response.Redirect("Modify.aspx");
}
}
}