多项选择题
You are developing an ASP.NET Web service. The following code segment implements the service.
You need to ensure that both GetProduct methods can be called from a Web client. Which two actions should you perform?()
A.Remove line 01.
B.Add the static modifier on lines 05 and 11.
C.Add the following attribute before line 10. [SoapDocumentMethod(Action="GetProductById")]
D.Modify the attribute on line 10 as follows. [WebMethod(MessageName="GetProductById")]
相关考题
-
单项选择题
YouaredevelopinganASP.NETDynamicDataWebapplication.BooleanfieldsmustdisplayasYesorNoinsteadofasacheckbox.YoureplacethemarkupinthedefaultBooleanfieldtemplatewiththefollowingmarkup.YouneedtoimplementthecodethatdisplaysYesorNo.WhichmethodoftheFieldTemplateUserControlclassshouldyouoverrideintheBooleanFieldclass?()
A.OnLoad
B.Construct
C.OnDataBinding
D.SaveControlState -
单项选择题
YouaredevelopinganASP.NETMVC2Webapplication.ApagemakesanAJAXrequestandexpectsalistofcompanynamesinthefollowingformat.["AdventureWorks","Contoso"]Youneedtowriteanactionmethodthatreturnstheresponseinthecorrectformat.Whichtypeshouldyoureturnfromtheactionmethod?()
A.AjaxHelper
B.XDocument
C.JsonResult
D.DataContractJsonSerializer -
单项选择题
You are developing an ASP.NET Web page. The page contains the following markup. The pages code-behind file includes the following code segment. You need to get a reference to the Image named img. Which code segment should you add at line 06?()
A.Image img = (Image)Page.FindControl("img");
B.Image img = (Image)e.Row.FindControl("img");
C.Image img = (Image)gvModels.FindControl("img");
D.Image img = (Image)Page.Form.FindControl("img");
