Exemplo n.º 1
0
 protected override NameValueCollection GetDataToBePosted(NetworkCredential credential, DateTime dateTime, WebPageToken token)
 {
     return(new NameValueCollection()
     {
         { "txtId", credential.UserName },
         { "txtPwd", credential.Password },
         { "txtDate", dateTime.ToString("yyyy-MM-dd") },
         { "txtHour", dateTime.Hour.ToString() },
         { "txtMinute", dateTime.Minute.ToString() },
         { "btnAddSignIn", "確定補登" },
         { "__EVENTTARGET", "" },
         { "__EVENTARGUMENT", "" },
         { "__VIEWSTATE", token.ViewState },
         { "__EVENTVALIDATION", token.EventValidation },
     });
 }
Exemplo n.º 2
0
 protected abstract NameValueCollection GetDataToBePosted(NetworkCredential credential, DateTime dateTime, WebPageToken token);