Ejemplo n.º 1
0
        protected void ReBuildFile(object sender, EventArgs e)
        {
            int id = WX.Request.rFormID;

            WX.Flow.Model.Form.MODEL f = WX.Request.rForm;
            string file = String.Format("/UploadFiles/Forms/{0}.html", f.Name);

            ULCode.TextFile tf = new ULCode.TextFile(Server.MapPath(file));
            tf.Save(f.Module.ToString(), false);
            tf = null;
            f  = null;
            this.BindDownLoadFile();
        }
Ejemplo n.º 2
0
 private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
 {
     if (this.webBrowser1.Url.ToString().ToLower() == "http://jnooe.com/Manage/Default.aspx".ToLower())
     {
         this.FetchedCookie = this.webBrowser1.Document.Cookie;
         ULCode.TextFile tf = new ULCode.TextFile(Application.StartupPath + "/User.txt");
         tf.Save(this.FetchedCookie);
         tf = null;
         MessageBox.Show("登录设置成功!");
         frmWorkDesktop fwd = new frmWorkDesktop();
         fwd.Show();
         this.Hide();
     }
 }