上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 32 下一页
摘要: 点击button先执行js在执行后台代码前台代码: 为什么是这呢:ctl00_ctl40_g_0ba9405d_7635_4463_85d4_510f0221d4f1_TextBox1这个是前台获取的TextBox1获取编译的来的或者直接写: TextBox1属性必须如下: 阅读全文
posted @ 2014-02-18 16:30 914556495 阅读(274) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2014-02-18 12:58 914556495 阅读(218) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2014-02-18 10:37 914556495 阅读(427) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2014-02-17 16:12 914556495 阅读(816) 评论(0) 推荐(0)
摘要: 点button添加label前台代码 后台代码: protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ViewState["max"] = 1; } } protected void Button4_Click(object sender, EventArgs e... 阅读全文
posted @ 2014-02-17 15:26 914556495 阅读(652) 评论(0) 推荐(0)
摘要: if (!Page.IsPostBack) { } 阅读全文
posted @ 2014-02-15 17:31 914556495 阅读(97) 评论(0) 推荐(0)
摘要: Arraylist values =new Arraylist//values是存储值的变量foreach(Control a in panel1.Controls){ if(a is Label) { values.Add(a.text); }}TextBox t = (TextBox)Panel1.FindControl("TextBox1");string neir = t.Text; 阅读全文
posted @ 2014-02-15 16:54 914556495 阅读(848) 评论(0) 推荐(0)
摘要: ////循环添加label for (int i = 0; i " + "" + fn + "" + "大小" + file_KB + "上传文件成功";//label属性texbox的值 this.Controls.Add(l); } 阅读全文
posted @ 2014-02-15 11:55 914556495 阅读(252) 评论(0) 推荐(0)
摘要: string[] str = new string[10];str[0] = "abc";int hasCount= str.Where(delegate(string s){ return !string.IsNullOrEmpty(s);}).Count();hasCount这个就是 阅读全文
posted @ 2014-02-15 11:24 914556495 阅读(870) 评论(0) 推荐(0)
摘要: Page.ClientScript.RegisterClientScriptBlock(this.GetType(), Guid.NewGuid().ToString(), string.Format("")); 阅读全文
posted @ 2014-02-14 15:54 914556495 阅读(150) 评论(0) 推荐(0)
摘要: 先看效果图webpart:文档库:成功上传结果:查看文档库:代码部分前台: Button1_Click事件: protected void Button1_Click(object sender, EventArgs e) { this.UploadFileToDocLib(SPContext.Current.Web, "456", this.FileUpload1, 1); }UploadFileToDocLib的方法:public void UploadFi... 阅读全文
posted @ 2014-02-14 15:51 914556495 阅读(291) 评论(0) 推荐(0)
摘要: HttpContext.Current.Server.MapPath 演示文件上传控件 protected void btnUpload_Click(object sender, EventArgs e) { Boolean... 阅读全文
posted @ 2014-02-13 14:33 914556495 阅读(358) 评论(0) 推荐(0)
摘要: SPContext.Current.Web.CurrentUser.LoginName(带前缀)SPContext.Current.Web.CurrentUser.Name(不带前缀) 阅读全文
posted @ 2014-02-12 09:49 914556495 阅读(213) 评论(1) 推荐(0)
摘要: SPUser spuser = Microsoft.SharePoint.WebControls.SPControl.GetContextWeb(Context).CurrentUser; string t_loginName = spuser.LoginName.ToString();SPUserCollection users = web.AllUsers; //當前網站所有UsersSPUserCollection users = web.Users; //當前網站所有UsersSPUserCollection users = web.Roles["Admi... 阅读全文
posted @ 2014-02-12 08:58 914556495 阅读(180) 评论(0) 推荐(0)
摘要: "当前时间是:"+DateTime.Now.ToString("yyyy-MM-ddHH:mm:ss.fff"));当前时间:stringdsf=DateTime.Now.ToString("HH:mm:ss.fff");当前年月日stringdsf=DateTime.Now.ToString("yyyy-MM-dd"); 阅读全文
posted @ 2014-02-12 08:42 914556495 阅读(169) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 32 下一页