1、 在开发ASP.NET 应用程序时,如果一个页面包含大量文本与WEB 服务器控件时,页面控件的布局模式应该采用(a): a) FlowLayout b) TileHorizontal c) GridLayout d) TileVertical 2、 以下是ASP.NET 应用程序Web.config 文件中的部分代码,为了获得配置节DSN 的值, 下列方法正确的是(a)(选择一项)
a) string strDSN=System.Configuration.ConfigurationSettings.AppSettings["DNS"]; b) string strDSN=System.Configuration.ConfigurationSettings.AppSettings("DNS"); c) string strDSN=System.Configuration.ConfigurationSettings.GetSettings("DNS"); d) string strDSN=System.Configuration.ConfigurationSettings.AppSettings.GetKey("DNS"); 3、 以下是某程序员在一个Web 窗体中编写的部分C#代码,已知GetJobDs 是一个返回一个数据集的方法,当某个用户第一次访问该页面时,下列说法正确的是(b)。 private void Page_Load(object sender , System.EventArgs e){ if(!this.IsPostBack){ //1 DataSet ds=this.GetJobDs(); //2 This.DataGrid1.DataSource=ds.Tables[0]; //3 } }(选择一项) a) 用户不能在DataGrid 控件中看到数据集中的数据,因为没有设置DataGrid 控件的 DataMember 属性 b) 用户不能在DataGrid 控件中看到数据集中的数据,因为没有进行数据绑定 c) 用户不能在DataGrid 控件中看到数据集中的数据,因为代码行2、3 不能被执行 d) 用户可以在DataGrid 控件中看到数据集中的数据 4、 在一个ASPX 页面的Page_Load 事件中,编写了如下代码,则执行该页面后,将在页面 中输出(a)。(选择一项) private void Page_Load(object sender , System.EventArgs e){ Response . Write(“欢迎光临”); Response . End(); Response . Write(“欢迎下次光临”); } a) 欢迎光临 b) 欢迎下次光临 c) 欢迎光临 欢迎下次光临 d) 欢迎光临欢迎下次光临 5、 如图,在一个ASPX 页面中,有四个RadioButton 控件,他们的HTML 代码如下,在图 示状态下,当及户单击足球 RadioButton 控件后,下列说法正确的是(a)