後面我試圖從代碼隱藏調用js函數像Asp.net中的代碼調用JS
<if(result == true)
MyJsFunction();
我怎麼能做到這一點?
我試着像
string rowTestHide = @" <script type='text/javascript'>function showSuccessMessage(){
showNotification({
type : 'success',
message: 'This is a sample success notification'
});
}
</script>";
ClientScript.RegisterStartupScript(null,"rowTest", rowTestHide);
,但它不工作
請解釋_how_它不工作,可能還有相關的'showNotification'代碼。 – 2011-12-24 23:38:28