02 2012 档案

摘要:1 string url = SPContext.Current.Web.Url; 2 Uri siteUrl = new Uri(url); 3 using (SPWeb spWeb = new SPSite("http://" + siteUrl.Host).OpenWeb()) 4 { 5 spWeb.AllowUnsafeUpdates = true; 6 //获取CreateNewPro列表信息 7 SPList... 阅读全文
posted @ 2012-02-24 10:50 muddy-bear 阅读(325) 评论(0) 推荐(0)
摘要:1 string a="验证码字符串" 2 string b="要输入的字符串"; 3 if (a.Equals(b, StringComparison.OrdinalIgnoreCase)) 4 { 5 Response.Write("<script>alert('验证码输入成功')</script>"); 6 } 7 else 8 { 9 Response.Write("<script>alert('验证码输入失败')</script>&qu 阅读全文
posted @ 2012-02-09 15:28 muddy-bear 阅读(371) 评论(0) 推荐(0)
摘要:1 Response.Write("<script>alert('没有项目状态');</script>");1 response.write( " <SCRIPT> history.go(-1) </SCRIPT> ") 阅读全文
posted @ 2012-02-09 15:27 muddy-bear 阅读(206) 评论(0) 推荐(0)
摘要:1 ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "Music", "StatusNullPro(参数);", true); 阅读全文
posted @ 2012-02-09 15:27 muddy-bear 阅读(163) 评论(0) 推荐(0)
摘要:1 string a = Request.QueryString[ "eb1 "].ToString(); 2 string b = Request.QueryString[ "eb2 "].ToString(); 阅读全文
posted @ 2012-02-09 15:23 muddy-bear 阅读(136) 评论(0) 推荐(0)
摘要:第一种方法:以下是代码片段:System.Web.HttpContext.Current.User.Identity.Name.ToString(); 这种方法不用获取当前的Site和Web信息,是全局使用的帐号信息。此方法获取的帐号信息是带域的。第二种方法:以下是代码片段: string username = ""; SPSite site = new SPSite("http://kf102"); SPWeb web = site.OpenWeb(); username = web.CurrentUser.LoginName.ToString(); 阅读全文
posted @ 2012-02-06 16:18 muddy-bear 阅读(441) 评论(0) 推荐(0)
摘要:<a style= 'color:#0072bc; text-decoration : none'/>text-decoration参数:none : 无装饰blink : 闪烁underline : 下划线line-through : 贯穿线overline : 上划线 阅读全文
posted @ 2012-02-01 14:56 muddy-bear 阅读(10994) 评论(0) 推荐(0)