protected void Delete_Click(object sender, EventArgs e)
    {
        CommentDataSource.Delete();

        ShareDataSource.Delete();
        ImageDataSource.Delete();
        Response.Redirect("YourPictures.aspx");
    }
    protected void SharePicture_Click(object sender, EventArgs e)
    {
        DataView    productsTable = (DataView)ImageDataSource.Select(DataSourceSelectArguments.Empty);
        DataRowView row           = (DataRowView)productsTable[0];
        string      imageid       = row["ImageID"].ToString();

        ShareDataSource.InsertParameters["ImageID"].DefaultValue       = imageid;
        ShareDataSource.InsertParameters["AccountShared"].DefaultValue = DropDownList1.SelectedValue;
        ShareDataSource.Insert();
    }