Dropdownlist 弹出提示信息

 

string link = ClientScript.GetPostBackEventReference(ddlApplicationStatus, "");

ddlApplicationStatus.Attributes["onchange"] =
                    "javascript:if(document.getElementById('" + ddlApplicationStatus.ClientID + "').value=='3')confirm('Are yo sure payment?') ? " + link +
                    " : document.getElementById('" + ddlApplicationStatus.ClientID + "').value = '" +
                    ddlApplicationStatus.SelectedValue + "'; ";

你可能感兴趣的:(list)