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 + "'; ";

posted @ 2009-03-25 18:28  潇客的技术博客  阅读(501)  评论(0编辑  收藏  举报