private void BindDataAd() { AdMsg admsg = new AdMsg(); AdMsgInfo minfo = admsg.GetModelAd(int.Parse(_adid)); if (minfo != null) { txtAd.Text = "<script src=\"" + minfo.adjs.ToString() + "\"></script>"; } }
private void BindDataEdit() { AdMsg admsg = new AdMsg(); AdMsgInfo minfo = admsg.GetModelAd(int.Parse(Request.QueryString["id"].ToString())); if (minfo != null) { BindDataSort(minfo.sid.ToString()); txtTitle.Text = minfo.adname; txtPic.Text = minfo.adpic; txtUrl.Text = minfo.adurl; txtWidth.Text = minfo.adwidth.ToString(); txtHeight.Text = minfo.adheight.ToString(); hiddJs.Value = minfo.adjs; //绑定所属类型 try { radType.Items.FindByValue(minfo.adtype.ToString()).Selected = true; } catch { } } }