using System;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
namespace ASPxProj.Layouts.ASPxProj
{
public partial class MyPage1 : LayoutsPageBase
{
SPWeb thisWeb = SPContext.Current.Web;
protected void Page_Load(object sender, EventArgs e)
{
Response.Write( Server.MapPath("~/"));
Response.Write("<br />");
Response.Write(thisWeb.CurrentUser.Name);
Response.Write("<br />");
SPList list = thisWeb.Lists["ListForTest"];
Response.Write("ListForTest itemCount: "+ list.ItemCount );
Response.Write("<br />");
}
}
}