Example #1
0
    private void showADLDetailnStatusData()
    {
        ADLDetailnStatus aDLDetailnStatus = new ADLDetailnStatus();

        aDLDetailnStatus = ADLDetailnStatusManager.GetADLDetailnStatusByID(Int32.Parse(Request.QueryString["aDLDetailnStatusID"]));

        ddlADLDetail.SelectedValue = aDLDetailnStatus.ADLDetailID.ToString();
        ddlADLStatus.SelectedValue = aDLDetailnStatus.ADLStatusID.ToString();
    }
Example #2
0
    protected void btnUpdate_Click(object sender, EventArgs e)
    {
        ADLDetailnStatus aDLDetailnStatus = new ADLDetailnStatus();

        aDLDetailnStatus = ADLDetailnStatusManager.GetADLDetailnStatusByID(Int32.Parse(Request.QueryString["aDLDetailnStatusID"]));
        ADLDetailnStatus tempADLDetailnStatus = new ADLDetailnStatus();

        tempADLDetailnStatus.ADLDetailnStatusID = aDLDetailnStatus.ADLDetailnStatusID;

        tempADLDetailnStatus.ADLDetailID = Int32.Parse(ddlADLDetail.SelectedValue);
        tempADLDetailnStatus.ADLStatusID = Int32.Parse(ddlADLStatus.SelectedValue);
        bool result = ADLDetailnStatusManager.UpdateADLDetailnStatus(tempADLDetailnStatus);

        Response.Redirect("AdminADLDetailnStatusDisplay.aspx");
    }