⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 default.aspx

📁 东软内部材料(四)asp等相关的教学案例 
💻 ASPX
字号:
<%@Page Language="C#" %>

<script runat="server">


class MyStringCollection : CollectionBase
{
	override protected void OnInsert(int index, object item)
	{
		if (item.GetType() != typeof(string))
			throw new ArgumentException("Collection only supports strings");
	}
}


</script>

<%

	IList names;

	names = new MyStringCollection();

	names.Add("Richard");
	names.Add("Alex");
	names.Add("Dave");

	// Uncomment next line to cause an exception
	//names.Add( 2002 );

	foreach (string name in names)
		Response.Write( name + "<BR />" );

%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -