-
Notifications
You must be signed in to change notification settings - Fork 0
/
Create_Agenda.aspx.cs
executable file
·42 lines (39 loc) · 1.48 KB
/
Create_Agenda.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
35
36
37
38
39
40
41
42
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Master_Create_Agenda : System.Web.UI.Page
{
protected void Page_Load(object sender, System.EventArgs e)
{
if (IsPostBack)
{
// If this is a Postback, execute these statements.
}
else
{
// Put code to execute for non postback here
}
}
protected void BtnSave_Click(object sender, System.EventArgs e)
{
Agenda myAgenda;
myAgenda = new Agenda();
myAgenda.AgendaID = System.Convert.ToInt32(txtAgendaID.Text);
myAgenda.AgendaTitle = System.Convert.ToString(txtAgendaTitle.Text);
myAgenda.AgendaPage = System.Convert.ToString(txtAgendaPage.Text);
myAgenda.AgendaFileName = System.Convert.ToString(txtAgendaFileName.Text);
myAgenda.CreatedBy = System.Convert.ToString(txtCreatedBy.Text);
myAgenda.CreatedDate = System.Convert.ToDateTime(calCreatedDate.SelectedDate);
myAgenda.ModifiedBy = System.Convert.ToString(txtModifiedBy.Text);
myAgenda.ModifiedDate = System.Convert.ToDateTime(calModifiedDate.SelectedDate);
clsAgenda.Update(myAgenda);
Response.Redirect("AgendaGrid.aspx", false);
}
protected void BtnCancel_Click(object sender, System.EventArgs e)
{
Response.Redirect("AgendaGrid.aspx", false);
}
}