Control中:ViewDate["Msg"]="添加成功";
View中:<td id="tdMsg" style="display:none"><%=ViewDate["Msg"] %></td>
jQuery中:
$(document).ready(function(){
  if($('#tdMsg').html().Trim()!=""){ //Trim自定义的方法
    alert($('#tdMsg').html());//可以用jQuery的消息框
    $('#tdMsg').fadeOut(3000);
  }
});
posted on 2011-03-17 10:50  aparche  阅读(5434)  评论(0编辑  收藏  举报