示例#1
0
    protected void btnsave_Click(object sender, EventArgs e)
    {
        if (HiddenFlag.Value == "Add")
        {
            int retval = BLL_Infra_ShipSettings.INS_Help_File_Settings(UDFLib.ConvertToInteger(ddlScreen.SelectedValue), txtTopicID.Text, txtTopicDesc.Text
                                                                       , txtHelpFileName.Text, UDFLib.ConvertToInteger(Session["USERID"]));
        }
        else
        {
            int retval = BLL_Infra_ShipSettings.UPD_Help_File_Settings(Convert.ToInt32(txtID.Text.Trim()), UDFLib.ConvertToInteger(ddlScreen.SelectedValue), txtTopicID.Text, txtTopicDesc.Text
                                                                       , txtHelpFileName.Text, UDFLib.ConvertToInteger(Session["USERID"]));
        }

        BindHelpFileSettings();
        string hidemodal = String.Format("hideModal('divadd')");

        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "hidemodal", hidemodal, true);
    }