摘要: 前台代码点击后台代码 protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { InitDropDownList(); } } protected void Button1_Click(object sender, EventArgs e) { //Page.ClientScrip... 阅读全文
posted @ 2014-01-23 17:01 914556495 阅读(195) 评论(0) 推荐(0)
摘要: 点击后台Page.ClientScript.RegisterStartupScript(GetType(), "", "alert('值:" + hf.Value + "');", true); 阅读全文
posted @ 2014-01-23 16:11 914556495 阅读(1095) 评论(0) 推荐(0)
摘要: 前台代码点击后台代码: protected void sp_Click(object sender, EventArgs e) { string id = Page.Request["ID"]; this.UploadFileToDocLib(SPContext.Current.Web, "发送记录", id); } public void UploadFileToDocLib(SPWeb web, string docLibName,string chname) { w... 阅读全文
posted @ 2014-01-23 10:48 914556495 阅读(428) 评论(0) 推荐(0)
摘要: function Close() { alert("操作成功") window.location = "http://amid01110/_layouts/15/start.aspx#/Lists/test2/AllItems.aspx"; } 后台调用前台js方法 ClientScriptManager cs = Page.ClientScript; cs.RegisterStartupScript(this.GetType(), "", ""); //调... 阅读全文
posted @ 2014-01-23 10:40 914556495 阅读(392) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2014-01-23 10:34 914556495 阅读(145) 评论(0) 推荐(0)