题目内容 (请给出正确答案)
[主观题]

You are creating a custom control. The UI of the control must contain several text boxes a

nd two buttons. The control must be available in the global assembly cache for reuse across multiple Web applications. You need to achieve this functionality by using the minimum amount of code. What should you do? ()

A. Create a control that derives from System.Web.UI.Control.

B. Create a control that derives from System.Web.UI.WebControls.CompositeControl.

C. Create a control that derives from System.Web.UI.WebControls.WebControl.

D. Create a control that derives from System.Web.UI.UserControl.

查看答案
如搜索结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能会需要:
您的账号:
发送账号密码至手机
发送
更多“You are creating a custom cont…”相关的问题

第1题

You are creating a custom control. The UI of the control must contain several text boxes and two buttons. The control must be available in the global assembly cache for reuse across multiple Web applications. You need to achieve this functionality by using the minimum amount of code.What should you do? ()

A. Create a control that derives from System.Web.UI.Control.

B. Create a control that derives from System.Web.UI.WebControls.CompositeControl.

C. Create a control that derives from System.Web.UI.WebControls.WebControl.

D. Create a control that derives from System.Web.UI.UserControl.

点击查看答案

第2题

You are creating a custom user control. The custom user control will be used on 10 Web Forms for an ASP.NET Web site that allows users to register and log on to a personalized experience.The custom user control uses two TextBox controls and two Button controls.You need to ensure that the controls are visible only when users are not logged on to the Web site. You also need to minimize the amount of effort in development and maintenance for the Web site.Which two actions should you perform?()

A. Add the OnClick event handler for the Login button to the code used in the custom user control.

B. Add the OnClick event handler for the Login button to the code used in the Web Form where the control is added.

C. In the Page_Load method of the Web Form, add a code segment to set the visibility of the TextBox and Button controls where the control is added.

D. In the Page_Load method of the custom user control, add a code segment to set the visibility of the TextBox and Button controls.

点击查看答案

第3题

You are creating a composite control for capturing user address information in a Web application. You define a number of properties that the user can set at design time. You need to group these properties in the Properties dialog box. In addition, you need to ensure that when users click on a particular property, they receive a short explanation of that property. The properties are shown in the exhibit.Which two actions should you perform?()

A.Attach the Category attribute class to the controls class definition. Set its value to UserAddress. Mark the class as public.

B.Attach the Browsable attribute class to each property in the group. Set its value to True. Mark the property as private.

C.Attach the Category attribute class to each property in the group. Set its value to UserAddress. Mark the property as public.

D.Attach the Description attribute class to each property in the group. Set each value to a description of the given property.

E.Attach the DefaultProperty attribute class to each property in the group. Set each value to a description of the given property.

点击查看答案

第4题

You are creating a DataTable. You use the following code segment to create the DataTable. (Line numbers are included for reference only.)01 Dim dt As New DataTable("Products")02 dt.Columns.Add(New DataColumn("Price", _ GetType(Decimal)))03 dt.Columns.Add(New DataColumn("Quantity", _ GetType(Int32)))04 Dim dc As DataColumn = New DataColumn("Total", _ GetType(Decimal))05 dt.Columns.Add(dc)You need to ensure that the Total column is set to the value of the Price column multiplied by the Quantity column when new rows are added or changed. What should you do? ()

A. Add the following code segment after line 05. dc.ExtendedProperties("Total") = "Price * Quantity"

B. Add the following code segment after line 05. dc.Expression = "Price * Quantity"

C. Write an event handler for the DataTable‘s TableNewRow event that updates the row‘s Total.

D. Write an event handler for the DataTable‘s ColumnChanged event that updates the row‘s Total.

点击查看答案

第5题

Youarecreatingaclassthatperformscomplexfinancialcalculations.TheclasscontainsamethodnamedGetCurrentRatethatretrievesthecurrentinterestrateandavariablenamedcurrRatethatstoresthecurrentinterestrate.Youwriteserializedrepresentationsoftheclass.YouneedtowriteacodesegmentthatupdatesthecurrRatevariablewiththecurrentinterestratewhenaninstanceoftheclassisdeserialized.Whichcodesegmentshouldyouuse?()

