摘要:
/// /// (增)向表中插入数据 /// public void InsertData() { LinqToSQLDataContext dataContent = new LinqToSQLDataContext(); //InsertOnSubmit(TEntity entity)方法向表一次插入一条记录 employee e = new employee() { id = 4, name = "sujina", age = 22, position = "教师", partment = "狮子场小学" }; dataCont 阅读全文
摘要:
HttpContext.Current.Request.Url.Host.ToString();http://"是协议名"www.test.com"是域名"aaa"是站点名"bbb.aspx"是页面名(文件名)"id=5&name=kelli"是参数【1】获取 完整url (协议名+域名+站点名+文件名+参数)string url=Request.Url.ToString();url=http://www.test.com/aaa/bbb.aspx?id=5&name=kelli【2】获取 阅读全文