ORACLE中取前10条记录的SQL语句
SELECT * FROM (SELECT * FROM table_name ORDER BY id DESC) WHERE ROWNUM<=10
在asp.net中如何實現定時刷新網頁?
添加到head中
<meta http-equiv="refresh" content="60;refresh.aspx">
或者用xmlhttp
<script>
setInterval("self.location.reload()",1000)
</script>
应用程序根是用
location = System.Web.HttpContext.Current.Server.MapPath("~");
网站的根
location = System.Web.HttpContext.Current.Server.MapPath("/");
/ 代表的是整个Web站点的根目录,相对于wwwroot.
~代表的是整当前应用程序的根目录,但~只能在服务端控件上面使用.
也可以考虑用Server.MapPath(".")
SELECT * FROM (SELECT * FROM table_name ORDER BY id DESC) WHERE ROWNUM<=10
在asp.net中如何實現定時刷新網頁?
添加到head中
<meta http-equiv="refresh" content="60;refresh.aspx">
或者用xmlhttp
<script>
setInterval("self.location.reload()",1000)
</script>
应用程序根是用
location = System.Web.HttpContext.Current.Server.MapPath("~");
网站的根
location = System.Web.HttpContext.Current.Server.MapPath("/");
/ 代表的是整个Web站点的根目录,相对于wwwroot.
~代表的是整当前应用程序的根目录,但~只能在服务端控件上面使用.
也可以考虑用Server.MapPath(".")