1. Apply for Leave: Code Behind (Run Button Click) 

C#:

  1.         RecordLeaveController controller = new RecordLeaveController();
  2.         RecordLeave vdb = new RecordLeave();
  3.         vdb.LeaveInfo.AddLeaveInfoRow(Convert.ToDateTime(TextBox1.Text), Convert.ToInt32(TextBox2.Text), string.Empty);
  4.         vdb = controller.FillLeaveData(Request.Params("empId"), vdb);
  5.         RecordLeave.LeaveInfoRow row = (RecordLeave.LeaveInfoRow)vdb.LeaveInfo.Rows(0);
  6.         Label2.Text = row.Id;
  7.         Label6.Text = row.WorkflowID;

Last edited Jun 25, 2012 at 12:52 PM by cathysung, version 2

Comments

No comments yet.