2011-06-11 44 views

回答

1

你可以做,使用JQuery或阿賈克斯下面是使用jQuery

<html> 
<head> 
<script src="http://code.jquery.com/jquery-latest.js"></script> 

<script> 
var refreshId = setInterval(function() 
{ 
$('#responsecontainer').fadeOut("slow").load('your target page will be here').fadeIn("slow"); 
}, 100); 
</script> 
</head> 
<body> 

<div id="responsecontainer"> 
here you can place your Div,html or ASP.net control 
</div> 
</body> 
</head> 
</html> 
+0

感謝阿卜杜拉,它的做工精細的樣本例子。 – Saloni 2011-06-22 04:06:37

0

無論您使用的內容都應有一個ID,並應呈現爲返回的局部視圖動作的股利或。然後你可以使用JavaScript來設置計時器,jQuery Ajax調用來通過調用URL.Action獲得的URL來返回內容。