上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 32 下一页
摘要: 一、目前在ASP.NET中页面传值共有这么几种方式:1.Response.Redirect("http://www.hao123.com",false); 目标页面和原页面可以在2个服务器上,可输入网址或相对路径。后面的bool值为是否停止执行当前页。跳转向新的页面,原窗口被代替。浏览器中的URL为新路径。Response.Redirect方法导致浏览器链接到一个指定的URL。当Response.Redirect()方法被调用时,它会创建一个应答,应答头中指出了状态代码302(表示目标已经改变)以及新的目标URL。浏览器从服务器收到该应答,利用应答头中的信息发出一个对新UR 阅读全文
posted @ 2014-04-11 11:28 914556495 阅读(1628) 评论(0) 推荐(0) 编辑
摘要: 1.在网站根目录下新建一scripts文件夹,向里边添加jquery-1.7.2.min.js和jquery-1.7.2.js(可根据自己需要使用不同的版本),2.在根目录下添加全局应用程序类Global.asax文件,在Application_Start事件中添加如下代码:ScriptManager.ScriptResourceMapping.AddDefinition("jquery",newScriptResourceDefinition{Path="~/scripts/jquery-1.7.2.min.js",DebugPath="~/ 阅读全文
posted @ 2014-04-11 10:51 914556495 阅读(356) 评论(0) 推荐(0) 编辑
摘要: @163.com @126.com @qq.com 阅读全文
posted @ 2014-04-11 10:09 914556495 阅读(321) 评论(0) 推荐(0) 编辑
摘要: try { sc.Send(msg); return; } catch (Exception ex) { //AlertInfo("发送失败," + ex); return ; } 阅读全文
posted @ 2014-04-11 09:09 914556495 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 前台: 签名验证 ... 阅读全文
posted @ 2014-04-10 16:34 914556495 阅读(697) 评论(0) 推荐(0) 编辑
摘要: sharepoint默认是没有修改AD密码 和切换 用户的功能,这里我用future的方式来实现。部署wsp前:部署后点击以其他用户身份登录点击修改用户密码:这里的扩展才菜单我们用CustomAction来实现,我们需要添加空项目来部署它以其他用户身份登录得xml如下:修改用户密码的xml如下:这里我们需要新建一个应用程序页面,首先需要添加路径映射:添加应用程序页面的代码如下:修改密码域:旧密码:新密码:确认新密码:修改密码修改密码usingSystem;usingMicrosoft.SharePoint;usingMicrosoft.SharePoint.WebControls;usingS 阅读全文
posted @ 2014-04-04 18:03 914556495 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 获取指定后面的值包括指定的值123456 int length = a.Length;//获取字符串长度 int IndexofA = a.IndexOf("4");//获取出现的位置 string b = a.Substring(IndexofA, length - IndexofA);//获取指定字符串后面的数值就是456获取中间的部分例如下:123456 int length = a.IndexOf("2", 0) + "w|".Length; ;//开始的位置 ... 阅读全文
posted @ 2014-04-03 10:56 914556495 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-04-03 08:58 914556495 阅读(168) 评论(0) 推荐(0) 编辑
摘要: if (lwdw.Text == "" || wh.Text =="" || swbh.Text =="" || wjbt.Text=="") { Page.ClientScript.RegisterClientScriptBlock(this.GetType(), Guid.NewGuid().ToString(), string.Format("")); } else { 阅读全文
posted @ 2014-04-01 10:03 914556495 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 序列号:BWG7X-J98B3-W34RT-33B3R-JVYW9 阅读全文
posted @ 2014-03-31 16:51 914556495 阅读(1223) 评论(0) 推荐(0) 编辑
摘要: Ultimate:BWG7X-J98B3-W34RT-33B3R-JVYW9Premium:FBJVC-3CMTX-D8DVP-RTQCT-92494YKCW6-BPFPF-BT8C9-7DCTH-QXGWC 阅读全文
posted @ 2014-03-31 09:52 914556495 阅读(255) 评论(0) 推荐(0) 编辑
摘要: foreach (SPUser user in web.AllUsers)//遍历所有用户 { CheckBoxList1.Items.Add(user.Name); LIColl.Add(user.Name); //approversCollection.Add(new SPFieldUserValue(web,user.ID,user.LoginName)); ... 阅读全文
posted @ 2014-03-28 14:24 914556495 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 循环绑定数据的两个方法:List LIColl = new List(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { foreach (SPUser user in web.AllUsers)//遍历所有用户 { CheckBoxList1.Items.Add(user.Name);//直接绑定 ... 阅读全文
posted @ 2014-03-28 14:00 914556495 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 循环绑定数据到DropDownList1foreach (SPList ls in web.Lists) { LIColl.Add(ls.Title);//将数据保存list中 } dwlist.DataSource = LIColl;//绑定 dwlist.DataBind();//绑定默认值DataBound事件: protected void DropDownList1_DataBound(object sender, EventArgs ... 阅读全文
posted @ 2014-03-28 07:37 914556495 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 前台: 1 2 3 4 后台第一种foreach循环protected void ListBox1_SelectedIndexChanged1(object sender, EventArgs e) { string strHobby = ""; foreach (ListItem item in ListBox1.Items) { if (item.Selected) ... 阅读全文
posted @ 2014-03-27 08:44 914556495 阅读(419) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 32 下一页