コード例 #1
0
    protected void btnAdd_Click(object sender, EventArgs e)
    {
        Relationship relationship = new Relationship();

//	relationship.RelationshipID=  int.Parse(ddlRelationshipID.SelectedValue);
        relationship.RelationshipName = txtRelationshipName.Text;
        int resutl = RelationshipManager.InsertRelationship(relationship);

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