访问Index function 两次

cshtml

<bgsound src = ''/>

Controller

public ActionResult Index (int id?)

{

  ...

}

 

如果访问这个页面的话,会连续访问两次,由于scr ='' 造成,把scr='' 去掉就可以了

cshtml

<bgsound/>

posted @ 2015-06-28 21:29  Laven小叶  阅读(117)  评论(0编辑  收藏  举报