2011-06-11 45 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来返回内容。