Microsoft
70-515 · Question #156
70-515 Question #156: Real Exam Question with Answer & Explanation
Sign in or unlock 70-515 to reveal the answer and full explanation for question #156. The question stem and answer options stay visible for context.
Question
You are implementing an ASP.NET page. You add and configure the following ObjectDataSource. <asp:ObjectDataSource SelectMethod="GetProductByProductId" ID="odc" runat="server" TypeName="ProductDAL"> <SelectParameters> <asp:Parameter Name="productId" Type="Int32" /> </SelectParameters> </asp:ObjectDataSource> The page will be called with a query string field named pid. You need to configure the ObjectDataSource control to pass the value of the pid field to GetProductsByProductId method. What should you do?
Options
- AReplace the asp:QueryStringParameter with the following declaration.
- BReplace the asp:QueryStringParameter with the following declaration.
- CAdd the following event handler to the Selecting event of the ObjectDataSource control.
- DAdd the following code segment to the page's code-behind.
Unlock 70-515 to see the answer
You've previewed enough free 70-515 questions. Unlock 70-515 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.