ASP.NET LINQ _1
什么是LINQ?
LINQ是语言集成查询(Language Integrated Query)的简称,是Visual Studio 2008 和.NET Framework 3.5 版中一项,突破性的创新,它在对象领域和数据领域之间架起了一座桥梁.
一个简单LINQ查询:
实现效果:
传统查询的缺点:简单的字符串表示,没有编译时类型检查,没有IDE的智能感知(IntelliSense)支持 。
相关文档:
在webconfig中有一个重要节点 <system.web> 其中包括了一个身份验证配置节点
<authentication mode="Windows"/>
其中 authentication 是节点名,mode是模式,上述代码表示 采用windows身份验证,那么此时身份验证将交给iis处理,而iis中默认设
<authentication mode="Forms" >
&n ......
1、给删除按钮添加是否确认提示:
前台方法:OnClientClick="return window.confirm('你确定要删除吗?')"
后台方法:btnDelete.Attributes.Add("onclick", "return confirm('您确定要删除吗?');");
2、DataSet中取值:
lblTitle.Text = ds.Tables[0].Rows[0]["Title"]. ......
步骤:
1. 新建一个WEB解决方案名称为HtmlStatic。
2. 在项目下建一个HtmlTemp.htm其代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head&g ......
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// <summary>
/// javascript弹出窗口封装类
/// </summary>
public static class JSCommon
......