Example #1
0
    private string GenerateFileName()
    {
        string pageName = Path.GetFileNameWithoutExtension(this.Page.AppRelativeVirtualPath);

        string file = string.Format("{0}{1}.txt", pageName, this.Session.SessionID.ToString());

        //       file = Path.Combine(Server.MapPath("~/ViewStateFiles") + "/" + file);
        file = string.Format("{0}\\{1}", utils.pathviewstate(), file);

        return(file);
    }
Example #2
0
    private string GenerateFileName()
    {
        string pageName = Path.GetFileNameWithoutExtension(Page.AppRelativeVirtualPath);

        string file = pageName + Session.SessionID.ToString() + ".txt";

        //       file = Path.Combine(Server.MapPath("~/ViewStateFiles") + "/" + file);
        file = utils.pathviewstate() + "\\" + file;

        return(file);
    }