Example #1
0
    private void showADLItemDescriptionData()
    {
        ADLItemDescription aDLItemDescription = new ADLItemDescription();

        aDLItemDescription = ADLItemDescriptionManager.GetADLItemDescriptionByID(Int32.Parse(Request.QueryString["aDLItemDescriptionID"]));

        txtADLItemDescriptionName.Text = aDLItemDescription.ADLItemDescriptionName;
    }
Example #2
0
    protected void btnUpdate_Click(object sender, EventArgs e)
    {
        ADLItemDescription aDLItemDescription = new ADLItemDescription();

        aDLItemDescription = ADLItemDescriptionManager.GetADLItemDescriptionByID(Int32.Parse(Request.QueryString["aDLItemDescriptionID"]));
        ADLItemDescription tempADLItemDescription = new ADLItemDescription();

        tempADLItemDescription.ADLItemDescriptionID = aDLItemDescription.ADLItemDescriptionID;

        tempADLItemDescription.ADLItemDescriptionName = txtADLItemDescriptionName.Text;
        bool result = ADLItemDescriptionManager.UpdateADLItemDescription(tempADLItemDescription);

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