A.A

B.B

C.C

D.D

点击查看答案

第6题

YouarecreatingaWindowsCommunicationFoundation&8
YouarecreatingaWindowsCommunicationFoundation(WCF)servicetoprocessorders.Thedatacontractfortheorderisdefinedasfollows.[DataContract]publicclassOrder{[DataMember]publicstringCardHolderName{get;set;[DataMember]publicstringCreditCardNumber{get;set;}}Youhavethefollowingrequirements:"EnablethetransmissionofthecontentsofOrderfromtheclientstotheservice."EnsurethatthecontentsofCreditCardNumberarenotsentacrossthenetworkincleartext."EnsurethatthecontentsofCreditCardNumberareaccessiblebytheservicetoprocesstheorder.Youneedtoimplementtheservicetomeettheserequirements.Whatshouldyoudo?()Forinteractiveandself-pacedpreparationofexam70-513,tryourpracticeexams.Practiceexamsalsoincludeselfassessmentandreportingfeatures!
点击查看答案

第7题

You are creating a mobile Web Form that dynamically displays news items. You want to display news items by using an instance of a mobile TextView control named TextViewNews. You need to configure the Web Form that contains TextViewNews. The Web Form must enable pagination in case a users device does not display the full text of a news item. Which code segment should you use? ()

A. PagerStyle ps = new PagerStyle();ps.NextPageText = “more>”;ps.PreviousPageText = “<back”;FormNews.Paginate = true;

B. FormNews.PagerStyle.NextPageText = “more >”;FormNews.PagerStyle.PreviousPageText = “< back”;TextViewNews.PaginateRecursive(new ControlPager(FormNews, 1000));

C. FormNews.PagerStyle.NextPageText = “more >”;FormNews.PagerStyle.PreviousPageText = “< back”;FormNews.PaginateRecursive(new ControlPager(FormNews, 1000));

D. FormNews.PagerStyle.NextPageText = “more >”;FormNews.PagerStyle.PreviousPageText = “< back”;FormNews.Paginate = true;

点击查看答案

第8题

You are creating a mobile Web Form that dynamically displays news items. You want to display news items by using an instance of a mobile TextView control named TextViewNews. You need to configure the Web Form that contains TextViewNews. The Web Form must enable pagination in case a users device does not display the full text of a news item. Which code segment should you use? ()

A. Dim ps As PagerStyle = New PagerStyle()ps.NextPageText = "more >"ps.PreviousPageText = "< back"FormNews.Paginate = True

B. FormNews.PagerStyle.NextPageText = "more >"FormNews.PagerStyle.PreviousPageText = "< back"TextViewNews.PaginateRecursive(New ControlPager(FormNews, 1000))

C. FormNews.PagerStyle.NextPageText = "more >"FormNews.PagerStyle.PreviousPageText = "< back"FormNews.PaginateRecursive(New ControlPager(FormNews, 1000))

D. FormNews.PagerStyle.NextPageText = "more >"FormNews.PagerStyle.PreviousPageText = "< back"FormNews.Paginate = True

点击查看答案

第9题

You are performing two sums: the first is a sum of two scalar variables and the second is a matrix sum of a pair of two- dimensional arrays-size 1000 by 1000.What speedup is achieved when the calculations are performed on size 1000 processors?

A.50

B.100

C.999

D.none of the above

点击查看答案

第10题

You are performing two sums, the first is a sum of two scalar variables and the second is a matrix sum of a pair of two— dimensional arrays—size 1000 by 1000. What speedup is achieved when the calculations are performed on size 1000 processors? ( )

A.50

B.100

C.999

D.none of the above

点击查看答案
热门考试 全部 >
相关试卷 全部 >
账号:
你好,尊敬的上学吧用户
发送账号至手机
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
谢谢您的反馈

您认为本题答案有误,我们将认真、仔细核查,
如果您知道正确答案,欢迎您来纠错

警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
上学吧
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反上学吧购买须知被冻结。您可在“上学吧”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
上学吧
点击打开微信