protected void Page_Load(object sender, EventArgs e) { if (Ext.IsAjaxRequest) { return; } int channelID = Convert.ToInt32(this.Request.QueryString["ChannleID"]); SPChannelWrapper channelWrapper = SPChannelWrapper.FindById(channelID); this.hidChannelID.Text = channelWrapper.Id.ToString(); this.txtChannelName.Text = channelWrapper.Name; this.txtChannelSubmitUrl.Text = channelWrapper.InterfaceUrl; this.lblChannelCode.Text = channelWrapper.ChannelCode; List <SPChannelParamsWrapper> channelParamsWrappers = channelWrapper.GetAllEnableParams(); foreach (SPChannelParamsWrapper spChannelParamsWrapper in channelParamsWrappers) { Anchor anchor = new Anchor(); anchor.Horizontal = "95%"; TextField txt = new TextField(); txt.ID = "txt" + spChannelParamsWrapper.Name; txt.FieldLabel = spChannelParamsWrapper.Name; if (spChannelParamsWrapper.ParamsMappingName == "linkid") { txt.Value = "test" + StringUtil.GetRandNumber(10); hidLinkIDeName.Text = txt.ClientID; } if (spChannelParamsWrapper.ParamsMappingName == "mobile") { txt.Value = "135" + StringUtil.GetRandNumber(8); hidMobileName.Text = txt.ClientID; } anchor.Items.Add(txt); this.FormLayout1.Anchors.Add(anchor); } }