摘要:<img src="/WebSite18/img/j.gif" />显示 <img src="img/j.gif" />显示图片 <img src="~/img/j.gif" />错 不会显示图片 <asp:Image ID="Image1" runat="server" ImageUrl="img/autumn.jpg" />显示图片 <as...
阅读全文
09 2010 档案
摘要:问<authorization> <deny users = "?"/> <allow users= "*" /></authorization>如果以上面的效果显示,那么用户访问站点下的其他页,如果没有登录的话,都会转到登录页。但是要是把<allow users= "*" />放到<deny users = "?"/>前面,...
阅读全文
摘要:3. 简述 private、 protected、 public、 internal 修饰符的访问权限。private : 私有成员, 在类的内部才可以访问。protected : 保护成员,该类内部和继承类中可以访问。public : 公共成员,完全公开,没有访问限制。internal: 在同一命名空间内可以访问。4. 写出一条Sql语句: 取出表A中第31到第40记录(SQLServer, 以...
阅读全文
摘要://对于select count(*) as 个数 from myTest 如果myTest表中没有数据 在结果集中【个数列】的数据为0 //对于select max(id) as 最大编号 from myTest 如果myTest表中没有数据 在结果集总【最大编号列】的值为null. //bool temp=Convert.ToBoolean(DBNull.Value); 错 //Convert.To类型() 对DBNull.Value转换的影响,除了ToString()/Convert.ToString()能转换成""外,其他类型都会报错(对象不能从 DBNull 转换为其他类型)。DBN
阅读全文
摘要:string test = "程$晓$"; //数组长度为2 temp[0]="程" temp[1]="晓"; string[] temp = test.Split(new string[] { "$" }, StringSplitOptions.RemoveEmptyEntries);//数组长度为3 temp[0]="程" temp[1]="晓" temp[2]=""; string[] temp = test.Split(new string[] { "$" }, StringSplitOptions.None);
阅读全文
浙公网安备 33010602011771号