protected void Button1_Click(object sender, EventArgs e) { if (!GlobalInfo.IsTokenValidate(TextBoxAppID.Text)) { GlobalInfo.GetToken(TextBoxAppID.Text, TextBoxSecret.Text, TextBoxMaketID.Text); } if (GlobalInfo.IsTokenValidate(TextBoxAppID.Text)) { var resultList = GlobalInfo.GetDiscountCardsInfo(); GridViewMemberCard.DataSource = resultList; GridViewMemberCard.DataBind(); } }
protected void Button1_Click(object sender, EventArgs e) { if (!GlobalInfo.IsTokenValidate(TextBoxAppID.Text)) { GetToken(); } if (GlobalInfo.IsTokenValidate(TextBoxAppID.Text)) { var resultList = DiscountCardResultJson.Rootobject.GetProdustsInfo(GlobalInfo.Token); GridViewMemberCard.DataSource = resultList; GridViewMemberCard.DataBind(); } }