I would like to know how Can I paas Page as Ref Parameter to a function
This is what I want to do
public partial class HomePage : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if(!SetupUserPermission.isSessionExpired())
{
string UserId = Session["UserId"].ToString();
SetupUserPermission.SetupUserRights(ref this.Page, Convert.ToInt32(UserId));
}
}
}