【多选题】你正在创建一个新的名为ItemList的ASP.NET页面,以便为很多不同商品目显示商品和价格信息
A、EnableSessionState=”True”
B、EnableSessionState=”False”
C、EnableSessionState=”ReadOnly”
D、EnableViewState=”True”
E、EnableViewState=”False”
F、EnableViewStateMac=”True”
A、EnableSessionState=”True”
B、EnableSessionState=”False”
C、EnableSessionState=”ReadOnly”
D、EnableViewState=”True”
E、EnableViewState=”False”
F、EnableViewStateMac=”True”
A.EnableSessionState=”True”
B.EnableSessionState=”False”
C.EnableSessionState=”ReadOnly”
D.EnableViewState=”True”
E.EnableViewState=”False”
F.EnableViewState=”False”
A.EnableSessionState=”True”
B.EnableSessionState=”False”
C.EnableSessionState=”ReadOnly”
D.EnableViewState=”True”
E.EnableViewState=”False”
F.EnableViewState=”False”
【单选题】你创建一个显示用户定单信息的ASP.NET页面。该信息用页面上两个分开的DataGrid控件显示。第一个DataGrid控件显示当年定单信息,第二个DataGrid控件显示一年以前所有的定单信息。页面用了System.Data.SqlClient和System.Data命名空间 信息存储在Microsoft SQL Server数据库中。一个客户已完成的定单历史信息可通过传入用户身份证号参数到数据库中名为GetOrders的存储过程获得。 Page.Load事件填充一个名为TKDataVeiw的DataView 对象,其填充结果由调用GetOrder存储过程获得。下面在Page.Load事件中的代码段用于绑定两个DataGrid控件到TKDataView: dataGridCurrentYear.DataSource = TKDataView TKDataView.RowFilter = “OrderDate >= #01/01/” & _ Now.Year & “#” dataGridCurrentYear.DataBind() dataGridPreviousYears.DataSource = TKDataView TKDataView.RowFilter = “OrderDate < #01/01” & _ Now.Year & “#” dataGridPreviousYears.DataBind() Page.DataBind 在测试中,你发现两个DataGrid控件只显示前一年的定单信息,你应该怎么改正问题?
A、删除Page.DataBind()语句
B、删除dataDridPreviousYears.DataBind()语句
C、在Page.DataBind()语句前直接添加Response.Flush()语句
D、在dataDridPreviousYears.DataBind()语句前直接添加Response.Flush()语句
A.Response.Redirect(“ProcessAddressChange.aspx”)
B.Response.WriteFile(“ProcessAddressChange.aspx”)
C.Server.Transfer(“ProcessAddressChange.aspx”,True)
D.Server.Execute(“ProcessAddressChange.aspx”)
A、添加以下语句到ListSubscribe.ascx的声明部分:Public listNameText As TextBox
B、添加以下语句到Subscribe.aspx的声明部分:Public listNameText As TextBox
C、添加以下语句到Subscribe.aspx的Page.Load事件处理程序: If Not Page.IsPostBack Then ListNameLable.Text=ctlSubscribe.ListNameText.Text End if
D、添加以下语句到Subscribe.aspx的Page.Load事件处理程序: If Not Page.IsPostBack Then(每次回发时更新文本框中的值) ListNameLable.Text=ctlSubscribe.ListNameText.Text End if
A.在现有的森林中创建一个新的名为extranet.corp.woodgrovebank.com子域,在这个新子域上创建合作公司的用户账户,创建该子域信任森林中每个域的捷径信任关系
B.创建一个名为extranet.woodgrovebank.com新域,在新域中创建合作公司用户账户;创建企业外部网森林信任公司森林的单向森林信任关系
C.创建一个名为extranet.woodgrovebank.com的新域,在新域中创建合作公司用户账户;创建企业外部网域信任den.corp.woodgrovebank.com域的外部信任关系
D.为Extranet网创建一个den.corp.woodgrovebank.com域的子域,在新的子域上创建合作公司的用户账户;创建一个森林根域信任企业外部网域的外部信任关系
A、“Provider=SQLOLEDB.1;File Name =”Data\MyFile.udl
B、“Provider=MSDASQL;Data Source=certkiller;Initial Catalog=SalesDB;User ID=WebApp;Password= Certk n123”
C、“Data Source= certkiller;Initial Catalog=SalesDB;User ID=WebApp;Password= Certk n123”
D、“Data Source= certkiller;Database=SalesDB;Initial File Name=Products;User ID=WebApp;Pwd=Certk n123”
【单选题】你正在为TestKong Inc创建一个ASP.NET页面来记录相互联系的信息。该页面包含一个名为emailTextBox的文本框控件和一个名为phone的文本框控件。你的应用程序要求用户在这两个TextBox中输入数据。你添加了两个RequireFieldValidator控件到页面中。一个控件名为emailRequired,另一个控件名为phoneRequired。你设置emailRequired的ControlToValidate属性为emaiTextBox,设置phoneRequired的ControlToValidate属性为phoneTextBox。另外,你在页面的底部添加了一个ValidationSummary控件。如果用户在放置emaiTextBox为空之后要提交页面,你希望在TextBox的旁边出现单词“Required”。如果用户在放置emaiTextBox或phoneTextBox为空之后要提交页面,你也希望在页面的底部能出现一句消息。你希望显示一个bulleted list 提示缺少了哪个输入项。如果emaiTextBox为空,你希望bulleted list包含下列的短语:“E-mail is a required entry”。如果phoneTextBox为空,你希望bulleted list包含下列短语:“Telephone number is a required entry。”你该怎么做?
A、设置每个RequireFieldValidator控件的InitialValue属性为“Required”。设置emailRequired的Text属性为“E-mail is a required entry.”设置phoneRequired的Text属性为“Telephone number is a required entry.”
B、设置每个RequireFieldValidator控件的InitialValue属性为“Required”。设置emailRequired的ErrorMessage属性为“E-mail is a required entry.”。设置phoneRequired的ErrorMessage属性为“Telephone number is a required entry.”
C、设置每个RequireFieldValidator控件的Display属性为Dynamic。设置emailRequired和phoneRequired的ErrorMessage属性为Dynamic。设置emailRequired的Text属性为“E-mail is a required entry.”设置phoneRequired的Text属性为“Telephone number is a required entry.”
D、设置每个RequireFieldValidator控件的Text属性为“Required”。设置emailRequired的ErrorMessage属性为“E-mailisarequiredentry.”。设置phoneRequired的ErrorMessage属性为“Telephonenumberisarequiredentry.”
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!