public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/json"; List <SPChannelWrapper> channels = SPChannelWrapper.FindAll(); context.Response.Write(string.Format("{{total:{1},'channels':{0}}}", JSON.Serialize(channels), channels.Count)); }
protected void storeSPChannel_Refresh(object sender, StoreRefreshDataEventArgs e) { this.storeSPChannel.DataSource = SPChannelWrapper.FindAll(); this.storeSPChannel.DataBind(); }
private void frmDataSendTask_Load(object sender, EventArgs e) { List <SPChannelWrapper> channels = SPChannelWrapper.FindAll(); this.cmbChannelList.DataSource = channels; }