protected void btnAdd_Click(object sender, EventArgs e) { JavaDLL dll = new JavaDLL(); if (dll.addDownload(txtVername.Text.Trim(), txtVerurl.Text.Trim(), txtVerdate.Text.Trim())) { ClientScript.RegisterStartupScript(GetType(), "err", "top.closeDialog()", true); } else { ClientScript.RegisterStartupScript(GetType(), "err", "alert('添加失败!');", true); } }